Assistant
Set thread goal.
Set or replace the durable thread-level goal without appending a user message or starting a new assistant stream.
PUT
/
api
/
v1
/
assistant
/
threads
/
{id}
/
goal
Set thread goal.
curl --request PUT \
--url https://api.revoengine.com/api/v1/assistant/threads/{id}/goal \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"objective": "<string>"
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({objective: '<string>'})
};
fetch('https://api.revoengine.com/api/v1/assistant/threads/{id}/goal', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/assistant/threads/{id}/goal"
payload = { "objective": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)Body
application/json
Response
Thread goal updated.
⌘I
Set thread goal.
curl --request PUT \
--url https://api.revoengine.com/api/v1/assistant/threads/{id}/goal \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"objective": "<string>"
}
'const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({objective: '<string>'})
};
fetch('https://api.revoengine.com/api/v1/assistant/threads/{id}/goal', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.revoengine.com/api/v1/assistant/threads/{id}/goal"
payload = { "objective": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)
