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.
Request Params
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 operation. | |
accountSwitchKey | string | (Optional) For customers who manage more than one account, this runs the operation from another account. The Identity and Access Management API provides a list of available account switch keys. |
Request Body
{"currency"=>"€", "flag"=>"/belgium.png", "name"=>"Belgium"}
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."