{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fourthline/json-schema/fourthline-client-document-bulk-metadata-schema.json",
  "title": "ClientDocumentBulkMetadata",
  "description": "The bulk upload metadata. In the multipart request, pass this object as a **JSON string** in the `bulkMetadata` form field.\n\nInclude one metadata entry in `items` per file in the `files` collection. The number of entries in `items` must equal the number of file parts (minimum 1, maximum 6 per request).\n\nEach entry uses the same fields as [Upload client document](ref:upload-client-document) metadata (`type`, `id`, and any type-specific fields).\n",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fourthline-identity-verification-api-v2-api-openapi.yml#/components/schemas/ClientDocumentBulkMetadata",
  "type": "object",
  "required": [
    "items"
  ],
  "properties": {
    "items": {
      "type": "array",
      "minItems": 1,
      "maxItems": 6,
      "description": "The metadata entries paired with the uploaded files. Must contain the same number of items as `files` in the multipart request (1–6).",
      "items": {
        "type": "object",
        "required": [
          "type",
          "id"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "The document type. Same supported values as single-document upload."
          },
          "id": {
            "type": "string",
            "format": "uuid",
            "description": "The unique identifier of the file metadata entry. Different images of the same physical document have different `id` values but share the same `documentId`."
          }
        },
        "additionalProperties": true
      }
    }
  }
}