{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/smartpdf-ru/json-schema/smartpdf-ru-resize-images-request-schema.json",
  "title": "ResizeImagesRequest",
  "description": "mode=percent — percent (1–500); mode=pixels — width и/или height; keep_aspect — по меньшему из масштабов.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/smartpdf-ru-openapi.json#/components/schemas/ResizeImagesRequest",
  "properties": {
    "webhook_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Webhook Url",
      "description": "https-адрес для уведомления о завершении; подпись — заголовок X-SmartPDF-Signature (см. описание API)"
    },
    "file_ids": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "maxItems": 50,
      "minItems": 1,
      "title": "File Ids"
    },
    "mode": {
      "type": "string",
      "enum": [
        "percent",
        "pixels"
      ],
      "title": "Mode",
      "default": "percent"
    },
    "percent": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 500,
          "minimum": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Percent",
      "default": 50
    },
    "width": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 10000,
          "minimum": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Width"
    },
    "height": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 10000,
          "minimum": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Height"
    },
    "keep_aspect": {
      "type": "boolean",
      "title": "Keep Aspect",
      "default": true
    },
    "enlarge": {
      "type": "boolean",
      "title": "Enlarge",
      "default": false
    }
  },
  "type": "object",
  "required": [
    "file_ids"
  ]
}