| Code | Description |
|---|---|
| 400 | Bad Request. |
| 404 | Not Found. |
| 500 | Internal Server Error. |
curl "https://app.octopi.co/api/v1/bill_of_ladings/:bill_of_lading_id/line_items/:id.json" -d '{ "line_item": { "container_id": 123456789, "container_type_label": "40DV", "container_weight": 4200.0, "container_weight_unit": "kg", "flex_fields": [{ "label": "flex_field_label", "value": "flex_field_value"}] } }' -X PATCH -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Token token=YOUR TOKEN HERE"
{
"id": 38,
"container_id": 123456789,
"quantity": 1.0,
"container_number": "OCTO1231239",
"cargo_type": "container",
"container_type_label": "40DV",
"container_weight": 4200.0,
"container_weight_unit": "kg",
"flex_fields": [
{
"label": "flex_field_label",
"value": "flex_field_value"
}
]
}
| Param name | Description |
|---|---|
|
bill_of_lading_id optional |
Validations:
|
|
id optional |
Validations:
|
|
line_item optional |
Validations:
|
|
line_item[container_id] optional |
An ID of the container that will assigned to the Line Item. Validations:
|
|
line_item[container_type_label] optional |
Container Type label assigned to the Line Item. Can be one of the container types defined by the organization. Validations:
|
|
line_item[container_weight] optional |
Validations:
|
|
line_item[container_weight_unit] optional |
Validations:
|
|
line_item[flex_fields] optional |
Validations:
|
|
line_item[flex_fields][label] optional |
The name of the flex field Validations:
|
|
line_item[flex_fields][value] optional |
The value of the flex field Validations:
|