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