{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/azure-ai-foundry/json-schema/azure-ai-foundry-analyze-batch-documents-request-schema.json",
  "title": "AnalyzeBatchDocumentsRequest",
  "description": "Batch document analysis parameters.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/azure-ai-foundry-document-models-api-openapi.yml#/components/schemas/AnalyzeBatchDocumentsRequest",
  "type": "object",
  "properties": {
    "azureBlobSource": {
      "$ref": "#/$defs/AzureBlobContentSource",
      "description": "Azure Blob Storage location containing the batch documents.  Either\nazureBlobSource or azureBlobFileListSource must be specified."
    },
    "azureBlobFileListSource": {
      "$ref": "#/$defs/AzureBlobFileListContentSource",
      "description": "Azure Blob Storage file list specifying the batch documents.  Either\nazureBlobSource or azureBlobFileListSource must be specified."
    },
    "resultContainerUrl": {
      "type": "string",
      "format": "uri",
      "description": "Azure Blob Storage container URL where analyze result files will be stored."
    },
    "resultPrefix": {
      "type": "string",
      "description": "Blob name prefix of result files."
    },
    "overwriteExisting": {
      "type": "boolean",
      "description": "Overwrite existing analyze result files?",
      "default": false
    }
  },
  "required": [
    "resultContainerUrl"
  ],
  "$defs": {
    "AzureBlobContentSource": {
      "type": "object",
      "description": "Azure Blob Storage content.",
      "properties": {
        "containerUrl": {
          "type": "string",
          "format": "uri",
          "description": "Azure Blob Storage container URL."
        },
        "prefix": {
          "type": "string",
          "description": "Blob name prefix."
        }
      },
      "required": [
        "containerUrl"
      ]
    },
    "AzureBlobFileListContentSource": {
      "type": "object",
      "description": "File list in Azure Blob Storage.",
      "properties": {
        "containerUrl": {
          "type": "string",
          "format": "uri",
          "description": "Azure Blob Storage container URL."
        },
        "fileList": {
          "type": "string",
          "description": "Path to a JSONL file within the container specifying a subset of documents."
        }
      },
      "required": [
        "containerUrl",
        "fileList"
      ]
    }
  }
}