Update visitor's latest chat
chaport_update_last_visitor_chatUpdate a visitor's current or most recent chat: reassign it to one operator or team (operators = [id]), unassign it (operators = []), change its stage (for example close it) or flag it as missed. Only the fields you pass change. Reassigning changes who sees the chat. PUT /visitors/{visitorId}/chats.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stage | No | New chat stage, for example "closed". Other values: initiated, offline, responded, engaged. | |
| missed | No | Whether the chat counts as missed. | |
| rating | No | Rating given by the visitor. | |
| operators | No | One operator or team id to assign the chat to, or [] to unassign. | |
| visitor_id | Yes | Chaport visitor id (from chaport_list_visitors). |