Create a new policy version or list all versions of a specific policy
| Parameter | Type | Required | Description |
|---|---|---|---|
policy_id | uuid | Yes | UUID of the policy to add a version to |
| Parameter | Type | Required | Description |
|---|---|---|---|
organization_id | uuid | Yes | UUID of the organization for access control |
| Field | Type | Required | Description |
|---|---|---|---|
version_name | string | No | Name for this version (auto-generated if not provided, e.g., “version 2”) |
content | object | Yes | Policy content structure (see below) |
content field accepts a JSON object with the following optional sections:
| Field | Type | Description |
|---|---|---|
guidelines | object | Hierarchical structure with categories array containing rules |
guidelines.categories[].title | string | Category title (required) |
guidelines.categories[].description | string | Category description (optional) |
guidelines.categories[].rules | array | List of rules in this category |
guidelines.categories[].rules[].title | string | Rule title (required) |
guidelines.categories[].rules[].description | string | Rule description (optional) |
guidelines.categories[].rules[].flag | string | GREEN_FLAG or RED_FLAG (optional) |
guidelines.categories[].rules[].sub_rules | array | Nested sub-rules (optional) |
instructions | string | Free-form text instructions for the agent |
dispositions | object | Classification options with classifications array |
dispositions.classifications[].name | string | Classification name (required) |
dispositions.classifications[].description | string | Classification description (optional) |
dispositions.classifications[].prompt | string | Prompt for when to use this classification (optional) |
summary_template | object | Template for generating summaries |
summary_template.template | string | Handlebars-style template string |
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
UUID of the organization for access control. Required.