v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-137956179.1 KB
users

Modifies the labels applied to the thread. This applies to all messages in the thread. For more information, see Manage threads.

post/gmail/v1/users/{userId}/threads/{id}/modify

Path parameters

userIdstring required

The user's email address. The special value me can be used to indicate the authenticated user.

idstring required

The ID of the thread to modify.

Request body

addLabelIdsstring[]

A list of IDs of labels to add to this thread. You can add up to 100 labels with each update.

removeLabelIdsstring[]

A list of IDs of labels to remove from this thread. You can remove up to 100 labels with each update.

Response

Successful response