Update Thread
Mark a thread read or unread, or move it to another folder.
PATCH
To change a thread’s labels, use
Add Thread Labels,
Set Thread Labels, or
Remove Thread Label.
Path Parameters
Body Parameters
At least one ofread or folder is required. Omitted fields keep their
current value.
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.
boolean
True only when every message in the thread is read.