Skip to main content

PATCH /v0/teams/{id}/kv_values - Admin API

Replaces the full list of Key-Value Store values assigned to a team.

Updated on
Nov 26, 2026

Replace the team's value assignments. To add a value, get the current assignments and send the keys you want to keep along with the new key. The Admin API doesn't check whether the keys exist.

Requires an Admin API key with the Admin role, access to the team, and Key-Value Store REST API access. A team-scoped key can't assign a value that belongs only to teams outside its scope. See Admin API errors.

Before running an example, set TEAM_ID and QN_API_KEY. In export KV_KEYS_JSON='YOUR_COMPLETE_JSON_ARRAY', replace YOUR_COMPLETE_JSON_ARRAY with the full JSON array of keys. The cURL example requires jq.

Path Parameters

id
integer
REQUIRED

The unique identifier of the team.

Body Parameters

keys
array
REQUIRED

The complete array of value keys to assign. Every entry must be a non-blank string. Pass [] to clear all value assignments.

Returns

data
object

The result of the assignment update.

success
boolean

True when the assignment update succeeds.

error
string | null

Null on success. For Console API errors, this field contains the error message.

Request
Response
1
{
2
"data": {
3
"success": true
4
},
5
"error": null
6
}
1
{
2
"data": {
3
"success": true
4
},
5
"error": null
6
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free