{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-s3/json-schema/amazon-s3-complete-multipart-upload-request-schema.json",
  "title": "CompleteMultipartUploadRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-s3-operations-api-openapi.yml#/components/schemas/CompleteMultipartUploadRequest",
  "type": "object",
  "properties": {
    "Bucket": {
      "type": "string",
      "description": "Name of the bucket to which the multipart upload was initiated. Directory buckets - When you use this operation with a directory bucket, you must use virtual-hosted-style requests in the format Bucket-name.s3express-zone-id.region-code.amazonaws.com. Path-style requests are not supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket names must follow the format bucket-base-name--zone-id--x-s3 (for example, amzn-s3-demo-bucket--usw2-az1--x-s3). For information about bucket naming restrictions, see Directory bucket naming rules in the Amazon "
    },
    "Key": {
      "type": "string",
      "description": "Object key for which the multipart upload was initiated."
    },
    "MultipartUpload": {
      "$ref": "#/$defs/CompletedMultipartUpload"
    },
    "UploadId": {
      "type": "string",
      "description": "ID for the initiated multipart upload."
    },
    "ChecksumCRC32": {
      "type": "string",
      "description": "This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC32 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide."
    },
    "ChecksumCRC32C": {
      "type": "string",
      "description": "This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 32-bit CRC32C checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide."
    },
    "ChecksumCRC64NVME": {
      "type": "string",
      "description": "This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit CRC64NVME checksum of the object. The CRC64NVME checksum is always a full object checksum. For more information, see Checking object integrity in the Amazon S3 User Guide."
    },
    "ChecksumSHA1": {
      "type": "string",
      "description": "This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 160-bit SHA1 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide."
    },
    "ChecksumSHA256": {
      "type": "string",
      "description": "This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 256-bit SHA256 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide."
    },
    "ChecksumSHA512": {
      "type": "string",
      "description": "This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 512-bit SHA512 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide."
    },
    "ChecksumMD5": {
      "type": "string",
      "description": "This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 128-bit MD5 digest of the object. For more information, see Checking object integrity in the Amazon S3 User Guide."
    },
    "ChecksumXXHASH64": {
      "type": "string",
      "description": "This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit XXHASH64 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide."
    },
    "ChecksumXXHASH3": {
      "type": "string",
      "description": "This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 64-bit XXHASH3 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide."
    },
    "ChecksumXXHASH128": {
      "type": "string",
      "description": "This header can be used as a data integrity check to verify that the data received is the same data that was originally sent. This header specifies the Base64 encoded, 128-bit XXHASH128 checksum of the object. For more information, see Checking object integrity in the Amazon S3 User Guide."
    },
    "ChecksumType": {
      "type": "string",
      "enum": [
        "COMPOSITE",
        "FULL_OBJECT"
      ],
      "description": "This header specifies the checksum type of the object, which determines how part-level checksums are combined to create an object-level checksum for multipart objects. You can use this header as a data integrity check to verify that the checksum type that is received is the same checksum that was specified. If the checksum type doesn’t match the checksum type that was specified for the object during the CreateMultipartUpload request, it’ll result in a BadDigest error. For more information, see Checking object integrity in the Amazon S3 User Guide."
    },
    "MpuObjectSize": {
      "type": "integer",
      "description": "The expected total object size of the multipart upload request. If there’s a mismatch between the specified object size value and the actual object size value, it results in an HTTP 400 InvalidRequest error."
    },
    "RequestPayer": {
      "type": "string",
      "enum": [
        "requester"
      ]
    },
    "ExpectedBucketOwner": {
      "type": "string",
      "description": "The account ID of the expected bucket owner. If the account ID that you provide does not match the actual owner of the bucket, the request fails with the HTTP status code 403 Forbidden (access denied)."
    },
    "IfMatch": {
      "type": "string",
      "description": "Uploads the object only if the ETag (entity tag) value provided during the WRITE operation matches the ETag of the object in S3. If the ETag values do not match, the operation returns a 412 Precondition Failed error. If a conflicting operation occurs during the upload S3 returns a 409 ConditionalRequestConflict response. On a 409 failure you should fetch the object's ETag, re-initiate the multipart upload with CreateMultipartUpload, and re-upload each part. Expects the ETag value as a string. For more information about conditional requests, see RFC 7232, or Conditional requests in the Amazon S"
    },
    "IfNoneMatch": {
      "type": "string",
      "description": "Uploads the object only if the object key name does not already exist in the bucket specified. Otherwise, Amazon S3 returns a 412 Precondition Failed error. If a conflicting operation occurs during the upload S3 returns a 409 ConditionalRequestConflict response. On a 409 failure you should re-initiate the multipart upload with CreateMultipartUpload and re-upload each part. Expects the '*' (asterisk) character. For more information about conditional requests, see RFC 7232, or Conditional requests in the Amazon S3 User Guide."
    },
    "SSECustomerAlgorithm": {
      "type": "string",
      "description": "The server-side encryption (SSE) algorithm used to encrypt the object. This parameter is required only when the object was created using a checksum algorithm or if your bucket policy requires the use of SSE-C. For more information, see Protecting data using SSE-C keys in the Amazon S3 User Guide. This functionality is not supported for directory buckets."
    },
    "SSECustomerKey": {
      "type": "string",
      "description": "The server-side encryption (SSE) customer managed key. This parameter is needed only when the object was created using a checksum algorithm. For more information, see Protecting data using SSE-C keys in the Amazon S3 User Guide. This functionality is not supported for directory buckets."
    },
    "SSECustomerKeyMD5": {
      "type": "string",
      "description": "The MD5 server-side encryption (SSE) customer managed key. This parameter is needed only when the object was created using a checksum algorithm. For more information, see Protecting data using SSE-C keys in the Amazon S3 User Guide. This functionality is not supported for directory buckets."
    }
  },
  "required": [
    "Bucket",
    "Key",
    "UploadId"
  ],
  "$defs": {
    "CompletedMultipartUpload": {
      "type": "object",
      "properties": {
        "Parts": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CompletedPart"
          },
          "description": "Array of CompletedPart data types. If you do not supply a valid Part with your request, the service sends back an HTTP 400 response."
        }
      }
    },
    "CompletedPart": {
      "type": "object",
      "properties": {
        "ETag": {
          "type": "string",
          "description": "Entity tag returned when the part was uploaded."
        },
        "ChecksumCRC32": {
          "type": "string",
          "description": "The Base64 encoded, 32-bit CRC32 checksum of the part. This checksum is present if the multipart upload request was created with the CRC32 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide."
        },
        "ChecksumCRC32C": {
          "type": "string",
          "description": "The Base64 encoded, 32-bit CRC32C checksum of the part. This checksum is present if the multipart upload request was created with the CRC32C checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide."
        },
        "ChecksumCRC64NVME": {
          "type": "string",
          "description": "The Base64 encoded, 64-bit CRC64NVME checksum of the part. This checksum is present if the multipart upload request was created with the CRC64NVME checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide."
        },
        "ChecksumSHA1": {
          "type": "string",
          "description": "The Base64 encoded, 160-bit SHA1 checksum of the part. This checksum is present if the multipart upload request was created with the SHA1 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide."
        },
        "ChecksumSHA256": {
          "type": "string",
          "description": "The Base64 encoded, 256-bit SHA256 checksum of the part. This checksum is present if the multipart upload request was created with the SHA256 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide."
        },
        "ChecksumSHA512": {
          "type": "string",
          "description": "The Base64 encoded, 512-bit SHA512 digest of the part. This checksum is present if the multipart upload request was created with the SHA512 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide."
        },
        "ChecksumMD5": {
          "type": "string",
          "description": "The Base64 encoded, 128-bit MD5 digest of the part. This checksum is present if the multipart upload request was created with the MD5 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide."
        },
        "ChecksumXXHASH64": {
          "type": "string",
          "description": "The Base64 encoded, 64-bit XXHASH64 checksum of the part. This checksum is present if the multipart upload request was created with the XXHASH64 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide."
        },
        "ChecksumXXHASH3": {
          "type": "string",
          "description": "The Base64 encoded, 64-bit XXHASH3 checksum of the part. This checksum is present if the multipart upload request was created with the XXHASH3 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide."
        },
        "ChecksumXXHASH128": {
          "type": "string",
          "description": "The Base64 encoded, 128-bit XXHASH128 checksum of the part. This checksum is present if the multipart upload request was created with the XXHASH128 checksum algorithm. For more information, see Checking object integrity in the Amazon S3 User Guide."
        },
        "PartNumber": {
          "type": "integer",
          "description": "Part number that identifies the part. This is a positive integer between 1 and 10,000. General purpose buckets - In CompleteMultipartUpload, when a additional checksum (including x-amz-checksum-crc32, x-amz-checksum-crc32c, x-amz-checksum-sha1, or x-amz-checksum-sha256) is applied to each part, the PartNumber must start at 1 and the part numbers must be consecutive. Otherwise, Amazon S3 generates an HTTP 400 Bad Request status code and an InvalidPartOrder error code. Directory buckets - In CompleteMultipartUpload, the PartNumber must start at 1 and the part numbers must be consecutive."
        }
      }
    }
  }
}