### Overview

This endpoint can be used to update data of existing shipping container.

In order to consume the endpoint you must:

- Be authenticated user

For information on how you can authenticate, see: [Authentication](https://developer.sellercloud.com/dev-article/authentication/).

As soon as you do authentication and receive a valid token, it needs to be passed to the call.

### Endpoint

Example for such endpoint for TT server is:

[https://tt.api.sellercloud.com/rest/api/ShippingContainers/{id}](https://tt.api.sellercloud.com/rest/api/ShippingContainers/%7Bid%7D)

For your server endpoint will be:

[https://{your_server_id}.api.sellercloud.com/rest/api/ShippingContainers/{id}](https://{your_server_id}.api.sellercloud.com/rest/api/ShippingContainers/%7Bid%7D)

### Request

- Method Type: HttpPut
- Authorization: Use Bearer Token + token received from token authentication
- Header info: Content-Type: application/json

Body:

| **Parameter** | **Data Type** | **Description** | **Is Required** |
| --- | --- | --- | --- |
| GeneralDetails.ContainerName | string | Name of the shipping container<br>Pass null or omit in the request if no update of this field is needed. | No |
| GeneralDetails.EstimatedArrivalDate | Datetime | Estimated arrival date<br>Pass null or omit in the request if no update of this field is needed. | No |
| GeneralDetails.ReceivingWarehouseID | Integer | ID of warehouse to set as receiving<br>Pass null or omit in the request if no update of this field is needed. | No |
| GeneralDetails.ReceivingWarehouseBinID | Integer | ID of warehouse bin to set as receiving<br>Pass null or omit in the request if no update of this field is needed. | No |
| GeneralDetails.ShippingStatus | Enum | Shipping Status<br>Possible values can be found here: https://developer.sellercloud.com/dev-category/resources/<br>Pass null or omit in the request if no update of this field is needed. | No |
| GeneralDetails.ContainerStatus | Enum | Container Status<br>Possible values can be found here: https://developer.sellercloud.com/dev-category/resources/<br>Pass null or omit in the request if no update of this field is needed. | No |
| GeneralDetails.InvoiceNumber | String | Invoice Number<br>Pass null or omit in the request if no update of this field is needed. | No |
| GeneralDetails.OrderSourceSPONumber | String | Order Source/SPO #<br>Pass null or omit in the request if no update of this field is needed. | No |
| VesselInfo.VesselNumber | String | Vessel Number<br>Pass null or omit in the request if no update of this field is needed. | No |
| VesselInfo.ShippedOnDate | Datetime | Shipped on date<br>Pass null or omit in the request if no update of this field is needed. | No |
| VesselInfo.ETAPortDate | Datetime | ETA Port date<br>Pass null or omit in the request if no update of this field is needed. | No |
| VesselInfo.ShippingCost | Decimal | Shipping cost<br>Pass null or omit in the request if no update of this field is needed. | No |
| VesselInfo.PortName | String | Port name<br>Pass null or omit in the request if no update of this field is needed. | No |

### Response

- If user is authenticated and the request is successful, then response will be **Status Code 200 => OK**
- If user is not authenticated, then response will be **Status Code 401 => Not Valid Token**
- In case of error, response will be **Status Code 500 => Internal Server Error**
