# UploadPart

Retains part of the object.

The user independently numbers the parts of the object and transfers the numbers to ColdStack. The number uniquely identifies the part and determines its order in the overall sequence. A number is an integer between 1 and 10,000, inclusive.

If multiple chunks with the same number are loaded, ColdStack retains the last one that arrived.

Each part, except the last, must be at least 5MB in size.

For more information, see [General Multipart Upload Procedure](general-multipart-upload-order) .

### Request <a href="#request" id="request"></a>

```
PUT /{bucket}/{key}?partNumber=PartNumber&uploadId=UploadId HTTP/1.1
```

#### Path parameters <a href="#path-parameters" id="path-parameters"></a>

| Parameter | Description  |
| --------- | ------------ |
| `bucket`  | Bucket name. |
| `key`     | Object key.  |

#### Query parameters <a href="#request-parameters" id="request-parameters"></a>

| Parameter    | Description                                                                        |
| ------------ | ---------------------------------------------------------------------------------- |
| `partNubmer` | The ID that you assigned to the downloadable part.                                 |
| `uploadId`   | The composite load ID that ColdStack returned upon [initialization](startupload) . |

#### Headings <a href="#request-headers" id="request-headers"></a>

Use the required [common headers](../common-request-headers) in the request .

The title is `Content-Length`required.

### Answer <a href="#response" id="response"></a>

#### Headings <a href="#response-headers" id="response-headers"></a>

The response can contain [general headers](../common-response-headers) and the headers listed in the table below.

| Heading               | Description                                                                                                                                                                    |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `x-amz-storage-class` | <p>Object storage class.<br>Matters <code>COLD</code>if the object is in Cold Storage.<br><br>If the object is saved in the Standard storage, then there will be no title.</p> |

#### Answer codes <a href="#response-codes" id="response-codes"></a>

For a list of possible answers, see the [Answers](../answers) section .

Additionally, ColdStack may return the errors described in the table below.

| Mistake          | Description                                                                                                                  | HTTP code       |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------- | --------------- |
| `NoSuchUpload`   | The specified download does not exist. The download ID may be incorrect, or the download may have completed or been deleted. | 404 Not Found   |
| `EntityTooSmall` | <p>Part size is too small.<br><br>The downloadable part must be at least 5MB.</p>                                            | 400 Bad Request |
