PolicyCreateRequest
Creates a Policy draft at revision 1 (1.47.0). The document is linted at save; a reserved action type is refused with capability_not_available.
An object with 9 fields.
Fields
| Field | Type | Required | Description |
|---|---|---|---|
action_type | PolicyActionType | yes | |
compliance_tag | ComplianceTag or null | no | Null when omitted. |
description | string | no | For reviewers; never sent to the model. |
enabled | boolean | no | True when omitted. |
hook | HookPoint | yes | |
logic | JdmDocumentInput | yes | The JDM document under the Vocal profile: its input is the hook's Call context and it writes the parameters of the action type under action, or nothing. Every save and publish lints it (policyLint); an error refuses with 422 validation_failed. |
name | PolicyName | yes | |
priority | integer | no | 500 when omitted. |
scope | PolicyScope | no | agent when omitted. |
Used by
The operations whose parameters, request body or responses name this shape directly.