/inboxes/{inbox_id}/threads/{thread_id}Update an inbox thread
Updates a thread’s read state, folder, or labels. Supply at least one of read, folder, add_label_ids, or remove_label_ids; changes apply in that order and are not atomic, so earlier changes may remain applied if a later label operation fails.
- IdempotentThe SDK sends
Idempotency-Key, so a retried request is only applied once.
Thread changes. Provide at least one of read, folder, add_label_ids, or remove_label_ids; changes are applied in that order and are not atomic.
The inbox_id path parameter and thread_id path parameter must be UUIDs identifying the target inbox and thread. Supply at least one of read, folder, add_label_ids, or remove_label_ids; folder must be inbox, archive, spam, or trash, and each label array must contain 1 to 10 UUIDs. Do not include the same label ID in both add_label_ids and remove_label_ids, and use label IDs that exist in the inbox.