This API endpoint allows you to update a shipping line.
Code | Description |
---|---|
400 | Bad Request. |
404 | Resource Not Found. |
500 | Internal Server Error. |
curl "https://app.octopi.co/api/v1/shipping_lines/:id" -X PUT -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: Token token=YOUR TOKEN HERE" -d '{"shipping_line" : {"name" : "new shipping line name", "code" : "NEWCODE", "email" : "email@gmail.com", "general_ledger_id" : "M001", "address" : "address"}}'
{ "shipping_line" : { "code" : "NEWCODE", "contact_person" : "contact_person", "synonyms" : [], "general_ledger_id" : "M001", "carrier_type" : "ocean", "name" : "new shipping line name", "phone" : null, "dock_receipt_email" : null, "email" : "email@gmail.com", "receive_email_alerts_on_container_damages" : false, "address" : "address", "vat_number" : null, "empty_container_storage_teu_quota" : null, "edi_settings": { "id": 64, "edi_partner": { "id": 22, "name": "SEA", "edi_id": null }, "name": null, "entity_edi_id": null, "communication_mode": "smtp", "time_zone": "timezone", "default_sender_id": "", "sender_edi_id": "", "edi_carrier_id": "", "edi_standard": "edifact" }, "id" : 1271 } }
Param name | Description |
---|---|
id required |
Validations:
|
shipping_line required |
Validations:
|
shipping_line[code] required |
Validations:
|
shipping_line[carrier_type] optional |
Pass carrier type among ocean, rail, air, or truck. Validations:
|
shipping_line[address] optional |
Validations:
|
shipping_line[parent_id] optional |
If there is a parent shipping line, pass it’s Octopi ID. Validations:
|
shipping_line[email] optional |
Validations:
|
shipping_line[contact_person] optional |
Validations:
|
shipping_line[phone] optional |
Validations:
|
shipping_line[receive_email_alerts_on_container_damages] optional |
Validations:
|
shipping_line[vat_number] optional |
Validations:
|
shipping_line[general_ledger_id] optional |
Validations:
|
shipping_line[dock_receipt_email] optional |
Validations:
|
shipping_line[empty_container_storage_teu_quota] optional |
Validations:
|
shipping_line[synonyms] optional |
Validations:
|