{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/smartpdf-ru/json-schema/smartpdf-ru-watermark-request-schema.json",
  "title": "WatermarkRequest",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/smartpdf-ru-openapi.json#/components/schemas/WatermarkRequest",
  "properties": {
    "webhook_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Webhook Url",
      "description": "https-адрес для уведомления о завершении; подпись — заголовок X-SmartPDF-Signature (см. описание API)"
    },
    "file_id": {
      "type": "string",
      "title": "File Id"
    },
    "text": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Text"
    },
    "image_file_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Image File Id"
    },
    "font_size": {
      "type": "integer",
      "maximum": 200,
      "minimum": 8,
      "title": "Font Size",
      "default": 48
    },
    "color": {
      "type": "string",
      "title": "Color",
      "default": "#FF0000"
    },
    "opacity": {
      "type": "number",
      "maximum": 1,
      "minimum": 0,
      "title": "Opacity",
      "default": 0.3
    },
    "angle": {
      "type": "number",
      "maximum": 180,
      "minimum": -180,
      "title": "Angle",
      "default": 45
    },
    "position": {
      "type": "string",
      "enum": [
        "center",
        "tile",
        "top-left",
        "top-right",
        "bottom-left",
        "bottom-right"
      ],
      "title": "Position",
      "default": "center"
    },
    "pages": {
      "anyOf": [
        {
          "items": {
            "type": "integer"
          },
          "type": "array"
        },
        {
          "type": "string",
          "const": "all"
        }
      ],
      "title": "Pages",
      "default": "all"
    },
    "scale": {
      "type": "number",
      "maximum": 2,
      "minimum": 0.1,
      "title": "Scale",
      "default": 0.3
    }
  },
  "type": "object",
  "required": [
    "file_id"
  ]
}