curl --request POST \
--url https://statsigapi.net/console/v1/environments \
--header 'Content-Type: application/json' \
--header 'STATSIG-API-KEY: <api-key>' \
--data '
{
"environments": [
{
"name": "<string>",
"isProduction": true,
"requiresReview": true,
"requiresReleasePipeline": true,
"id": "<string>",
"requiredReviewGroupID": "<string>"
}
]
}
'{
"message": "Environments updated successfully.",
"data": {
"environments": [
{
"name": "development",
"id": "0.35629335902367476",
"isProduction": false,
"requiresReview": false,
"requiresReleasePipeline": true
},
{
"name": "latest",
"id": "0.08933465966698129",
"isProduction": false,
"requiresReview": false,
"requiresReleasePipeline": true
},
{
"name": "staging",
"id": "0.015089163460661137",
"isProduction": false,
"requiresReview": false,
"requiresReleasePipeline": true
},
{
"name": "production",
"id": "0.4067426155658289",
"isProduction": true,
"requiresReview": true,
"requiresReleasePipeline": true
}
]
}
}curl --request POST \
--url https://statsigapi.net/console/v1/environments \
--header 'Content-Type: application/json' \
--header 'STATSIG-API-KEY: <api-key>' \
--data '
{
"environments": [
{
"name": "<string>",
"isProduction": true,
"requiresReview": true,
"requiresReleasePipeline": true,
"id": "<string>",
"requiredReviewGroupID": "<string>"
}
]
}
'{
"message": "Environments updated successfully.",
"data": {
"environments": [
{
"name": "development",
"id": "0.35629335902367476",
"isProduction": false,
"requiresReview": false,
"requiresReleasePipeline": true
},
{
"name": "latest",
"id": "0.08933465966698129",
"isProduction": false,
"requiresReview": false,
"requiresReleasePipeline": true
},
{
"name": "staging",
"id": "0.015089163460661137",
"isProduction": false,
"requiresReview": false,
"requiresReleasePipeline": true
},
{
"name": "production",
"id": "0.4067426155658289",
"isProduction": true,
"requiresReview": true,
"requiresReleasePipeline": true
}
]
}
}Optional header to respect review settings for mutation endpoints.
Show child attributes
The name of the environment.
Whether the environment is production.
Whether the environment requires review.
Whether the environment requires a release pipeline.
A unique identifier for the environment. If not provided, the associated environment will be treated as a newly created environment.
The ID of the review group that the environment requires review from.
Update Environments Response
A simple string explaining the result of the operation.
A single result.
Show child attributes
Show child attributes
The name of the environment.
A unique identifier for the environment.
Whether the environment is production.
Whether the environment requires review.
Whether the environment requires a release pipeline.
The ID of the review group that the environment requires review from.
Was this page helpful?