{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rendry-io/json-schema/rendry-io-batch-task-accepted-schema.json",
  "title": "BatchTaskAccepted",
  "description": "POST /batch-tasks queued the rows; poll status_url.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rendry-io-batch-tasks-api-openapi.yml#/components/schemas/BatchTaskAccepted",
  "type": "object",
  "required": [
    "task_id",
    "rows_total",
    "enqueued",
    "status_url"
  ],
  "properties": {
    "task_id": {
      "type": "string"
    },
    "rows_total": {
      "type": "integer",
      "description": "Data rows in the table"
    },
    "enqueued": {
      "type": "integer",
      "description": "Rows that reached the render queue; the rest are reported as failed rows in the status"
    },
    "status_url": {
      "type": "string",
      "description": "Path of GET /batch-tasks/{id}, relative to the API origin"
    },
    "delivery": {
      "$ref": "#/$defs/DeliveryReceipt"
    }
  },
  "$defs": {
    "DeliveryReceipt": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "status"
      ],
      "description": "Present only when deliver_to was given. A delivery failure does not refund or change the render.",
      "properties": {
        "status": {
          "type": "string",
          "enum": [
            "pending",
            "delivered",
            "failed"
          ]
        },
        "reason": {
          "type": "string",
          "enum": [
            "address",
            "transport",
            "http",
            "source",
            "render",
            "archive",
            "expired"
          ]
        },
        "http_status": {
          "type": "integer",
          "minimum": 100,
          "maximum": 599,
          "description": "Remote status code, only with reason http."
        },
        "notice": {
          "type": "string",
          "const": "The file remains available at Rendry; a delivery failure does not refund the render."
        }
      }
    }
  }
}