Mailboxes

Update a mailbox thread

Updates the fields you name and keeps the rest. View request and response details for this Samva email API endpoint.

PATCH
/v1/mailboxes/{id}/threads/{threadId}

Updates the fields you name and keeps the rest. folder and priority are shared with everyone on the mailbox; read, starred, and snoozedUntil are the caller's own. Labels are not updated here: use POST and DELETE on /v1/mailboxes/{id}/threads/{threadId}/labels. Returns where the thread stands, not its messages: read those with GET .../threads/{threadId}.

x-api-key<token>

In: header

Path Parameters

id*string
Match^mbx_[0-9a-hjkmnp-tv-z]{16,24}$
threadId*string
Match^thread_[0-9a-hjkmnp-tv-z]{16,24}$

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

folder?|null
priority?|null
read?boolean|null
starred?boolean|null
snoozedUntil?string|null|null

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/v1/mailboxes/string/threads/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "string",  "folder": "inbox",  "priority": "low",  "labels": [    "string"  ],  "read": true,  "starred": true,  "snoozedUntil": "string"}

Related documentation