Get what became of an approval request
import requests
url = "https://api.platform.ankra.app/org/ai-remediation/approvals/{action_id}"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/org/ai-remediation/approvals/{action_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.platform.ankra.app/org/ai-remediation/approvals/{action_id} \
--cookie ankra_session={
"action_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"outcome": "waiting",
"status": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"settled_at": "2023-11-07T05:31:56Z",
"decided_by": "<string>",
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}AI Remediation
Get what became of an approval request
One AI remediation approval request whatever its state: still waiting, approved, rejected, expired, replaced by a newer request, or ended because its ticket was closed. The Slack approval card links to the request, and a request that is no longer waiting is not in the approvals list, so this read says what happened to it. Readable by any member; a request of another organisation, or on a cluster outside the caller’s projects, answers 404.
GET
/
org
/
ai-remediation
/
approvals
/
{action_id}
Get what became of an approval request
import requests
url = "https://api.platform.ankra.app/org/ai-remediation/approvals/{action_id}"
headers = {"cookie": "ankra_session="}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {cookie: 'ankra_session='}};
fetch('https://api.platform.ankra.app/org/ai-remediation/approvals/{action_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://api.platform.ankra.app/org/ai-remediation/approvals/{action_id} \
--cookie ankra_session={
"action_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"description": "<string>",
"outcome": "waiting",
"status": "<string>",
"expires_at": "2023-11-07T05:31:56Z",
"settled_at": "2023-11-07T05:31:56Z",
"decided_by": "<string>",
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Response
What became of the request.
What became of one AI remediation approval request.
What became of the request. A request past its window that the expiry sweep has not reached yet already reads expired; ticket_closed means it was never decided and the ticket it served was closed.
Available options:
waiting, approved, rejected, expired, superseded, ticket_closed