Set a thread's labels
Replaces the thread’s labels with exactly these (up to 100; [] takes them all off). The labels stay in the inbox. If any label is unknown, nothing changes (404). Answers every label on the thread afterwards.
PUT
/inboxes/{inbox_id}/threads/{thread_id}/labelsAutorisierung
AuthorizationBearer-Token · headererforderlichA BillionSend API key (bs_…).
Pfadparameter
inbox_idstringerforderlichThe inbox ID or its email address, such as support@example.com
thread_idstring<uuid>erforderlichThe thread ID
Request-Body
erforderlichapplication/jsonlabelsstring<uuid>[]erforderlichUp to 100 label IDs of the inbox: exactly the labels the thread ends up with
max. 100 Elemente
Antworten
200
The labels on the thread
objectstringerforderlichErlaubt:
listdataobject[]erforderlichEvery label on the thread after the change
Eigenschaften anzeigenEigenschaften ausblenden
Array von
objectidstring<uuid>erforderlichnamestringerforderlichcolorstringerforderlich401
Missing, malformed, unknown or revoked API key
statusCodenumbererforderlichnamestringerforderlichmessagestringerforderlich404
Inbox, thread or label not found
statusCodenumbererforderlichnamestringerforderlichmessagestringerforderlich422
Validation error
statusCodenumbererforderlichnamestringerforderlichmessagestringerforderlich429
Over the rate limit (rate_limit_exceeded, with Retry-After)
statusCodenumbererforderlichnamestringerforderlichmessagestringerforderlich