Recall version from approval
curl --request POST \
--url https://api.trycomp.ai/v1/policies/{id}/recall-approval \
--header 'X-API-Key: <api-key>'const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/policies/{id}/recall-approval', 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}/recall-approval"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text){
"data": {
"versionId": "<string>",
"version": 123,
"status": "draft",
"editable": true
},
"authType": "api-key",
"authenticatedUser": {
"id": "<string>",
"email": "<string>"
}
}{
"message": "Invalid request"
}{
"message": "Unauthorized"
}{
"message": "Resource not found"
}Policies
Recall version from approval | Comp AI API
Withdraws the version pending approval without the approver denying it. If editable is true, change it with update-policy-version-content and resubmit; if.
POST
/
v1
/
policies
/
{id}
/
recall-approval
Recall version from approval
curl --request POST \
--url https://api.trycomp.ai/v1/policies/{id}/recall-approval \
--header 'X-API-Key: <api-key>'const options = {method: 'POST', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.trycomp.ai/v1/policies/{id}/recall-approval', 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}/recall-approval"
headers = {"X-API-Key": "<api-key>"}
response = requests.post(url, headers=headers)
print(response.text){
"data": {
"versionId": "<string>",
"version": 123,
"status": "draft",
"editable": true
},
"authType": "api-key",
"authenticatedUser": {
"id": "<string>",
"email": "<string>"
}
}{
"message": "Invalid request"
}{
"message": "Unauthorized"
}{
"message": "Resource not found"
}Authorizations
API key for authentication
Headers
Organization ID (required for session auth, optional for API key auth)
Path Parameters
Policy ID
Example:
"pol_abc123def456"
Response
Approval request withdrawn
Was this page helpful?

