Update a thread
Mark every message read or unread, or move it to inbox, archive, spam or trash (moving out of trash restores it). Labels have their own routes: POST, PUT and DELETE /inboxes/{inbox_id}/threads/{thread_id}/labels.
PATCH
/inboxes/{inbox_id}/threads/{thread_id}授权
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/jsonreadbooleanMarks every message read or unread
folderstringsent is assigned, never chosen
允许值:
inboxarchivespamtrash响应
200
Thread updated
objectstring必填允许值:
inbox_threadidstring<uuid>必填subjectstring | null必填folderstring必填允许值:
inboxarchivespamsenttrashlabelsobject[]必填显示属性隐藏属性
object 数组idstring<uuid>必填namestring必填colorstring必填readboolean必填quarantinedinteger必填BillionSend extension: held messages; 0 for inbox-scoped keys
401
Missing, malformed, unknown or revoked API key
statusCodenumber必填namestring必填messagestring必填404
Inbox or thread 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必填