Extend a proposed AI plan's expiry
import requests
url = "https://platform.ankra.app/api/v1/chat/plans/{plan_id}/refresh"
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}/refresh', 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}/refresh \
--header 'Authorization: Bearer <token>'{
"expires_at": "<string>",
"plan_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Chat
Extend a proposed AI plan's expiry
Pushes back the expiry of a proposed AI plan and returns the new expires_at. It does not regenerate the plan; answers 409 when the plan is not in a refreshable state.
POST
/
api
/
v1
/
chat
/
plans
/
{plan_id}
/
refresh
Extend a proposed AI plan's expiry
import requests
url = "https://platform.ankra.app/api/v1/chat/plans/{plan_id}/refresh"
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}/refresh', 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}/refresh \
--header 'Authorization: Bearer <token>'{
"expires_at": "<string>",
"plan_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}