Update Environments

posthttps://statsigapi.net/console/v1/environments

Authorizations

STATSIG-API-KEYstringrequired

apiKey (header)

Body

application/json
environmentsobject[]required
Show child attributes
name[]stringrequired

The name of the environment.

id[]string

A unique identifier for the environment. If not provided, the associated environment will be treated as a newly created environment.

isProduction[]booleanrequired

Whether the environment is production.

requiresReview[]booleanrequired

Whether the environment requires review.

requiredReviewGroupID[]string

The ID of the review group that the environment requires review from.

requiresReleasePipeline[]booleanrequired

Whether the environment requires a release pipeline.

Response

application/json
200· Update Environments Response
messagestringrequired

A simple string explaining the result of the operation.

dataobjectrequired
Show child attributes
environmentsobject[]required
name[]stringrequired

The name of the environment.

id[]stringrequired

A unique identifier for the environment.

isProduction[]booleanrequired

Whether the environment is production.

requiresReview[]booleanrequired

Whether the environment requires review.

requiredReviewGroupID[]string

The ID of the review group that the environment requires review from.

requiresReleasePipeline[]booleanrequired

Whether the environment requires a release pipeline.

400· Invalid request. Please check the request input and try again.
statusintegerrequired
messagestringrequired
401· This endpoint only accepts an active CONSOLE key, but an invalid key was sent. Key: console-xxxXXXxxxXXXxxx
statusintegerrequired
messagestringrequired

Was this helpful?