POST {{baseUrl}}/emails/mailboxes/:email/threads/:threadId/trash
Moves the specified thread to the trash. Any messages that belong to the thread are also moved to the trash. Scopes: Rate Limit Label: Not supported in Gov cluster mail:write
MEDIUM
Body
PARAM
Key | Datatype | Required | Description |
HEADERS
Key | Datatype | Required | Description |
Accept
|
string |
RESPONSES
status OK
{
"id": "<string>",
"messages": [
{
"id": "<string>",
"threadId": "<string>",
"labelIds": [
"<string>",
"<string>"
]
},
{
"id": "<string>",
"threadId": "<string>",
"labelIds": [
"<string>",
"<string>"
]
}
]
} |
ENDPOINTS