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}/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>[]必填Up to 100 label IDs of the inbox: exactly the labels the thread ends up with
最多 100 项
响应
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必填