Parameters
| Name | Type | Required | Description |
|---|---|---|---|
brandId | string | Yes | Ocoya brand id from ocoya_list_brands. |
conversationId | string | Yes | Conversation id from ocoya_list_conversations. |
status | string | No | RESOLVED to close it, OPEN to reopen, SPAM to mark it as junk. One of OPEN, RESOLVED, SPAM. |
archived | boolean | No | true archives it, false moves it back to the inbox. |
assigneeId | string or null | No | A teammate’s user id from ocoya_list_inbox_teammates, or null to unassign. |
labelIds | string[] | No | Its labels from now on, replacing the current ones; [] removes all. Ids from ocoya_list_inbox_labels. |
Request example
{
"name": "ocoya_update_conversation",
"arguments": {
"brandId": "cmayvq3hk00017apshay5qezu",
"conversationId": "<conversationId>"
}
}Returns
Returns a conversation: id, brandId, type, status, archived, channel {id, provider, name}, customer {name, url, image, language}, assigneeId, labels [{id, name, color}], unread, lastMessage and createdAt.