PATCH
/
console
/
v1
/
keys
/
{id}
curl --request PATCH \
  --url https://statsigapi.net/console/v1/keys/{id} \
  --header 'Content-Type: application/json' \
  --header 'STATSIG-API-KEY: <api-key>' \
  --data '{
  "description": "<string>",
  "scopes": [
    "omni_read_only"
  ],
  "environments": [
    "<string>"
  ],
  "targetAppID": "<string>",
  "secondaryTargetAppIDs": [
    "<string>"
  ]
}'
{
  "message": "Key updated successfully.",
  "data": {
    "environments": [
      "staging"
    ],
    "targetAppID": "primaryApp",
    "secondaryTargetAppIDs": null
  }
}

Authorizations

STATSIG-API-KEY
string
header
required

Headers

x-respect-review-settings
string

Optional header to respect review settings for mutation endpoints.

Path Parameters

id
string
required

Body

application/json

Response

200
application/json

Key updated successfully

The response is of type object.