This resource allows you to report the general cargo gross weight in Octopi.
This API endpoint allows you to update the general cargo gross weight.
| Code | Description |
|---|---|
| 400 | Bad Request. |
| 404 | Not found. |
| 500 | Server crashed for some reason. |
curl "https://app.octopi.co/api/v1/general_cargoes/:id/weights.json" -X POST -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Token token=YOUR TOKEN HERE" -d '{"general_cargo_weight":{"gross_weight": "50000.98", "weight_unit": "lb"}}'
{
"general_cargo": {
"id": "GENERAL CARGO ID",
"goods_description": "GOODS DESCRIPTION"
"general_cargo_weight": {
"weight_unit": "lb",
"gross_weight": "50000.98",
"created_at": "2021-08-13T16:50:26Z",
"user": "System"
}
}
}
| Param name | Description |
|---|---|
|
general_cargo_weight required |
Validations:
|
|
general_cargo_weight[gross_weight] required |
Provide gross weight of general cargo here. Validations:
|
|
general_cargo_weight[weight_unit] optional |
This parameter is required if it is different than the organization weight unit preference. Validations:
|