Restore a skipped AI plan step
import requests
url = "https://platform.ankra.app/api/v1/chat/plans/{plan_id}/steps/{step_id}/restore"
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/chat/plans/{plan_id}/steps/{step_id}/restore', 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/chat/plans/{plan_id}/steps/{step_id}/restore \
--header 'Authorization: Bearer <token>'{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Chat
Restore a skipped AI plan step
Puts a skipped step of an AI plan back into the plan and returns the updated plan. Answers 400 when the step cannot be restored.
POST
/
api
/
v1
/
chat
/
plans
/
{plan_id}
/
steps
/
{step_id}
/
restore
Restore a skipped AI plan step
import requests
url = "https://platform.ankra.app/api/v1/chat/plans/{plan_id}/steps/{step_id}/restore"
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/chat/plans/{plan_id}/steps/{step_id}/restore', 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/chat/plans/{plan_id}/steps/{step_id}/restore \
--header 'Authorization: Bearer <token>'{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}