Preview policy suggestion
GET
/titan/management/deployments/{id}/policy/suggestions/{sid}Path parameters
Query parameters
optionstring
The option to preview (one the suggestion offers; draft for a suggestion of kind draft).
One of: "allow", "allow_limited", "require_approval", "draft"
approval_profile_idoptional string
With require_approval: an approval profile of the policy in force (absent: the policy's first).
agent_idoptional array of string
A template's scope (POL-D7): an active agent of the deployment, repeated for each (1-256); or all_agents=true. Required for a template, refused for any other kind.
all_agentsoptional string
A template's scope: every agent of the deployment (recorded on accept). Exclusive with agent_id.
One of: "true"
Headers
Authorizationstring
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.PolicySuggestionPreview
added_rulesarray of object
approval_profile_idoptional string
base_source_digeststring
evidence_digeststring
kindstring
optionstring
problemsarray of string
source_revisioninteger
suggestion_idstring
validboolean
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).
- 422SUGGESTION_INVALID: the suggestion does not offer the option, the approval profile is missing, unknown or not wanted, a template has no scope (agent_ids or all_agents), both, or an agent that is not an active agent of the deployment, another kind has a scope, the body is not the closed accept body, or the policy checks refuse the proposed policy.
- 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.