Send Readings
POST
{{baseUrl}}/account/:accountID/shipment/:tripNumber/data
Get list of all shipments with Flight Mode enabled
■ Returns the flight mode details for ALL non-completed shipments with flight
mode settings
■ These results should not be tied/limited to a specific account, because it will be
called the DeltaTrak device communication services
■ There should be some special DeltaTrak API key that will be used for these
admin
calls that will be used by DT (not the customer)
Body
PARAM
Key |
Datatype |
Required |
Description |
HEADERS
Key |
Datatype |
Required |
Description |
authorization
|
string |
|
(Required)
|
RESPONSES
status
curl -X POST 'https://7qzar0u2yd.execute-api.us-east-1.amazonaws.com/test//account/:accountID/shipment/:tripNumber/data' -H 'authorization: eyJhbGciOiJub25lIn0.eyJhZG1pbiI6dHJ1ZSwidXNlcklEIjoiNjM5NzViZDRkY2Q2OTMwMDJjMzgxMDMzIiwiaWF0IjoxNjg1MDIwNTE4LCJpc3MiOiJ1cm46Zmxhc2h0cmFrOmlzc3VlciIsImF1ZCI6InVybjp1c2VyOmF1ZGllbmNlIiwiZXhwIjoyMDAwNTk2NTE4fQ.' -d '{"t1":[{"reading":"2023-06-15T14:12:00","received":"2023-06-15T14:14:11Z","value":13},{"reading":"2023-06-15T14:17:00","received":"2023-06-15T14:14:11Z","value":23},{"reading":"2023-06-15T14:12:00","received":"2023-06-15T14:14:11Z","value":32}],"t2":[{"reading":"2023-06-15T14:12:00","received":"2023-06-15T14:14:11Z","value":13},{"reading":"2023-06-15T14:17:00","received":"2023-06-15T14:14:11Z","value":43},{"reading":"2023-06-15T14:12:00","received":"2023-06-15T14:14:11Z","value":52}],"vibration":[{"reading":"2023-06-15T14:12:00","received":"2023-06-15T14:14:11Z","value":23},{"reading":"2023-06-15T14:17:00","received":"2023-06-15T14:14:11Z","value":73},{"reading":"2023-06-15T14:12:00","received":"2023-06-15T14:14:11Z","value":35}],"light":[{"reading":"2023-06-15T14:12:00","received":"2023-06-15T14:14:11Z","value":23},{"reading":"2023-06-15T14:17:00","received":"2023-06-15T14:14:11Z","value":63},{"reading":"2023-06-15T14:12:00","received":"2023-06-15T14:14:11Z","value":2}],"co2":[{"reading":"2023-06-15T14:12:00","received":"2023-06-15T14:14:11Z","value":2}],"location":[{"reading":"2023-06-15T18:42:00","received":"2023-06-15T18:44:11Z","lat":37.6509977,"long":-121.0301494}],"process":true}'