Update Environments
Reference for the POST /console/v1/environments endpoint of the Statsig API.
https://statsigapi.net/console/v1/environmentsAuthorizations
STATSIG-API-KEYstringrequiredapiKey (header)
Body
application/jsonenvironmentsobject[]requiredShow child attributes
namestringrequiredThe name of the environment.
idstringA unique identifier for the environment. If not provided, the associated environment will be treated as a newly created environment.
isProductionbooleanrequiredWhether the environment is production.
requiresReviewbooleanrequiredWhether the environment requires review.
requiredReviewGroupIDstringThe ID of the review group that the environment requires review from.
requiresReleasePipelinebooleanrequiredWhether the environment requires a release pipeline.
Response
application/jsonmessagestringrequiredA simple string explaining the result of the operation.
dataobjectrequiredShow child attributes
environmentsobject[]requirednamestringrequiredThe name of the environment.
idstringrequiredA unique identifier for the environment.
isProductionbooleanrequiredWhether the environment is production.
requiresReviewbooleanrequiredWhether the environment requires review.
requiredReviewGroupIDstringThe ID of the review group that the environment requires review from.
requiresReleasePipelinebooleanrequiredWhether the environment requires a release pipeline.
statusintegerrequired400messagestringrequiredstatusintegerrequired401messagestringrequiredWas this helpful?