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
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"id":"\u003cstring\u003e","messages":[{"id":"\u003cstring\u003e","threadId":"\u003cstring\u003e","labelIds":["\u003cstring\u003e","\u003cstring\u003e"]},{"id":"\u003cstring\u003e","threadId":"\u003cstring\u003e","labelIds":["\u003cstring\u003e","\u003cstring\u003e"]}]}