lang | string Validation default: en | required |
user_api_hash | string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS | required |
Driver
GET
/get_user_drivers
Definition
Query String
Responses application/json
object | ||
items | object | optional |
drivers | object | optional |
total |
integer
Validation
{pagination} |
optional |
per_page |
integer
Validation
{pagination} |
optional |
current_page |
integer
Validation
{pagination} |
optional |
last_page |
integer
Validation
{pagination} |
optional |
from |
integer
Validation
{pagination} |
optional |
to |
integer
Validation
{pagination} |
optional |
next_page_url |
null
string
Validation
{pagination} |
optional |
prev_page_url |
null
string
Validation
{pagination} |
optional |
url |
string
Validation
{pagination} |
optional |
data |
array[object]
Validation
{driver} |
optional |
date | integer string | optional |
id | integer string | optional |
user_id | integer string | optional |
device_id | integer string | optional |
device_port | null string | optional |
name | string | optional |
rfid | string | optional |
phone | string | optional |
string | optional | |
description | string | optional |
created_at | string | optional |
updated_at | string | optional |
device |
object
Validation
{device} |
optional |
id | string | optional |
user_id | null integer | optional |
traccar_device_id | string | optional |
icon_id | string | optional |
active | string | optional |
deleted | string | optional |
name | string | optional |
imei | string | optional |
fuel_measurement_id | string | optional |
fuel_quantity | string | optional |
fuel_price | string | optional |
fuel_per_km | string | optional |
sim_number | string | optional |
device_model | string | optional |
plate_number | string | optional |
vin | string | optional |
registration_number | string | optional |
object_owner | string | optional |
expiration_date | string | optional |
tail_color | string | optional |
tail_length | string | optional |
engine_hours | string | optional |
detect_engine | string | optional |
min_moving_speed | string | optional |
min_fuel_fillings | string | optional |
min_fuel_thefts | string | optional |
snap_to_road | string | optional |
created_at | string | optional |
updated_at | string | optional |
pivot | object | optional |
user_id | string | optional |
device_id | string | optional |
group_id | null | optional |
current_driver_id | string | optional |
active | string | optional |
timezone_id | null | optional |
traccar | object | optional |
id | string | optional |
name | string | optional |
uniqueId | string | optional |
latestPosition_id | string | optional |
lastValidLatitude | string | optional |
lastValidLongitude | string | optional |
other | string | optional |
speed | string | optional |
time | string | optional |
server_time | string | optional |
ack_time | null | optional |
altitude | string | optional |
course | string | optional |
power | null | optional |
address | null | optional |
protocol | string | optional |
latest_positions | string | optional |
icon | object | optional |
id | string | optional |
order | string | optional |
width | string | optional |
height | string | optional |
path | string | optional |
sensors | array[object] | optional |
id | string | optional |
user_id | string | optional |
device_id | string | optional |
name | string | optional |
type | string | optional |
tag_name | string | optional |
add_to_history | string | optional |
on_value | null | optional |
off_value | null | optional |
shown_value_by | string | optional |
fuel_tank_name | null | optional |
full_tank | null | optional |
full_tank_value | null | optional |
min_value | null | optional |
max_value | null | optional |
formula | null | optional |
odometer_value_by | null | optional |
odometer_value | null | optional |
odometer_value_unit | string | optional |
temperature_max | null | optional |
temperature_max_value | null | optional |
temperature_min | null | optional |
temperature_min_value | null | optional |
value | string | optional |
value_formula | string | optional |
show_in_popup | string | optional |
unit_of_measurement | string | optional |
on_tag_value | null | optional |
off_tag_value | null | optional |
on_type | null | optional |
off_type | null | optional |
calibrations | null | optional |
services | array[object] | optional |
id | string | optional |
user_id | string | optional |
device_id | string | optional |
name | string | optional |
expiration_by | string | optional |
interval | string | optional |
last_service | string | optional |
trigger_event_left | string | optional |
renew_after_expiration | string | optional |
expires | string | optional |
expires_date | null | optional |
remind | string | optional |
remind_date | null | optional |
event_sent | string | optional |
expired | string | optional |
string | optional | |
mobile_phone | string | optional |
status | integer | optional |
object | ||
status | integer | optional |
errors | object | optional |
{ "status": 0, "errors": {} }
object | ||
status | integer | optional |
error | string | optional |
{ "status": 0, "error": "No language selected." }
GET
/add_user_driver_data
Definition
Query String
lang | string Validation default: en | required |
user_api_hash | string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS | required |
Responses application/json
object | ||
devices | object | optional |
key | string | optional |
status | integer | optional |
{ "devices": { "3": "Device name" }, "status": 1 }
object | ||
status | integer | optional |
errors | object | optional |
{ "status": 0, "errors": {} }
object | ||
status | integer | optional |
error | string | optional |
{ "status": 0, "error": "No language selected." }
POST
/add_user_driver
Definition
Query String
lang | string Validation default: en | required |
user_api_hash | string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS | required |
Request Body multipart/form-data
object
Validation
{driverPost} |
||
device_id | integer | required |
name | string | required |
rfid | string | optional |
phone | string | optional |
string | optional | |
description | string | optional |
Responses application/json
object | ||
status | integer | optional |
item | object | optional |
name | string | optional |
user_id | integer string | optional |
updated_at | string | optional |
created_at | string | optional |
id | integer | optional |
{ "status": 1, "item": { "name": "Drive name", "user_id": "2", "updated_at": "2016-06-26 16:11:16", "created_at": "2016-06-26 16:11:16", "id": 2 } }
object | ||
status | integer | optional |
errors | object | optional |
{ "status": 0, "errors": {} }
object | ||
status | integer | optional |
error | string | optional |
{ "status": 0, "error": "No language selected." }
GET
/edit_user_driver_data
Definition
Query String
lang | string Validation default: en | required |
user_api_hash | string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS | required |
user_driver_id | integer | required |
Responses application/json
object | ||
item | object | optional |
id |
integer
Validation
{ObjectID} |
required |
device_id |
integer
Validation
{driverPost} |
required |
name |
string
Validation
{driverPost} |
required |
rfid |
string
Validation
{driverPost} |
optional |
phone |
string
Validation
{driverPost} |
optional |
string
Validation
{driverPost} |
optional | |
description |
Validation
{driverPost} |
optional |
devices | object | optional |
key | string | optional |
status | integer | optional |
{ "item": { "id": 1, "user_id": 2, "device_id": 3, "device_port": null, "name": "Drive name", "rfid": "", "phone": "", "email": "", "description": "", "created_at": "2016-04-27 22:18:25", "updated_at": "2016-04-27 22:18:25" }, "devices": { "3": "Device name" }, "status": 1 }
object | ||
status | integer | optional |
errors | object | optional |
{ "status": 0, "errors": {} }
object | ||
status | integer | optional |
error | string | optional |
{ "status": 0, "error": "No language selected." }
POST
/edit_user_driver
Definition
Query String
lang | string Validation default: en | required |
user_api_hash | string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS | required |
Request Body multipart/form-data
object | ||
id |
integer
Validation
{ObjectID} |
required |
device_id |
integer
Validation
{driverPost} |
required |
name |
string
Validation
{driverPost} |
required |
rfid |
string
Validation
{driverPost} |
optional |
phone |
string
Validation
{driverPost} |
optional |
string
Validation
{driverPost} |
optional | |
description |
string
Validation
{driverPost} |
optional |
GET
/destroy_user_driver
Definition
Query String
lang | string Validation default: en | required |
user_api_hash | string Validation default: $2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS | required |
user_driver_id | integer | required |
MODEL
driver
object | ||
date | integer string | optional |
id | integer string | optional |
user_id | integer string | optional |
device_id | integer string | optional |
device_port | null string | optional |
name | string | optional |
rfid | string | optional |
phone | string | optional |
string | optional | |
description | string | optional |
created_at | string | optional |
updated_at | string | optional |
device |
object
Validation
{device} |
optional |
id | string | optional |
user_id | null integer | optional |
traccar_device_id | string | optional |
icon_id | string | optional |
active | string | optional |
deleted | string | optional |
name | string | optional |
imei | string | optional |
fuel_measurement_id | string | optional |
fuel_quantity | string | optional |
fuel_price | string | optional |
fuel_per_km | string | optional |
sim_number | string | optional |
device_model | string | optional |
plate_number | string | optional |
vin | string | optional |
registration_number | string | optional |
object_owner | string | optional |
expiration_date | string | optional |
tail_color | string | optional |
tail_length | string | optional |
engine_hours | string | optional |
detect_engine | string | optional |
min_moving_speed | string | optional |
min_fuel_fillings | string | optional |
min_fuel_thefts | string | optional |
snap_to_road | string | optional |
created_at | string | optional |
updated_at | string | optional |
pivot | object | optional |
user_id | string | optional |
device_id | string | optional |
group_id | null | optional |
current_driver_id | string | optional |
active | string | optional |
timezone_id | null | optional |
traccar | object | optional |
id | string | optional |
name | string | optional |
uniqueId | string | optional |
latestPosition_id | string | optional |
lastValidLatitude | string | optional |
lastValidLongitude | string | optional |
other | string | optional |
speed | string | optional |
time | string | optional |
server_time | string | optional |
ack_time | null | optional |
altitude | string | optional |
course | string | optional |
power | null | optional |
address | null | optional |
protocol | string | optional |
latest_positions | string | optional |
icon | object | optional |
id | string | optional |
order | string | optional |
width | string | optional |
height | string | optional |
path | string | optional |
sensors | array[object] | optional |
id | string | optional |
user_id | string | optional |
device_id | string | optional |
name | string | optional |
type | string | optional |
tag_name | string | optional |
add_to_history | string | optional |
on_value | null | optional |
off_value | null | optional |
shown_value_by | string | optional |
fuel_tank_name | null | optional |
full_tank | null | optional |
full_tank_value | null | optional |
min_value | null | optional |
max_value | null | optional |
formula | null | optional |
odometer_value_by | null | optional |
odometer_value | null | optional |
odometer_value_unit | string | optional |
temperature_max | null | optional |
temperature_max_value | null | optional |
temperature_min | null | optional |
temperature_min_value | null | optional |
value | string | optional |
value_formula | string | optional |
show_in_popup | string | optional |
unit_of_measurement | string | optional |
on_tag_value | null | optional |
off_tag_value | null | optional |
on_type | null | optional |
off_type | null | optional |
calibrations | null | optional |
services | array[object] | optional |
id | string | optional |
user_id | string | optional |
device_id | string | optional |
name | string | optional |
expiration_by | string | optional |
interval | string | optional |
last_service | string | optional |
trigger_event_left | string | optional |
renew_after_expiration | string | optional |
expires | string | optional |
expires_date | null | optional |
remind | string | optional |
remind_date | null | optional |
event_sent | string | optional |
expired | string | optional |
string | optional | |
mobile_phone | string | optional |
{ "date": 1461795505, "id": 1, "user_id": 2, "device_id": 3, "device_port": null, "name": "Linas", "rfid": "", "phone": "", "email": "", "description": "", "created_at": "2016-04-27 22:18:25", "updated_at": "2016-04-27 22:18:25" }
MODEL
driverPost
object | ||
device_id | integer | required |
name | string | required |
rfid | string | optional |
phone | string | optional |
string | optional | |
description | optional |