Batch update messages (mark read/unread and/or move folder)
PATCH /v1/inboxes/{inbox_id}/messages/batch
Mark read/unread and/or move folder for a list of message ids that all belong to this inbox. At least one of read / folder must be set. Partial failures (an id that is malformed or not owned by this inbox) are reported in failed rather than failing the whole batch. A folder move additionally requires the mailbox:create (or :delete) scope.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Opaque inbox id (the canonical path key). The inbox’s email address is also accepted here as a within-project alias. Treat the id as opaque.
Request Body required
Section titled “Request Body required ”Apply a read-state toggle and/or a folder move to a list of message ids that all belong to the path inbox. At least one of read / folder must be set. Ids that are malformed or address a different inbox are reported in the response’s failed list rather than failing the whole batch.
object
Opaque message ids (msg_…), all owned by the path inbox. Max 200.
When present, set (true) or clear (false) the \Seen flag on each id.
When present, move each message to this folder. One of INBOX, Sent, Trash, Junk, Archive.
Responses
Section titled “ Responses ”Per-id outcome.
Per-id outcome of a batch update.
object
Ids that were updated.
Ids skipped (not found, malformed, or not owned by this inbox).
Invalid request.
The canonical error envelope. error is a stable machine code.
object
Stable error code (e.g. unauthorized, forbidden, not_found, invalid, quota_exceeded, rate_limited).
Example
forbiddenHuman-readable detail (never leaks internals).
Example
missing required scopeMissing or invalid credential.
The canonical error envelope. error is a stable machine code.
object
Stable error code (e.g. unauthorized, forbidden, not_found, invalid, quota_exceeded, rate_limited).
Example
forbiddenHuman-readable detail (never leaks internals).
Example
missing required scopeAuthenticated but lacking the required scope, or out of quota.
The canonical error envelope. error is a stable machine code.
object
Stable error code (e.g. unauthorized, forbidden, not_found, invalid, quota_exceeded, rate_limited).
Example
forbiddenHuman-readable detail (never leaks internals).
Example
missing required scopeResource not found.
The canonical error envelope. error is a stable machine code.
object
Stable error code (e.g. unauthorized, forbidden, not_found, invalid, quota_exceeded, rate_limited).
Example
forbiddenHuman-readable detail (never leaks internals).
Example
missing required scope