{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/raiffeisen-ru/main/json-schema/raiffeisen-ru-create-external-mail-request-schema.json",
  "title": "CreateExternalMailRequest",
  "x-generated": "2026-10-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/raiffeisen-ru-letters-openapi.yml#/components/schemas/CreateExternalMailRequest",
  "type": "object",
  "properties": {
    "correspondenceId": {
      "type": "string",
      "format": "uuid",
      "description": "Идентификатор переписки"
    },
    "parentMailId": {
      "type": "string",
      "format": "uuid",
      "description": "Идентификатор родительского письма"
    },
    "docExtId": {
      "type": "string",
      "description": "Идентификатор документа"
    },
    "text": {
      "type": "string",
      "description": "Текст письма",
      "minLength": 1,
      "maxLength": 4000,
      "pattern": ".*(\\S|\\n).*"
    }
  },
  "required": [
    "correspondenceId",
    "parentMailId",
    "text",
    "docExtId"
  ]
}