Edit [In-Progress]
PUT
{{baseUrl}}/shipment/:tripNumber
Edit a Shipment with Incomplete status. Completed shipments shall no longer receive data from the associated Device ID.
■ Same criteria/rules as above
■ Will missing optional parameters clear that existing field in the DB, or leave that
field untouched? Think clearing is better, meaning the entire dataset is required.
Body
PARAM
Key |
Datatype |
Required |
Description |
HEADERS
Key |
Datatype |
Required |
Description |
Authorization
|
string |
|
|
RESPONSES
status
curl -X PUT 'https://axeecknwif.execute-api.us-east-1.amazonaws.com/prod//shipment/:tripNumber' -H 'Authorization: eyJhbGciOiJub25lIn0.eyJvcmdhbml6YXRpb25JRCI6IjYzNzY0ZjI2MGU0MzM2MDAxMWJlMDFmNSIsInVzZXJJRCI6IjYzOTc3ZTdkYmEyOWY1MDAxODcxN2ZjOCIsImlhdCI6MTY3NTI4MDU3NSwiaXNzIjoidXJuOmZsYXNodHJhazppc3N1ZXIiLCJhdWQiOiJ1cm46dXNlcjphdWRpZW5jZSIsImV4cCI6MTk5MDg1NjU3NX0.' -d '{"shipment_name":"test","carrier_id":"C1673900480651","shipper_id":"L3246871783122","receiver_id":"L1668717831024","product_id":"Ammgzwkj2h3!","estimated_arrival_date":"2022-11-17T17:56:54.586Z","estimated_departure_date":"2022-11-17T17:56:54.586Z","purchase_order":"AB120341","maritime":{"arrival_port_id":"L3246871783122","departure_port_id":"L3246871783122","bol":"A1","scac":"S1"}}'