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.
Path parameters
Policy ID
Headers
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
Changes
Changed in 3 of the 56 revisions of this API.3
- ○
the endpoint scheme security
oauth2was removed from the APIapi-security-removed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
the endpoint scheme security
oauth2was added to the APIapi-security-added
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
added the new optional request property
versionIdnew-optional-request-property
This revision also has 2 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○