{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lynx/json-schema/lynx-upload-document-request-multipart-schema.json",
  "title": "UploadDocumentRequestMultipart",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lynx-uploads-api-openapi.yml#/components/schemas/UploadDocumentRequestMultipart",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/UploadBusinessDocumentRequest",
      "description": "This field only accepts a raw string, not a JSON object. Because of that limitation, we can’t embed a structured example directly in the input box. Please view documentation for an example result."
    },
    "file": {
      "type": "string",
      "format": "binary",
      "description": "Uploaded file"
    }
  },
  "required": [
    "data",
    "file"
  ],
  "$defs": {
    "ClientOrgDto": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of the client organization"
        }
      },
      "required": [
        "name"
      ]
    },
    "UploadBusinessDocumentRequest": {
      "type": "object",
      "properties": {
        "documentId": {
          "type": "string",
          "description": "Unique identifier (UUID) for the uploaded business document."
        },
        "documentType": {
          "type": "string",
          "description": "Type of the document being uploaded."
        },
        "clientOrg": {
          "$ref": "#/$defs/ClientOrgDto",
          "description": "The client organization's registered name in the system."
        },
        "childClientOrg": {
          "$ref": "#/$defs/ClientOrgDto",
          "description": "The child client organization name associated with the document upload."
        },
        "productName": {
          "type": "string",
          "description": "The product associated with the document or client request."
        }
      },
      "required": [
        "childClientOrg",
        "clientOrg",
        "documentId",
        "documentType",
        "productName"
      ]
    }
  }
}