{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dockflow-com/json-schema/dockflow-com-document-upload-schema.json",
  "title": "DocumentUpload",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dockflow-com-openapi.json#/components/schemas/DocumentUpload",
  "type": "object",
  "properties": {
    "tradeflow_reference": {
      "type": "string",
      "description": "The tradeflow to attach the document to."
    },
    "document_extension": {
      "type": "string",
      "enum": [
        "pdf",
        "doc",
        "docx",
        "xls",
        "xlsx",
        "jpg",
        "jpeg",
        "png",
        "gif",
        "bmp",
        "tif",
        "tiff",
        "svg",
        "webp"
      ]
    },
    "document_payload_base64": {
      "type": "string",
      "description": "The file contents, base64-encoded."
    },
    "document_type": {
      "type": "string",
      "description": "A type name from GET /v3/downstream/documents/types. Unknown or omitted: no type."
    },
    "document_filename": {
      "type": "string",
      "description": "File name without extension, shown in Dockflow."
    },
    "container_reference": {
      "type": "string",
      "description": "Links the document to one container of the tradeflow."
    }
  },
  "required": [
    "tradeflow_reference",
    "document_extension",
    "document_payload_base64"
  ]
}