Set or update the session goal
curl --request POST \
--url https://aquila.attaxr.com/api/chat/{id}/goal \
--header 'Content-Type: application/json' \
--cookie better-auth.session_token= \
--data '
{
"action": "cancel"
}
'const options = {
method: 'POST',
headers: {cookie: 'better-auth.session_token=', 'Content-Type': 'application/json'},
body: JSON.stringify({action: 'cancel'})
};
fetch('https://aquila.attaxr.com/api/chat/{id}/goal', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://aquila.attaxr.com/api/chat/{id}/goal"
payload = { "action": "cancel" }
headers = {
"cookie": "better-auth.session_token=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Chat
Set or update the session goal
Runs a goal action on the thread. Action cancel stops the active goal loop at the next turn boundary.
POST
/
api
/
chat
/
{id}
/
goal
Set or update the session goal
curl --request POST \
--url https://aquila.attaxr.com/api/chat/{id}/goal \
--header 'Content-Type: application/json' \
--cookie better-auth.session_token= \
--data '
{
"action": "cancel"
}
'const options = {
method: 'POST',
headers: {cookie: 'better-auth.session_token=', 'Content-Type': 'application/json'},
body: JSON.stringify({action: 'cancel'})
};
fetch('https://aquila.attaxr.com/api/chat/{id}/goal', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://aquila.attaxr.com/api/chat/{id}/goal"
payload = { "action": "cancel" }
headers = {
"cookie": "better-auth.session_token=",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}
