Assistant
Report an assistant conversation.
Submit conversation feedback to the RevoEngine team. Send the required Description as reason. Older clients may send the deprecated summary field in its place. A missing or blank description returns 400. You can also include a message reference. Returns an acceptance receipt.
POST
/
api
/
v1
/
assistant
/
threads
/
{id}
/
report
Report an assistant conversation.
curl --request POST \
--url https://api.revoengine.com/api/v1/assistant/threads/{id}/report \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "The assistant assumed the wrong tenant and edited the wrong configuration.",
"summary": "The assistant assumed the wrong tenant and edited the wrong configuration."
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
reason: 'The assistant assumed the wrong tenant and edited the wrong configuration.',
summary: 'The assistant assumed the wrong tenant and edited the wrong configuration.'
})
};
fetch('https://api.revoengine.com/api/v1/assistant/threads/{id}/report', 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}/report"
payload = {
"reason": "The assistant assumed the wrong tenant and edited the wrong configuration.",
"summary": "The assistant assumed the wrong tenant and edited the wrong configuration."
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"reportId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assistantThreadId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"createdAt": "2023-11-07T05:31:56Z"
}Body
application/json
- Option 1
- Option 2
Response
Conversation feedback accepted. Returns the report identifier, conversation identifier, pending status and creation time.
⌘I
Report an assistant conversation.
curl --request POST \
--url https://api.revoengine.com/api/v1/assistant/threads/{id}/report \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"reason": "The assistant assumed the wrong tenant and edited the wrong configuration.",
"summary": "The assistant assumed the wrong tenant and edited the wrong configuration."
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
reason: 'The assistant assumed the wrong tenant and edited the wrong configuration.',
summary: 'The assistant assumed the wrong tenant and edited the wrong configuration.'
})
};
fetch('https://api.revoengine.com/api/v1/assistant/threads/{id}/report', 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}/report"
payload = {
"reason": "The assistant assumed the wrong tenant and edited the wrong configuration.",
"summary": "The assistant assumed the wrong tenant and edited the wrong configuration."
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"reportId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"assistantThreadId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"status": "pending",
"createdAt": "2023-11-07T05:31:56Z"
}
