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}/labelsAutorização
AuthorizationToken Bearer · headerobrigatórioA BillionSend API key (bs_…).
Parâmetros de caminho
inbox_idstringobrigatórioThe inbox ID or its email address, such as support@example.com
thread_idstring<uuid>obrigatórioThe thread ID
Corpo da requisição
obrigatórioapplication/jsonlabelsstring<uuid>[]obrigatório1-10 label IDs of the inbox
mín. 1 itens · máx. 10 itens
Respostas
200
The labels on the thread
objectstringobrigatórioValores permitidos:
listdataobject[]obrigatórioEvery label on the thread after the change
Mostrar propriedadesOcultar propriedades
Array de
objectidstring<uuid>obrigatórionamestringobrigatóriocolorstringobrigatório401
Missing, malformed, unknown or revoked API key
statusCodenumberobrigatórionamestringobrigatóriomessagestringobrigatório404
Inbox, thread or label not found
statusCodenumberobrigatórionamestringobrigatóriomessagestringobrigatório422
Validation error
statusCodenumberobrigatórionamestringobrigatóriomessagestringobrigatório429
Over the rate limit (rate_limit_exceeded, with Retry-After)
statusCodenumberobrigatórionamestringobrigatóriomessagestringobrigatório