Rotate Key
Reference for the PATCH /console/v1/keys/{id}/rotate endpoint of the Statsig API.
patch
https://statsigapi.net/console/v1/keys/{id}/rotateAuthorizations
STATSIG-API-KEYstringrequiredapiKey (header)
Path parameters
idstringrequiredResponse
application/json200· Key rotated 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?