Re-check a pending AI action against the live cluster state
import requests
url = "https://platform.ankra.app/api/v1/chat/actions/{action_id}/revalidate"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/chat/actions/{action_id}/revalidate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/chat/actions/{action_id}/revalidate \
--header 'Authorization: Bearer <token>'{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}Chat
Re-check a pending AI action against the live cluster state
Re-checks a pending AI action before it is confirmed. Answers 200 when it still applies, 409 when the cluster state drifted or the action was superseded, 410 when it expired, 404 when it is unknown, and 503 when the cluster agent could not be reached.
GET
/
api
/
v1
/
chat
/
actions
/
{action_id}
/
revalidate
Re-check a pending AI action against the live cluster state
import requests
url = "https://platform.ankra.app/api/v1/chat/actions/{action_id}/revalidate"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/chat/actions/{action_id}/revalidate', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/chat/actions/{action_id}/revalidate \
--header 'Authorization: Bearer <token>'{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "Cluster not found"
}