Update Thread
Unibox
Update Thread
Update thread lifecycle, unread count, sender, and one-off email draft fields.
PATCH
Update Thread
CLI:
At least one valid field is required.
Overview
Updates a Unibox thread. Use it to archive or reactivate a thread, update unread count, choose a sender for an email draft, or edit one-off draft fields before sending.Path Parameters
| Parameter | Type | Description |
|---|---|---|
id | string | Thread ID. |
Request Body
| Field | Type | Description |
|---|---|---|
status | string | Set to active or archived. Other values are ignored. |
unread_count | number | Sets the stored unread count. |
account_id | string or null | Email sender account ID, or null to clear it. Non-null values must refer to a ready email sender in the workspace. |
participant_email | string | Recipient email for a draft one-off email. Stored lowercase. |
participant_name | string | Recipient display name for a draft. |
draft_subject | string or null | Draft email subject. |
draft_body_text | string or null | Draft plain-text body. |
draft_body_html | string or null | Draft HTML body. |
draft_cc | string or null | Draft CC recipients. |
draft_bcc | string or null | Draft BCC recipients. |
draft_attachments | array or null | Draft attachment metadata from Upload thread attachment. |
Example
Duplicate Recipient Handling
When changingaccount_id on an email thread, the API checks whether that sender already has a non-archived, non-warmup thread with the same participant_email. If one exists, the response is 409 with existing_thread.