Update the specified thread

POST {{baseUrl}}/emails/mailboxes/:email/threads/:threadId/modify

Modifies the labels applied to the thread. This applies to all messages in the thread.

Scopes: mail:write

Rate Limit Label: MEDIUM

Not supported in Gov cluster

Request Body

{"addLabelIds"=>["<string>", "<string>"], "removeLabelIds"=>["<string>", "<string>"]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;messages&quot;:[{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;threadId&quot;:&quot;\u003cstring\u003e&quot;,&quot;labelIds&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;]},{&quot;id&quot;:&quot;\u003cstring\u003e&quot;,&quot;threadId&quot;:&quot;\u003cstring\u003e&quot;,&quot;labelIds&quot;:[&quot;\u003cstring\u003e&quot;,&quot;\u003cstring\u003e&quot;]}]}