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

KeyDatatypeRequiredDescription
sandboxIdstring(Optional) Accesses EdgeKV data in the specified sandbox environment. To list existing sandbox identifiers, run the Sandbox API's List sandboxes operation.
accountSwitchKeystring(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

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

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