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}/labels授权
AuthorizationBearer 令牌 · header必填A BillionSend API key (bs_…).
路径参数
inbox_idstring必填The inbox ID or its email address, such as support@example.com
thread_idstring<uuid>必填The thread ID
请求体
必填application/jsonlabelsstring<uuid>[]必填1-10 label IDs of the inbox
最少 1 项 · 最多 10 项
响应
200
The labels on the thread
objectstring必填允许值:
listdataobject[]必填Every label on the thread after the change
显示属性隐藏属性
object 数组idstring<uuid>必填namestring必填colorstring必填401
Missing, malformed, unknown or revoked API key
statusCodenumber必填namestring必填messagestring必填404
Inbox, thread or label not found
statusCodenumber必填namestring必填messagestring必填422
Validation error
statusCodenumber必填namestring必填messagestring必填429
Over the rate limit (rate_limit_exceeded, with Retry-After)
statusCodenumber必填namestring必填messagestring必填