Logo
Akamai APIs API Documentation

Create a namespace

POST https://{{host}}/edgekv/v1/networks/:network/namespaces

Creates a namespace on Akamai's STAGING or PRODUCTION network. You should create namespaces in both networks so that you can test your EdgeWorkers code on staging.

 

Body PARAM

Key Datatype Required Description 
accountSwitchKey
string (Optional) For customers who manage more than one account, this [runs the operation from another account](https://techdocs.akamai.com/developer/docs/manage-many-accounts-with-one-api-client). The Identity and Access Management API provides a [list of available account switch keys](https://techdocs.akamai.com/iam-api/reference/get-client-account-switch-keys).



HEADERS

Key Datatype Required Description 
Content-Type
string
Accept
string




RESPONSES

status OK

{ "geoLocation": "US", "groupId": 32145, "namespace": "marketing", "retentionInSeconds": 15724800 }



Curl
curl -X POST 'https://host/edgekv/v1/networks/:network/namespaces?accountSwitchKey=' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"geoLocation":"US","groupId":12345,"namespace":"marketing","retentionInSeconds":15724800}'

ENDPOINTS