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

Request

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

Path parameters

idstring required

Request body

descriptionstring
scopesstring[]
environmentsstring[]
targetAppIDstring nullable
secondaryTargetAppIDsstring[] nullable

Response

Key updated successfully

messagestring required

A simple string explaining the result of the operation.

Example response

{
  "message": "Key updated successfully.",
  "data": {
    "environments": [
      "staging"
    ],
    "primaryTargetApp": "primaryApp",
    "targetAppID": "app_id_123",
    "secondaryTargetApps": null,
    "secondaryTargetAppIDs": null
  }
}

Changes

    • info

      added the optional property // to the response with the status

    • info

      added the optional property // to the response with the status