{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rendry-io/json-schema/rendry-io-prepare-art-request-schema.json",
  "title": "PrepareArtRequest",
  "description": "Rows are the same objects as render_batch items. Send preset_id and rows to quote or start; job_id alone reads durable progress. Row indexes start at zero. Dry runs create no image/job rows, charge nothing and call no provider.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rendry-io-rendering-api-openapi.yml#/components/schemas/PrepareArtRequest",
  "type": "object",
  "properties": {
    "preset_id": {
      "type": "string"
    },
    "rows": {
      "type": "array",
      "maxItems": 10,
      "items": {
        "type": "object",
        "properties": {
          "dynamic_data": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "filename": {
            "type": "string"
          },
          "rows": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              }
            },
            "description": "This item's rows for its repeat groups and tables (rows_key)"
          }
        },
        "additionalProperties": false
      },
      "minItems": 1
    },
    "dry_run": {
      "type": "boolean",
      "default": false
    },
    "job_id": {
      "type": "string",
      "format": "uuid"
    }
  },
  "additionalProperties": false,
  "oneOf": [
    {
      "$ref": "#/$defs/PrepareArtRowsRequest"
    },
    {
      "$ref": "#/$defs/PrepareArtJobRequest"
    }
  ],
  "$defs": {
    "PrepareArtJobRequest": {
      "type": "object",
      "properties": {
        "job_id": {
          "type": "string",
          "format": "uuid"
        }
      },
      "required": [
        "job_id"
      ],
      "additionalProperties": false
    },
    "PrepareArtRowsRequest": {
      "type": "object",
      "properties": {
        "preset_id": {
          "type": "string"
        },
        "rows": {
          "type": "array",
          "maxItems": 10,
          "items": {
            "type": "object",
            "properties": {
              "dynamic_data": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              },
              "filename": {
                "type": "string"
              },
              "rows": {
                "type": "object",
                "additionalProperties": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": {
                      "type": "string"
                    }
                  }
                },
                "description": "This item's rows for its repeat groups and tables (rows_key)"
              }
            },
            "additionalProperties": false
          },
          "minItems": 1
        },
        "dry_run": {
          "type": "boolean",
          "default": false
        }
      },
      "required": [
        "preset_id",
        "rows"
      ],
      "additionalProperties": false
    }
  }
}