Replace the team's list assignments. To add a list, 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 list 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
- idintegerREQUIRED
The unique identifier of the team.
Body Parameters
- keysarrayREQUIRED
The complete array of list keys to assign. Every entry must be a non-blank string. Pass
[]to clear all list assignments.
Returns
- dataobject
The result of the assignment update.
- successboolean
True when the assignment update succeeds.
- errorstring | null
Null on success. For Console API errors, this field contains the error message.
1{2"data": {3"success": true4},5"error": null6}
1{2"data": {3"success": true4},5"error": null6}