POST
/
upload
/
request
/
multipart
Request Multipart Upload Part
curl --request POST \
  --url https://app.buildstash.com/api/v1/upload/request/multipart \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "pending_upload_id": "<string>",
  "part_number": 1,
  "content_length": 52428800
}'
{
  "message": "Generated pre-signed URL for part 1",
  "part_number": 1,
  "part_presigned_url": "<string>"
}
This endpoint is only needed for multipart uploads, including any files larger than 5GB.

Overview

This endpoint is used to request a presigned URL for each individual part of a multipart file upload.

Notes

  • Part numbers must be sequential starting from 1
  • Each part must be uploaded exactly once
  • The ETag from each upload must be saved for the final verification step
  • Parts can be uploaded in parallel for better performance
  • If a part upload fails, you can retry uploading to the same presigned URL

Authorizations

Authorization
string
header
required

App-specific auth token. Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Multipart upload part request

The body is of type object.

Response

Multipart upload part request successful

The response is of type object.