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
}
}
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
}
}
Optional header to respect review settings for mutation endpoints.
Key updated successfully
The response is of type object
.