Skip to main content
Sitecore Documentation
  • Learn
  • Downloads
  • Changelog
  • Roadmap
CDPCloud Portal
Sitecore CDP Developer Documentation
  • Developing with Sitecore CDP
    • Authentication
    • Base URL
    • Batch file formatting requirements
            • Allocate batch upload location
            • Upload batch file
            • Retrieve details of batch uploads
            • Retrieve batch file upload status
            • Retrieve batch upload error log
  1. Reference
  1. Sitecore CDP Developer Documentation
  2. Batch API

Upload batch file

PUT <batchUploadPath>

Starts uploading a batch file. Make this request after allocating a batch upload location.

AttributeTypeDescriptionExample
batchUploadPathstringThe URI of the upload path.

If you do not know the URI, first allocate a batch upload location. In the response, in the location object, the href key contains the batch upload path.
https://sitecore-batch-service-dev-eu-west-1.s3.amazonaws.com/...
Base64 stringstringThe Base64-encoded version of the hex-encoded MD5 checksum. You created the hex-encoded MD5 checksum before you allocated a batch upload location.hmhSUwGGLymfT1gmfmkCSA==
path to gzipped filestringThe path to the gzipped file. You must upload a file in the body as binary data.@/C:/Users/user/Desktop/import.json.gz

This request returns an empty, 200 OK response.

curl -X PUT 'https://sitecore-batch-service-dev-eu-west-1.s3.amazonaws.com/...' \
-H 'x-amz-server-side-encryption: AES256' \
-H 'Content-Md5: <Base64_string>' \
-H 'Content-Type: application/gzip' \
--data-binary '<path_to_gzipped_file>'
If you have suggestions for improving this article, let us know!

© Copyright , Sitecore A/S or a Sitecore affiliated company.
All rights reserved.

Privacy policySitecore Trust CenterTerms of use
CDPCloud Portal