Environments

Update an environment

Changed on

Update an environment's name, default flag, and variable values. Only the fields supplied are changed; omitted fields are left untouched. The supplied values replace the existing values in full — they are not merged. Marking an environment as the default automatically unsets the previous default environment.

patch/environments/{environment_id}

Request

  • Base URL
    https://app.getorchestra.io/api/engine/public
  • URL
    https://app.getorchestra.io/api/engine/public/environments/{environment_id}
  • Auth
    • HTTP bearer
    • or OAuth 2
      Authorization code: https://app.getorchestra.io/oauth/authorize
      Token URL: https://app.getorchestra.io/oauth/token scopes: orchestra:write

Path parameters

environment_idstring uuid4 required

Headers

X-Orchestra-Account-Idstring uuid4 nullable

Act on this account rather than the one the credential resolves to. Omit it to use the credential's own account. An API key is issued to a single account, so it may only name that account; an OAuth token may name any account its grant covers.

Request body

namestring required
valuesobject required
defaultEnvboolean required

Response

Successful Response

accountIdstring uuid4 required
environmentIdstring uuid4 required
namestring required
defaultEnvboolean required
allowedBranchesstring[]
allowUnpublishedPipelinesboolean
valuesobject required
createdAtstring required
updatedAtstring required

Changes

    • breaking

      response property values/additionalProperties/value list-of-types was widened by adding types array and object to media type application/json of response 200

    • warning

      added the new dict enum value to the // response property for the response status

    • warning

      added the new list enum value to the // response property for the response status

    • info

      the endpoint scheme security ApiKey was added to the API

    • info

      the endpoint scheme security OAuth was added to the API

    • info

      the endpoint scheme security BearerAuth was removed from the API

    • info

      added the new optional header request parameter X-Orchestra-Account-Id

    • info

      added the new dict enum value to the request property //

    • info

      added the new list enum value to the request property //

    • info

      request property // list-of-types was widened by adding types array and object to media type application/json

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status