Send Readings

POST {{baseUrl}}/account/:accountID/shipment/:tripNumber/data

Send readings to the shipment.

■ t1, t2, vibration, light, location and co2 are all optional parameters.

■ proccess parameter is true by default. If sent as false, it will turn off alarms for the readings.

Request Body

{"t1"=>[{"reading"=>"2022-10-18T18:32:00", "received"=>"2022-10-18T18:44:11Z", "value"=>23}, {"reading"=>"2022-10-18T18:37:00", "received"=>"2022-10-18T18:44:11Z", "value"=>23}, {"reading"=>"2022-10-18T18:42:00", "received"=>"2022-10-18T18:44:11Z", "value"=>24}], "location"=>[{"reading"=>"2022-10-18T18:42:00", "received"=>"2022-10-18T18:44:11Z", "lat"=>37.6509977, "long"=>-121.0301494}], "process"=>true}

HEADERS

KeyDatatypeRequiredDescription
authorizationstring(Required)

RESPONSES

status: OK

{"message":"4 Data Added"}