VocalDocscontracts 1.65.0

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

FieldTypeRequiredDescription
action_typePolicyActionTypeyes
compliance_tagComplianceTag or nullnoNull when omitted.
descriptionstringnoFor reviewers; never sent to the model.
enabledbooleannoTrue when omitted.
hookHookPointyes
logicJdmDocumentInputyesThe 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.
namePolicyNameyes
priorityintegerno500 when omitted.
scopePolicyScopenoagent when omitted.

Used by

The operations whose parameters, request body or responses name this shape directly.