Messages

Update a message

Change labels (replace with labels, or change with addLabels / removeLabels) and state (read, starred, archived, spam). Returns the message's labels after the change.

patch/v1/inboxes/{id}/messages/{messageId}

Request

  • Base URL: https://anjal.app
  • URL: https://anjal.app/v1/inboxes/{id}/messages/{messageId}
  • Auth: API key in header X-API-Key

Request body

isReadboolean
isStarredboolean
isArchivedboolean
isSpamboolean

true moves it to Spam; false recovers it.

Response

Updated

updatedboolean
idstring
labelsstring[]
isReadboolean
isStarredboolean
isArchivedboolean
isSpamboolean

Changes

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