Update Environments
post
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/json200· Update Environments Response
messagestringrequiredA 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.
400· Invalid request. Please check the request input and try again.
statusintegerrequiredAllowed values:
400messagestringrequired401· This endpoint only accepts an active CONSOLE key, but an invalid key was sent. Key: console-xxxXXXxxxXXXxxx
statusintegerrequiredAllowed values:
401messagestringrequiredWas this helpful?