Publish policy version | Comp AI API
Publishes a draft policy version, making it the active/current version of the policy. Pass the versionId of the draft you want to publish — for example one.
Documentation Index
Fetch the complete documentation index at: https://www.trycomp.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Authorizations
API key for authentication
Headers
Organization ID (required for session auth, optional for API key auth)
Path Parameters
Policy ID
"pol_abc123def456"
Body
Publish a new policy version
Version ID to publish. PASS THIS after update-version to publish your edits — omitting it publishes stale draftContent (loses your changes).
"pv_abc123def456"
Whether to set this version as the active version
true
Optional changelog to associate with the published version
"Updated access controls section"

