curl --request POST \
--url https://api.trycomp.ai/v1/policies/{id}/accept-changes \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"approverId": "mem_abc123def456"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({approverId: 'mem_abc123def456'})
};
fetch('https://api.trycomp.ai/v1/policies/{id}/accept-changes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/policies/{id}/accept-changes"
payload = { "approverId": "mem_abc123def456" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Accept pending policy changes and publish the | Comp AI API
Approves and publishes the pending version. The authenticated member or API key creator must be the assigned approver. Supply their member ID.
curl --request POST \
--url https://api.trycomp.ai/v1/policies/{id}/accept-changes \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"approverId": "mem_abc123def456"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({approverId: 'mem_abc123def456'})
};
fetch('https://api.trycomp.ai/v1/policies/{id}/accept-changes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/policies/{id}/accept-changes"
payload = { "approverId": "mem_abc123def456" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Authorizations
API key for authentication
Headers
Organization ID (required for session auth, optional for API key auth)
Path Parameters
Policy ID
"pol_abc123def456"
Body
Approver accepting the pending changes
Assigned approver member ID. Must match the authenticated member or API key creator.
"mem_abc123def456"
Optional note stored with the approval.
"Reviewed against the Q3 access-control changes."
Publish the approved version as a minor change: keep existing employee acknowledgments and send no re-acknowledgment emails only when reliable publication history exists. First publication and legacy policies without reliable history still require acknowledgment. Use only for corrections that do not change what the policy requires. Defaults to false.
false
Response
Was this page helpful?

