Skip to content

Update an item in a kv store

PUT
/api/v2/organizations/{organization}/projects/{project}/kv/{store_id}/items/{key}
curl --request PUT \
--url https://dashboard.quantcdn.io/api/v2/organizations/test-org/projects/test-project/kv/0000/items/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "value": "example", "secret": true }'
organization
required
string

Organization identifier

Example
test-org
project
required
string

Project identifier

Example
test-project
store_id
required
string
Example
0000
key
required
string
Media typeapplication/json
object
value
required

Item value (can be JSON string)

string
secret

Store as secret with KMS encryption. Note: Encryption status cannot be changed after initial creation - this value is preserved from the original item.

boolean
Examplegenerated
{
"value": "example",
"secret": true
}

The request has succeeded.

Media typeapplication/json
object
success
boolean
key
string
value
string
Example
{
"success": true,
"key": "user-session-123"
}

The server could not understand the request due to invalid syntax.

Media typeapplication/json
object
message
required

Error message

string
error
required

Error flag

boolean
Example
{
"message": "The requested resource was not found",
"error": true
}

Access is forbidden.

Media typeapplication/json
object
message
required

Error message

string
error
required

Error flag

boolean
Example
{
"message": "The requested resource was not found",
"error": true
}

Validation error.

Media typeapplication/json
object
message
required

Error message

string
error
required

Error flag

boolean
Example
{
"message": "The requested resource was not found",
"error": true
}