Update a chat conversation
update_conversationUpdate a chat conversation
Changes the status, the archive flag or the assigned human agent of a chat conversation. Chat threads only: an id belonging to a voice call is rejected with 400, and a body with no updatable field is rejected with 400 as well. Assigning an agent also stamps the assignment time and, unless the same request sets a status, moves the thread to active, mirroring what the dashboard does. Setting the status to closed runs the same finalisation as the close endpoint, recomputing the conversation analytics. The updated conversation is returned in data.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>",
"body": "<body>"
},
"name": "update_conversation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Identifier of the chat conversation. | |
| body | Yes | The fields to change. `status` moves the thread between `waiting`, `active` and `closed`, `isArchived` moves it in and out of the inbox, and `assignedAgentId` names the human agent to hand it to, or null to unassign. At least one field must be present. |