{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/namirial/json-schema/namirial-draft-find-request-schema.json",
  "title": "DraftFindRequest",
  "description": "The request model for searching drafts.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/namirial-draft-api-openapi.yml#/components/schemas/DraftFindRequest",
  "type": "object",
  "properties": {
    "StartDate": {
      "format": "date-time",
      "description": "If set, filter for drafts which were created after the start date.\nA datetime in the format RFC 3339, section 5.6, 'date-Time' (e.g. 2017-07-21T17:32:28Z).",
      "maxLength": 30,
      "minLength": 20,
      "type": "string"
    },
    "EndDate": {
      "format": "date-time",
      "description": "If set, filter for drafts which were created before the end date.\nA datetime in the format RFC 3339, section 5.6, 'date-Time' (e.g. 2017-07-21T17:32:28Z).",
      "maxLength": 30,
      "minLength": 20,
      "type": "string"
    },
    "SearchText": {
      "description": "If set, the given text is searched in following fields:\nenvelope name and description\nnotification subject and message \nsender email address, given name and surname  \nrecipient email address, given name and surname\nNote: Using this search option is very resource intensive! It might take very long.",
      "maxLength": 500,
      "minLength": 0,
      "type": "string"
    },
    "RecipientEmail": {
      "description": "If set, envelopes containing a recipient with the given email address are matched.",
      "maxLength": 250,
      "minLength": 0,
      "type": "string"
    }
  }
}