Sign inGet Started

bird email threads update

Usage

Code example
bird email threads update <thread-id> [flags]

Description

Update a thread

Use --folder to move a thread and --read=true or --read=false to change read state. Use delete to trash a thread and restore before changing a trashed thread's folder. Labels are custom labels only.

Build the request from flags, a JSON EmailThreadUpdateRequest body via --body-file ("-" reads stdin), or both — a flag overrides the matching body field. Run --example to print a ready-to-edit body, or --dry-run to print the resolved request without sending it.

Examples

Code example
# print the body shape (no credentials needed)
bird email threads update --example

# the body it prints:
Code example
{
  "contact_id": "con_01krdgeqcxet5s7t44vh8rt9mg",
  "folder": "inbox",
  "labels": {
    "add": ["urgent"],
    "remove": ["pending"]
  }
}

Options

Labels

NameDescription
--add-label <value>…Custom label to add; repeatable.
--remove-label <value>…Custom label to remove; repeatable.

Metadata

NameDescription
--contact-idContact id to link to this conversation

Request

NameDescription
--body-fileRead the JSON request body from this file; "-" reads stdin
--examplePrint a complete example request body, then exit
--dry-runPrint the resolved request without sending it, then exit
--idempotency-keyDeduplication key; a retry with the same key won't act twice

Options

NameDescription
--readMark the thread read (true) or unread (false).
--folderDestination folder: inbox, archive or spam. Use delete to trash and restore to recover.
--response-schemaPrint the fields this command returns, then exit
NameDescription
bird email threads deleteDelete a thread
bird email threads getGet a thread
bird email threads listList threads
bird email threads restoreRestore a thread from trash
bird email threads searchSearch threads