Summary
Add or remove labels on every message in the thread, and optionally set folder to inbox, archive, spam, or trash. Same label rules as message labels: read and unread can change; other system labels cannot. Works on a paused inbox. Moving to the same folder twice changes nothing and emits no event. Moving to inbox removes the folder row. block_sender true is accepted only with folder spam and adds the latest inbound From to the inbox receive block list. Returns the thread, messages_updated, and blocked_sender when block_sender was true. Unknown thread returns 404 thread_not_found. A bad folder returns 400 invalid_folder.
Request
{
"add_labels": [
"follow-up"
],
"remove_labels": [
"unread"
],
"folder": "archive"
}Response
The OpenAPI document does not declare a JSON response schema for this call. The summary is the contract.Errors
- HTTP 404 thread_not_found
- HTTP 400 invalid_folder
Idempotency
This route does not document Idempotency-Key or client_id.