Parameters

NameTypeRequiredDescription
brandIdstringYesOcoya brand id from ocoya_list_brands.
conversationIdstringYesConversation id from ocoya_list_conversations.
statusstringNoRESOLVED to close it, OPEN to reopen, SPAM to mark it as junk. One of OPEN, RESOLVED, SPAM.
archivedbooleanNotrue archives it, false moves it back to the inbox.
assigneeIdstring or nullNoA teammate’s user id from ocoya_list_inbox_teammates, or null to unassign.
labelIdsstring[]NoIts 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.