Reject a remediation action
import requests
url = "https://platform.ankra.app/api/v1/org/ai-remediation/approvals/{action_id}/reject"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/ai-remediation/approvals/{action_id}/reject', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/ai-remediation/approvals/{action_id}/reject \
--header 'Authorization: Bearer <token>'{
"detail": "<string>",
"status": "approved"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}AI Remediation
Reject a remediation action
Rejects one pending AI remediation action. Only organisation admins who are designated approvers in the policy may decide; a call that is not relayed from an approval card also needs a token whose scopes name ai_actions.approve.
POST
/
api
/
v1
/
org
/
ai-remediation
/
approvals
/
{action_id}
/
reject
Reject a remediation action
import requests
url = "https://platform.ankra.app/api/v1/org/ai-remediation/approvals/{action_id}/reject"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/ai-remediation/approvals/{action_id}/reject', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://platform.ankra.app/api/v1/org/ai-remediation/approvals/{action_id}/reject \
--header 'Authorization: Bearer <token>'{
"detail": "<string>",
"status": "approved"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.