Logo
Akamai APIs API Documentation

Write an item

PUT https://{{host}}/edgekv/v1/networks/:network/namespaces/:namespaceId/groups/:groupId/items/:itemId

Create or update an EdgeKV item (name-value). You need to specify the namespace and group the item belongs to. The target namespace must already exist before writing, while the group is automatically created for you if it doesn't exist yet.

 

Body PARAM

Key Datatype Required Description 
sandboxId
string (Optional) Accesses EdgeKV data in the specified sandbox environment. To list existing sandbox identifiers, run the Sandbox API's [List sandboxes](https://techdocs.akamai.com/sandbox/reference/get-sandboxes) operation.
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

Item was upserted in database, namespace default, group countries, and key US.

Curl
curl -X PUT 'https://host/edgekv/v1/networks/:network/namespaces/:namespaceId/groups/:groupId/items/:itemId?sandboxId=&accountSwitchKey=' -H 'Content-Type: application/json' -H 'Accept: text/plain' -d '{"currency":"€","flag":"/belgium.png","name":"Belgium"}'

ENDPOINTS