Policies

Create policy version

Creates a new draft version of a policy, cloned from the current published version (or a specified source version). Use this when you need to make any change to a published policy — content edits, PDF attachments, anything. Published.

post/v1/policies/{id}/versions

Path parameters

idstring required
Example:pol_abc123def456

Policy ID

Headers

X-Organization-Idstring

Organization ID (required for session auth, optional for API key auth)

Request body

versionnumber required

Version number for this published script

scriptKeystring required

S3 key of the already-generated & published automation script (returned by the publish step).

changelogstring

Optional changelog describing this version

Example request

{
  "version": 1,
  "scriptKey": "org_abc123/tsk_abc123/aut_abc123.v1.js"
}

Response

Policy version created

versionIdstring
versionnumber

Changes