Data Types

CompleteUploadPart

Marks an upload part as uploaded.

You must call this endpoint after you have successfully issued a PUT request to the uploadUrl on the corresponding UploadPart.

PUT /v2/accounts/{accountId}/uploads/{uploadId}/parts/{uploadPartIndex}
cURL
1curl "https://api.bytescale.com/v2/accounts/{accountId}/uploads/{uploadId}/parts/{uploadPartIndex}" \
2 -X PUT \
3 -H "Authorization: Bearer YOUR_API_KEY" \
4 -H "Content-Type: application/json" \
5 -d @- << EOF
6 {
7 "etag": "33a64df551425fcc55e4d42a148795d9f25f89d4"
8 }
9EOF
Response (204)
1No response

None for this endpoint.

Your account ID.

This is visible on the settings page:

https://www.bytescale.com/dashboard/settings

Example: "A623uY2"

Type: String

Length: 7

The ID for the multipart file upload.

Example: "Kd759aLFxttm69kZ"

Type: String

Length: 16

Index of an uploadable file part.

Can be used as the uploadPartIndex parameter in the GetUploadPart and CompleteUploadPart operations.

Example: 7

Type: Integer

Minimum: 0

Add one of these Authorization header values to your request:

Option 1: prefix "Bearer " to your API key. The result is your Authorization header value.

Option 2: use HTTP basic authorization with apikey as your username and your API key as your password.

For advanced options, please see:

https://www.bytescale.com/docs/auth

Type: String

This endpoints requires a JSON request body.

Type: String

Value: "application/json"

Was this section helpful? Yes No

You are using an outdated browser.

This website requires a modern web browser -- the latest versions of these browsers are supported: