Update Key
Reference for the PATCH /console/v1/keys/{id} endpoint of the Statsig API.
patch
https://statsigapi.net/console/v1/keys/{id}Authorizations
STATSIG-API-KEYstringrequiredapiKey (header)
Path parameters
idstringrequiredBody
application/jsondescriptionstringConstraints:
max length: 1000targetAppIDstringConstraints:
nullablesecondaryTargetAppIDsstring[]Constraints:
nullableOther properties2
scopesstring[]environmentsstring[]Response
application/json200· Key updated successfully
messagestringrequiredA simple string explaining the result of the operation.
dataobjectrequiredShow child attributes
keystringrequiredConstraints:
nullabletypestringrequiredAllowed values:
SERVERCLIENTCONSOLESCIMORGdescriptionstringrequiredscopesstring[]requiredenvironmentsstring[]primaryTargetAppstringConstraints:
nullablesecondaryTargetAppsstring[]Constraints:
nullablestatusstringrequiredAllowed values:
activedeactivatedlastUsedstringConstraints:
nullable403· Insufficient permissions.
statusintegerrequiredAllowed values:
403messagestringrequired404· Key not found.
statusintegerrequiredAllowed values:
404messagestringrequiredWas this helpful?