Policies
Create policy version
Changed onCreates 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
Request
- Base URLhttps://api.trycomp.ai
- AuthAPI key in header X-API-Key
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
Example request
{
"sourceVersionId": "pv_abc123def456",
"changelog": "Initial draft for quarterly updates"
}Response
Policy version created
Changes
- warning
removed the request property
- warning
removed the request property
- info
added the new optional request property
- warning
- breaking
added the new required request property
- breaking
added the new required request property
- warning
removed the request property
- breaking