Publish all draft policies
curl --request POST \
--url https://api.trycomp.ai/v1/policies/publish-all \
--header 'X-API-Key: <api-key>'const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/policies/publish-all', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/policies/publish-all"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text){
"success": true,
"publishedCount": 3,
"skippedCount": 1,
"members": [
{
"email": "jane@acme.com",
"userName": "Jane Doe",
"organizationName": "Acme Inc",
"organizationId": "org_abc123"
}
]
}Policies
Publish all draft policies | Comp AI API
Publish draft policies in bulk so approved policy content can power Trust Center sharing, questionnaire answers, and audit evidence.
POST
/
v1
/
policies
/
publish-all
Publish all draft policies
curl --request POST \
--url https://api.trycomp.ai/v1/policies/publish-all \
--header 'X-API-Key: <api-key>'const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/policies/publish-all', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/policies/publish-all"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text){
"success": true,
"publishedCount": 3,
"skippedCount": 1,
"members": [
{
"email": "jane@acme.com",
"userName": "Jane Doe",
"organizationName": "Acme Inc",
"organizationId": "org_abc123"
}
]
}Authorizations
API key for authentication
Headers
Organization ID (required for session auth, optional for API key auth)
Response
201 - application/json
Bulk publish completed
Example:
true
How many policies were published or re-affirmed
Example:
3
How many unpublished policies were left alone — awaiting an approver, or holding a version nobody has published
Example:
1
Who must re-acknowledge: the compliance audience of every policy that went live with new content. Empty when the run published nothing, or only re-affirmed policies whose content nobody changed (those keep their acknowledgments).
Show child attributes
Show child attributes
Was this page helpful?

