Skip to content
Hexel StudioDocs

Update deployment policy

PUT/titan/management/deployments/{id}/policy

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).

Body parameters

approval_profilesarray of object
approval_rolesarray of object
rulesarray of object
versioninteger

Returns

200Organization-scoped result.PolicyView

sourcePolicySource

Errors

  • 400Invalid request or path; POLICY_INVALID when the source does not compile or names another organization or deployment; POLICY_TERM_UNSUPPORTED when it asks for a term Titan does not enforce yet (a rule's maximum_concurrency, maximum_cost_microunits or audit_profile_ids, or an audit obligation_profile_references entry; and executor_obligation_profile_ids or an executor entry unless the deployment's Configuration Authority signs executor obligation profiles, executor obligation profiles; and a rule's mode, a watch-only rule, unless watch-only rules, except for the policy in force submitted again); OBLIGATION_PROFILE_UNKNOWN when a response_filter or executor reference names a profile the deployment does not have installed (obligation-profiles, executor-obligation-profiles) with that profile_version and profile_digest.
  • 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.
  • 409source_revision is not greater than the one in force (POLICY_REVISION_STALE), or the deployment is not a provisioned shared-plane or Titan Dedicated deployment (DEPLOYMENT_NOT_PROVISIONED), is retired (DEPLOYMENT_RETIRED) or has an operation in progress (OPERATION_IN_PROGRESS).
  • 503Local storage or preparation service unavailable.