{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hud-ai/json-schema/hud-ai-data-file-create-request-schema.json",
  "title": "DataFileCreateRequest",
  "description": "A reservation for an upload the client is about to make.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hud-ai-data-api-openapi.yml#/components/schemas/DataFileCreateRequest",
  "properties": {
    "filename": {
      "type": "string",
      "maxLength": 255,
      "minLength": 1,
      "title": "Filename"
    },
    "size_bytes": {
      "type": "integer",
      "minimum": 0.0,
      "title": "Size Bytes"
    },
    "content_type": {
      "type": "string",
      "maxLength": 200,
      "minLength": 3,
      "title": "Content Type",
      "default": "application/octet-stream"
    },
    "scope": {
      "type": "string",
      "enum": [
        "member",
        "team"
      ],
      "title": "Scope",
      "default": "member"
    },
    "pipeline_key": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 100
        },
        {
          "type": "null"
        }
      ],
      "title": "Pipeline Key",
      "description": "Reserve the file as the input of this data pipeline, which may take a file larger than the data store's per-file limit"
    }
  },
  "type": "object",
  "required": [
    "filename",
    "size_bytes"
  ]
}