Edit a proposed AI plan step's parameters (bearer token)
import requests
url = "https://platform.ankra.app/api/v1/chat/plans/{plan_id}/steps/{step_id}"
payload = { "parameters": {} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({parameters: {}})
};
fetch('https://platform.ankra.app/api/v1/chat/plans/{plan_id}/steps/{step_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PATCH \
--url https://platform.ankra.app/api/v1/chat/plans/{plan_id}/steps/{step_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"parameters": {}
}
'{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}chat
Edit a proposed AI plan step's parameters (bearer token)
PATCH
/
api
/
v1
/
chat
/
plans
/
{plan_id}
/
steps
/
{step_id}
Edit a proposed AI plan step's parameters (bearer token)
import requests
url = "https://platform.ankra.app/api/v1/chat/plans/{plan_id}/steps/{step_id}"
payload = { "parameters": {} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({parameters: {}})
};
fetch('https://platform.ankra.app/api/v1/chat/plans/{plan_id}/steps/{step_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request PATCH \
--url https://platform.ankra.app/api/v1/chat/plans/{plan_id}/steps/{step_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"parameters": {}
}
'{
"detail": "Cluster not found"
}{
"detail": "Cluster not found"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Response
The updated plan document