{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/robosystems-ai/json-schema/robosystems-ai-file-upload-request-schema.json",
  "title": "FileUploadRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/robosystems-ai-content-operations-api-openapi.yml#/components/schemas/FileUploadRequest",
  "properties": {
    "file_name": {
      "type": "string",
      "title": "File Name",
      "description": "File name to upload"
    },
    "content_type": {
      "type": "string",
      "title": "Content Type",
      "description": "File MIME type",
      "default": "application/x-parquet"
    },
    "table_name": {
      "anyOf": [
        {
          "type": "string",
          "pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Table Name",
      "description": "Table name to associate file with (required for first-class /files endpoint)"
    },
    "file_size_bytes": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "File Size Bytes",
      "description": "Size of the file about to be uploaded, in bytes. Optional; when supplied, an over-limit file is rejected here instead of after it has been pushed to S3 and rejected by ingest-file. Advisory only — the authoritative check measures the object after upload."
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "file_name"
  ]
}