Update Key

Reference for the PATCH /console/v1/keys/{id} endpoint of the Statsig API.

patchhttps://statsigapi.net/console/v1/keys/{id}

Authorizations

STATSIG-API-KEYstringrequired

apiKey (header)

Path parameters

idstringrequired

Body

application/json
descriptionstring
Constraints:max length: 1000
targetAppIDstring
Constraints:nullable
secondaryTargetAppIDsstring[]
Constraints:nullable
Other properties2
scopesstring[]
environmentsstring[]

Response

application/json
200· Key updated successfully
messagestringrequired

A simple string explaining the result of the operation.

dataobjectrequired
Show child attributes
keystringrequired
Constraints:nullable
typestringrequired
Allowed values:SERVERCLIENTCONSOLESCIMORG
descriptionstringrequired
scopesstring[]required
environmentsstring[]
primaryTargetAppstring
Constraints:nullable
secondaryTargetAppsstring[]
Constraints:nullable
statusstringrequired
Allowed values:activedeactivated
lastUsedstring
Constraints:nullable
403· Insufficient permissions.
statusintegerrequired
Allowed values:403
messagestringrequired
404· Key not found.
statusintegerrequired
Allowed values:404
messagestringrequired

Was this helpful?