Add labels to a thread
Puts 1-10 of the inbox’s labels on the thread and keeps the ones it has. If any label is unknown, nothing changes (404). Answers every label on the thread afterwards; one inbox.thread.labels.updated event reports the request.
POST
/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>[]erforderlich1-10 label IDs of the inbox
min. 1 Elemente · max. 10 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