{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trajectory/json-schema/trajectory-benchmark-upload-batch-request-schema.json",
  "title": "BenchmarkUploadBatchRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trajectory-benchmarks-api-openapi.yml#/components/schemas/BenchmarkUploadBatchRequest",
  "properties": {
    "files": {
      "items": {
        "$ref": "#/$defs/BenchmarkUploadFile"
      },
      "type": "array",
      "title": "Files",
      "description": "Files to sign upload URLs for, one URL returned per declared path."
    },
    "bench_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Bench Id",
      "description": "Omit to mint a new benchmark. Pass a bench_id returned by an earlier batch to add these files to that benchmark's upload prefix, which is how a file set larger than the per-request limit is uploaded. An already-ingested bench_id is rejected."
    }
  },
  "type": "object",
  "required": [
    "files"
  ],
  "$defs": {
    "BenchmarkUploadFile": {
      "properties": {
        "path": {
          "type": "string",
          "title": "Path"
        },
        "content_type": {
          "type": "string",
          "title": "Content Type"
        },
        "size_bytes": {
          "type": "integer",
          "title": "Size Bytes"
        }
      },
      "type": "object",
      "required": [
        "path",
        "content_type",
        "size_bytes"
      ],
      "title": "BenchmarkUploadFile"
    }
  }
}