{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/autodesk/json-schema/autodesk-batch-complete-upload-payload-schema.json",
  "title": "BatchCompleteUploadPayload",
  "description": "The request payload for the Complete Batch Upload to S3 Signed URLs operation.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/autodesk-aps-oss-openapi.yml#/components/schemas/BatchCompleteUploadPayload",
  "required": [
    "requests"
  ],
  "type": "object",
  "properties": {
    "requests": {
      "type": "array",
      "description": "An array of objects, each of which represents an upload to complete.",
      "items": {
        "type": "object",
        "required": [
          "objectKey",
          "uploadKey"
        ],
        "properties": {
          "objectKey": {
            "type": "string",
            "description": "The URL-encoded human friendly name of the object for which to complete an upload."
          },
          "uploadKey": {
            "type": "string",
            "description": "The ID uniquely identifying the upload session that was returned when you obtained the signed upload URL."
          },
          "size": {
            "type": "integer",
            "description": "The expected size of the object, in bytes. If provided, OSS compares this value against the actual size of the object in S3.",
            "format": "int64"
          },
          "eTags": {
            "type": "array",
            "description": "An array of eTags. S3 returns an eTag to each upload request, be it for a chunk or an entire file. For a single-part upload, this array contains the expected eTag of the entire object. For a multipart upload, this array contains the expected eTag of each part of the upload; the index of an eTag in the array corresponds to its part number in the upload. If provided, OSS validates these eTags against the content in S3.",
            "items": {
              "type": "string"
            }
          },
          "x-ads-meta-Content-Type": {
            "type": "string",
            "description": "The Content-Type value for the uploaded object to record within OSS."
          },
          "x-ads-meta-Content-Disposition": {
            "type": "string",
            "description": "The Content-Disposition value for the uploaded object to record within OSS."
          },
          "x-ads-meta-Content-Encoding": {
            "type": "string",
            "description": "The Content-Encoding value for the uploaded object to record within OSS."
          },
          "x-ads-meta-Cache-Control": {
            "type": "string",
            "description": "The Cache-Control value for the uploaded object to record within OSS."
          },
          "x-ads-user-defined-metadata": {
            "type": "string",
            "description": "Custom metadata to be stored with the object, which can be retrieved later on download or when retrieving object details. Must be a JSON object that is less than 100 bytes.\n"
          }
        }
      }
    }
  }
}