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.upload.io/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

Request Body

Response Body

None for this endpoint.

URL Parameters

accountId

Your account ID.

This is visible on the settings page:

https://upload.io/dashboard/settings

Example: A623uY2

Type: String

Length: 7

In: Path

Required: Yes

uploadId

The ID for the multipart file upload.

Example: Kd759aLFxttm69kZ

Type: String

Length: 16

In: Path

Required: Yes

uploadPartIndex

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

In: Path

Required: Yes

Request Headers

Authorization

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, specifying apikey as your username, and your API key as your password.

Type: String

In: Header

Required: Yes

Content-Type

This endpoints requires a JSON request body.

Type: String

Value: "application/json"

In: Header

Required: Yes

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: