Keys

Deactivate Key

patch/console/v1/keys/{id}/deactivate

Request

  • Base URL
    https://statsigapi.net
  • URL
    https://statsigapi.net/console/v1/keys/{id}/deactivate
  • Auth
    API key in header STATSIG-API-KEY

Path parameters

idstring required

Response

Key deactivated successfully

messagestring

Example response

{
  "message": "Key deactivated successfully.",
  "data": {
    "key": "secret-123",
    "type": "SERVER",
    "description": "Server secret key",
    "scopes": [],
    "environments": [
      "production"
    ],
    "primaryTargetApp": "primaryApp",
    "targetAppID": "app_id_123",
    "secondaryTargetApps": [
      "secondaryApp"
    ],
    "secondaryTargetAppIDs": [
      "app_id_456"
    ],
    "status": "active"
  }
}

Changes

No recorded changes to this operation across all 41 revisions of this API.