Skip to content
Hexel StudioDocs

Set workspace policy layer

PUT/titan/management/policy-layers/workspaces/{workspace_id}

Path parameters

A workspace id of the organization.

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

deploymentsoptional array of object
workspacesmap[object]

Errors

  • 400Invalid request or path; POLICY_LAYER_INVALID when the layer source does not compile, does not name the caller's organization and enforcement_deployment_id "*", has a rule other than deny or require_approval or a rule with limits, obligations or connection constraints, or cannot be composed with a deployment's policy; POLICY_TERM_UNSUPPORTED when a rule has a mode (a watch-only rule) and watch-only rules is off, except for the layer in force submitted again.
  • 401Missing or invalid authenticated context.
  • 403Organization mismatch, or the IAM action is denied: titan:policy:read to read, titan:policy:publish to change.
  • 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 stored layer's (POLICY_REVISION_STALE); POLICY_LAYER_WORKSPACE_LIMIT_REACHED when the organization already has layers for 1,000 workspaces.
  • 413Request body exceeds its size limit.
  • 415Unsupported request media type.
  • 502A deployment's Configuration Authority refused or answered unexpectedly (closed code) when a PUT read its entry; nothing was stored.
  • 503Local storage or a deployment's Configuration Authority unavailable. A PUT waits for every provisioned deployment management can address: when one's entry cannot be read, nothing is stored; retry. A DELETE never waits for the deployments; a deployment management cannot address under its configuration is listed (PROVISIONING_NOT_CONFIGURED) and flagged (policy_layers_refused), not waited for.