{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/robosystems-ai/json-schema/robosystems-ai-create-document-upload-op-schema.json",
  "title": "CreateDocumentUploadOp",
  "description": "Body for create-document-upload: where to upload a document's file.",
  "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/CreateDocumentUploadOp",
  "properties": {
    "file_name": {
      "type": "string",
      "maxLength": 255,
      "minLength": 1,
      "title": "File Name",
      "description": "The file's name, ending in its type's extension (`.pdf`, `.png`, `.jpg` or `.jpeg`)."
    },
    "content_type": {
      "type": "string",
      "enum": [
        "application/pdf",
        "image/png",
        "image/jpeg"
      ],
      "title": "Content Type",
      "description": "The file's media type.",
      "default": "application/pdf"
    },
    "file_size_bytes": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 26214400.0,
          "exclusiveMinimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "File Size Bytes",
      "description": "The file's exact size in bytes, at most 25 MB. When given it is signed into the upload URL, so an upload of any other size fails. Completing the upload checks the size either way."
    }
  },
  "type": "object",
  "required": [
    "file_name"
  ]
}