Skip to content
Hexel StudioDocs

List policy suggestions

GET/titan/management/deployments/{id}/policy/suggestions

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

Returns

200Organization-scoped result.PolicySuggestionList

drafts_enabledoptional boolean
suggestionsarray of object
templates_unavailableoptional boolean

Errors

  • 400Invalid request, path or query (a preview needs exactly one option and at most one approval_profile_id; a template's scope is agent_id, repeated, or all_agents=true).
  • 401Missing or invalid authenticated context.
  • 403Organization mismatch, or the IAM action is denied: titan:policy:read to list and preview, titan:policy:publish to accept or dismiss; FORBIDDEN too when the deployment's Gateway refuses the caller's own token for its policy signals (titan:policy:read and titan:ledger:read).
  • 404Unknown or foreign deployment; SUGGESTION_NOT_FOUND when the suggestion is not open (unknown, dismissed or accepted); NOT_FOUND for every suggestions path while the caller's organization does not have policy suggestions.
  • 405HTTP method is not supported on this route.
  • 409SUGGESTION_STALE when base_source_digest is not the policy in force (read the suggestions again); the deployment is not a provisioned Titan Cloud or Titan Dedicated deployment (DEPLOYMENT_NOT_PROVISIONED), is retired (DEPLOYMENT_RETIRED) or has an operation in progress (OPERATION_IN_PROGRESS).
  • 502The deployment's Configuration Authority refused or answered unexpectedly (closed code).
  • 503POLICY_SIGNALS_UNAVAILABLE when the deployment's Gateway evidence (GET /titan/v1/admin/policy-signals, read with the caller's own token) cannot be read or does not check out; CAPABILITY_BUNDLE_UNAVAILABLE when a suggestion is not found while the deployment's signed capability bundle (the source of template suggestions) cannot be read from its Configuration Authority or does not verify against the deployment's configuration key (the list then answers 200 with templates_unavailable); IDENTITY_BUNDLE_UNAVAILABLE when a template's agent_ids cannot be checked against the deployment's signed identity bundle; local storage or the deployment's Configuration Authority unavailable.