cURL
API Reference
Patch threads labels
PATCH
cURL
Authorizations
JWT Bearer token obtained from authentication. Pass as: Authorization: Bearer
Path Parameters
Conversation to relabel — every message in it is updated
Body
application/json
Add and/or remove labels across a whole conversation in one atomic write. Supply at least one of addLabels/removeLabels. Use this rather than looping over PATCH /messages/{id}/labels: a loop that fails partway leaves the thread in two folders at once.
Labels to add to every message in the thread. Adding read removes unread and vice versa, per message, exactly as the single-message route does.
Maximum array length:
50Required string length:
1 - 64Labels to remove from every message in the thread.
Maximum array length:
50Required string length:
1 - 64