Email & PEC

Mark read/unread, star or trash

Changes the operational state of one captured message: seen (read/unread), starred and trashed (true = into the trash — recoverable, not the final delete; see email_delete_message for that). Every field is optional and they compose; at least one is required. There is no "archive" flag: mail leaves the inbox only through the trash, and filing it in the Archivio is documents_upload's job.

patch/api/v1/rest/email/messages/{id}

Request

  • Base URL: https://api.custodo.ai
  • URL: https://api.custodo.ai/api/v1/rest/email/messages/{id}
  • Auth: HTTP bearer

Path parameters

idstring uuid required

Headers

X-Tenant-Idstring uuid

The organisation to act in. An API key is bound to exactly one, so this is optional for a key and must match the one it was minted for.

Request body

seenboolean
starredboolean
trashedboolean

Response

Done. data is the tool’s own answer.

oktrue required
dataunknown required

Changes

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