Update a thread.
PATCH {{baseUrl}}/conversations/v3/conversations/threads/:threadId?archived=<boolean>
Updates a single thread. Either a thread's status can be updated, or the thread can be restored.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
archived | string | Whether the thread to update is archived. Default is false. A thread's status property can not be updated if the thread is archived. |
Request Body
{"status"=>"CLOSED", "archived"=>"<boolean>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"associatedContactId":"\u003cstring\u003e","createdAt":"\u003cdateTime\u003e","id":"\u003cstring\u003e","inboxId":"\u003cstring\u003e","spam":"\u003cboolean\u003e","status":"CLOSED","closedAt":"\u003cdateTime\u003e","latestMessageTimestamp":"\u003cdateTime\u003e","latestMessageSentTimestamp":"\u003cdateTime\u003e","latestMessageReceivedTimestamp":"\u003cdateTime\u003e","assignedTo":"\u003cstring\u003e","archived":"\u003cboolean\u003e","originalChannelAccountId":"\u003cstring\u003e","originalChannelId":"\u003cstring\u003e"}