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}/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>[]requisUp to 100 label IDs of the inbox: exactly the labels the thread ends up with
max 100 é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