Update Thread
Mark a thread read or unread, move it, or add and remove labels.
PATCH
At least one of
read, folder, add_label_ids, or remove_label_ids is
required.
Path Parameters
Body Parameters
boolean
Marks every message in the thread read or unread.
string
Moves the thread to this folder. Every thread sits in exactly one folder within
its inbox.
sent is assigned automatically and cannot be set.inbox: The default. The thread holds at least one received message.archive: The thread was archived.spam: The thread was marked as spam.trash: The thread is scheduled for deletion in 30 days.
Response Fields
string
Always
inbox_thread.string
The ID of the thread.
string | null
The subject of the thread.
string
The folder the thread lives in after the update.
inbox: The default. The thread holds at least one received message.archive: The thread was archived.spam: The thread was marked as spam.trash: The thread is scheduled for deletion in 30 days.sent: Threads whose messages are all outbound.
array
The labels attached to the thread, each with an
id, name, and color.boolean
True only when every message in the thread is read.