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

KeyDatatypeRequiredDescription
archivedstringWhether 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

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;associatedContactId&quot;:&quot;\u003cstring\u003e&quot;,&quot;createdAt&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;inboxId&quot;:&quot;\u003cstring\u003e&quot;,&quot;spam&quot;:&quot;\u003cboolean\u003e&quot;,&quot;status&quot;:&quot;CLOSED&quot;,&quot;closedAt&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;latestMessageTimestamp&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;latestMessageSentTimestamp&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;latestMessageReceivedTimestamp&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;assignedTo&quot;:&quot;\u003cstring\u003e&quot;,&quot;archived&quot;:&quot;\u003cboolean\u003e&quot;}