Skip to content
Hexel StudioDocs

Update deployment environment states

PUT/titan/management/deployments/{id}/environment-states

Path parameters

idstring

Headers

Bearer <token>. A Hexel Studio access token for a member or a service user of your organization (or send a service user's API key as X-API-Key).

If-Matchoptional string

The version read (ETag or version). The replacement is refused with 412 ENVIRONMENT_STATES_VERSION_STALE when the states in force have another version; without it the list is replaced unconditionally.

Body parameters

environmentsarray of object

Returns

200Organization-scoped result.EnvironmentStatesView

configuredboolean
enforcedboolean
environmentsarray of object
versionstring

Errors

  • 400Invalid request or path; ENVIRONMENT_STATES_INVALID when the list does not match the closed schema (an unknown state or reason, active listed, a duplicate environment, over 1000 environments).
  • 401Missing or invalid authenticated context.
  • 403Organization mismatch or denied IAM action.
  • 404Unknown or foreign organization resource, or plan not yet prepared.
  • 405HTTP method is not supported on this route.
  • 409The deployment is not a provisioned shared-plane deployment (DEPLOYMENT_NOT_PROVISIONED) or is retired (DEPLOYMENT_RETIRED).
  • 412ENVIRONMENT_STATES_VERSION_STALE: If-Match names a version other than the one in force (another administrator changed the states since they were read); read them again and retry.
  • 413Request body exceeds its size limit.
  • 415Unsupported request media type.
  • 502The deployment's Configuration Authority refused or answered unexpectedly (closed code).
  • 503Local storage or the deployment's Configuration Authority unavailable.