{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/modoboa/json-schema/modoboa-mark-message-selection-schema.json",
  "title": "MarkMessageSelection",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/modoboa-amavis-api-openapi.yml#/components/schemas/MarkMessageSelection",
  "type": "object",
  "properties": {
    "selection": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/MessageIdentifier"
      }
    },
    "type": {
      "type": "string"
    },
    "database": {
      "type": "string"
    }
  },
  "required": [
    "selection",
    "type"
  ],
  "$defs": {
    "MessageIdentifier": {
      "type": "object",
      "properties": {
        "mailid": {
          "type": "string"
        },
        "rcpt": {
          "type": "string"
        },
        "secret_id": {
          "type": "string"
        }
      },
      "required": [
        "mailid",
        "rcpt"
      ]
    }
  }
}