API documentation

Get command for SetTime for all the boxes in a parking.

GET /api/car_driver/secured_parkings/:id/set_time_command

Include access_token in HTTP header:

Authorization: Bearer 09ba487fc3df...


This web service returns the command to get the command to set time from any of the boxes on a certain parking

       "time" : "2015-11-16T22:23:48"
       "time_zone_name" : "Bucharest"

Request Parameters

Parameter name Parameter type Description
id int id of the secured parking on which we want to get battery info
time string iso8601 formatted time
time_zone_name string name of the time_zone ex: Bucharest


Status Code: 200 if OK

           "set_time_command": "2010dcee11a572fb9d8d759c7e3de7d8437a03" 
Parameter name Parameter type Description
set_time_command string the command that must be sent to the box in order to set the time

Status Code: 422

          "time": ["is not a valid ISO8601 format"]

Status Code: 400 if the secured_parking_id param is missing

Status Code: 404 if the secured_parking with secured_parking_id doesn't exist

Status Code: 401 if request not ok or if the current user does not have parking owner rights on this parking