curl --request POST \
--url http://localhost:3333/v1/policies/{id}/versions/publish \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"setAsActive": true,
"changelog": "Updated access controls section"
}
'{
"versionId": "<string>",
"version": 123
}Publishes draft content as a new version and optionally sets it as active.
curl --request POST \
--url http://localhost:3333/v1/policies/{id}/versions/publish \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"setAsActive": true,
"changelog": "Updated access controls section"
}
'{
"versionId": "<string>",
"version": 123
}API key for authentication
Policy ID
"pol_abc123def456"
Publish a new policy version
Was this page helpful?