POST /logon

Send a log on for a device

Resource URL

https://production-connect.blacklinesafety.com/1/logon

Parameters

None

POST Data

device_id required The id of the device.

Example Value: 555

shutdown_reason optional The reason the device shutdown prior to this restart.

Must be one of: no_shutdown, device_charging, button_shut_off, reset, exception, low_battery, lost_communication_restart

Default Value: no_shutdown

date optional The date the log on occurred in UTC. Must be in format YYYY-MM-DD hh:mm:ss. If no value is specified, then the date this POST was made is used.

Example Values: 2012-02-28 18:08:05

Example Request

POST https://production-connect.blacklinesafety.com/1/logon?access_token=abcd

Request Data

{
    "device_id":555,
    "shutdown_reason":"low_battery",
    "date":"2012-08-16 18:08:52"
}

Example Response

No response data is sent on a successful POST.