Logo
Akamai APIs API Documentation

Update namespace details

PUT https://{{host}}/edgekv/v1/networks/:network/namespaces/:namespaceId

You can update the retention period for any existing namespace other than the default namespace. It can take up to five minutes for a new retention policy to apply. The new retention period only applies to data added or updated in the namespace after this operation is complete. The retention period of existing data remains unchanged from the old retention period. Once you perform this operation you can't query the previously existing data. If you want to ensure that all data in the namespace has the same retention period you need to update the entire data set once the retention period has been updated. To change the access group used to authorize permission to a namespace, see Reauthorize a namespace. If you try to run this operation to update the access group, you get a 400 error.

 

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 PUT 'https://host/edgekv/v1/networks/:network/namespaces/:namespaceId?accountSwitchKey=' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{"namespace":"marketing","retentionInSeconds":15724800}'

ENDPOINTS