{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dockflow-com/json-schema/dockflow-com-document-upload-url-request-schema.json",
  "title": "DocumentUploadUrlRequest",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dockflow-com-openapi.json#/components/schemas/DocumentUploadUrlRequest",
  "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_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"
  ]
}