Mailboxes

Update a mailbox thread

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}.

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

Request

  • Base URL: https://api.samva.dev
  • URL: https://api.samva.dev/v1/mailboxes/{id}/threads/{threadId}
  • Auth: API key in header x-api-key

Path parameters

idstring required
threadIdstring required

Request body

folder'inbox' | 'assigned' | 'pending' | 'sent' | 'archived' | 'trash'
priority'low' | 'normal' | 'high' | 'urgent'
readboolean nullable
starredboolean nullable
snoozedUntilstring nullable

Response

MailboxThreadState

idstring required
folder'inbox' | 'assigned' | 'pending' | 'sent' | 'archived' | 'trash' required
priority'low' | 'normal' | 'high' | 'urgent' required
labelsMailboxLabelId[] required
readboolean required
starredboolean required
snoozedUntilstring nullable required

Changes

No recorded changes to this operation across all 1 revision of this API.