{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/zoho-mail/json-schema/zoho-mail-update-message-request-schema.json",
  "title": "UpdateMessageRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/zoho-mail-messages-api-openapi.yml#/components/schemas/UpdateMessageRequest",
  "type": "object",
  "properties": {
    "mode": {
      "type": "string",
      "description": "Action to perform: markAsRead, markAsUnread, moveMessage, flagMessage, addLabel, removeLabel, markAsSpam, markAsNotSpam, archiveMessage, unarchiveMessage"
    },
    "messageId": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Array of message IDs to update"
    },
    "folderId": {
      "type": "string",
      "description": "Target folder ID (used with moveMessage)"
    },
    "labelId": {
      "type": "string",
      "description": "Label ID to add or remove"
    }
  }
}