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}/labelsAutorisation
AuthorizationJeton Bearer · headerrequisA BillionSend API key (bs_…).
Paramètres de chemin
inbox_idstringrequisThe inbox ID or its email address, such as support@example.com
thread_idstring<uuid>requisThe thread ID
Corps de la requête
requisapplication/jsonlabelsstring<uuid>[]requis1-10 label IDs of the inbox
min 1 éléments · max 10 éléments
Réponses
200
The labels on the thread
objectstringrequisValeurs autorisées :
listdataobject[]requisEvery label on the thread after the change
Afficher les propriétésMasquer les propriétés
Tableau de
objectidstring<uuid>requisnamestringrequiscolorstringrequis401
Missing, malformed, unknown or revoked API key
statusCodenumberrequisnamestringrequismessagestringrequis404
Inbox, thread or label not found
statusCodenumberrequisnamestringrequismessagestringrequis422
Validation error
statusCodenumberrequisnamestringrequismessagestringrequis429
Over the rate limit (rate_limit_exceeded, with Retry-After)
statusCodenumberrequisnamestringrequismessagestringrequis