Approve a remediation action
import requests
url = "https://platform.ankra.app/api/v1/org/ai-remediation/approvals/{action_id}/approve"
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}/approve', 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}/approve \
--header 'Authorization: Bearer <token>'{
"detail": "<string>",
"status": "approved"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}AI Remediation
Approve a remediation action
Approves 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}
/
approve
Approve a remediation action
import requests
url = "https://platform.ankra.app/api/v1/org/ai-remediation/approvals/{action_id}/approve"
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}/approve', 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}/approve \
--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.