Decline the framework template updates for one policy
curl --request POST \
--url https://api.trycomp.ai/v1/policy-template-updates/{id}/decline \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"scope": "UNTIL_TEMPLATE_CHANGES"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({scope: 'UNTIL_TEMPLATE_CHANGES'})
};
fetch('https://api.trycomp.ai/v1/policy-template-updates/{id}/decline', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/policy-template-updates/{id}/decline"
payload = { "scope": "UNTIL_TEMPLATE_CHANGES" }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)Policies
Decline the framework template updates for | Comp AI API
Stops offering this update to everyone in the organization. PERMANENT never offers it again; UNTIL_TEMPLATE_CHANGES offers it again once the template’s.
POST
/
v1
/
policy-template-updates
/
{id}
/
decline
Decline the framework template updates for one policy
curl --request POST \
--url https://api.trycomp.ai/v1/policy-template-updates/{id}/decline \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"scope": "UNTIL_TEMPLATE_CHANGES"
}
'const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({scope: 'UNTIL_TEMPLATE_CHANGES'})
};
fetch('https://api.trycomp.ai/v1/policy-template-updates/{id}/decline', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.trycomp.ai/v1/policy-template-updates/{id}/decline"
payload = { "scope": "UNTIL_TEMPLATE_CHANGES" }
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
Body
application/json
How long the decline holds. PERMANENT never offers this policy’s template updates again; UNTIL_TEMPLATE_CHANGES offers them again as soon as the template’s blocks change.
Available options:
PERMANENT, UNTIL_TEMPLATE_CHANGES Example:
"UNTIL_TEMPLATE_CHANGES"
Response
201 - undefined
Was this page helpful?

