Policies
Publish policy version
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 created via create-policy-version and then edited.
post/v1/policies/{id}/versions/publish
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
{
"versionId": "pv_abc123def456",
"setAsActive": true,
"changelog": "Updated access controls section"
}Response
Version published