Assistant
Update thread metadata.
Patch supported assistant thread metadata only, including read/unread and pinned state.
PATCH
/
api
/
v1
/
assistant
/
threads
/
{id}
/
metadata
Update thread metadata.
curl --request PATCH \
--url https://api.revoengine.com/api/v1/assistant/threads/{id}/metadata \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"metadata": {
"readAt": true,
"pinned": true
}
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({metadata: {readAt: true, pinned: true}})
};
fetch('https://api.revoengine.com/api/v1/assistant/threads/{id}/metadata', 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}/metadata"
payload = { "metadata": {
"readAt": True,
"pinned": True
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)Authorizations
Bearer JWT token or API Key (sk-*).
Path Parameters
Body
application/json
Thread metadata patch. V1 supports read/unread and pinned state; timestamps and actor fields are owned by the backend.
Show child attributes
Show child attributes
Example:
{ "readAt": true, "pinned": true }
Response
Thread metadata updated.
⌘I
Update thread metadata.
curl --request PATCH \
--url https://api.revoengine.com/api/v1/assistant/threads/{id}/metadata \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"metadata": {
"readAt": true,
"pinned": true
}
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({metadata: {readAt: true, pinned: true}})
};
fetch('https://api.revoengine.com/api/v1/assistant/threads/{id}/metadata', 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}/metadata"
payload = { "metadata": {
"readAt": True,
"pinned": True
} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)
