Batch Prepare Upload
POST/v1/:slug/assets/batch_upload_prepare
Step 1 of Batch Asset Upload Process
Prepares signed upload URLs for up to 100 assets in a single request.
Returns a batch_id that must be passed to batch_upload_complete.
The response format for each asset matches the single-asset upload_prepare response,
with a uuid field for client-side correlation.
Request
{
"batch": {
"assets": [
{ "title": "photo.jpg", "size": 1024000, "media_type": "image/jpeg", "uuid": "client-uuid-1" },
{ "title": "doc.pdf", "size": 5242880, "media_type": "application/pdf", "uuid": "client-uuid-2" }
]
}
}
Upload Flow
- Call this endpoint with an array of assets
- Upload each file to its
upload_url(same flow as single-asset upload_prepare) - Call
batch_upload_completewith thebatch_idand allsigned_gcs_idvalues
Request
Responses
- 200
- 401
- 422
batch upload prepared
unauthenticated
batch size exceeded