{
“swagger”: “2.0”,
“info”: {
“version”: “v1.0”,
“title”: “ANYTRACKING”,
“description”: “## Welcome\n\nThis is a place to put general notes and extra information, for internal use.\n\nTo get started designing/documenting this API, select a version on the left. # Title\nNo Description”
},
“host”: “127.0.0.1”,
“schemes”: [
“http”
],
“securityDefinitions”: {
“user_api_hash”: {
“name”: “user_api_hash”,
“type”: “apiKey”,
“in”: “query”
}
},
“paths”: {
“/api/get_user_gprs_message”: {
“get”: {
“operationId”: “GET_api-get_user_gprs_message”,
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
},
{
“$ref”: “#/parameters/trait:userGprsTemplateId:user_gprs_template_id”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“status”: {
“type”: “integer”
},
“message”: {
“type”: “string”
}
}
},
“examples”: {
“application/json”: {
“status”: 1,
“message”: “message content”
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/get_reports_types”: {
“get”: {
“operationId”: “GET_api-get_reports_types”,
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“items”: {
“type”: “array”,
“items”: {
“$ref”: “#/definitions/reportType”
}
},
“status”: {
“type”: “integer”
}
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/get_reports”: {
“get”: {
“operationId”: “GET_api-get_reports”,
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“status”: {
“type”: “integer”
},
“items”: {
“type”: “object”,
“properties”: {
“reports”: {
“allOf”: [
{
“$ref”: “#/definitions/pagination”
},
{
“type”: “object”,
“properties”: {
“data”: {
“type”: “array”,
“items”: {
“$ref”: “#/definitions/report”
}
}
}
}
]
},
“types”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“title”: {
“type”: “string”
}
}
}
}
}
}
}
},
“examples”: {
“application/json”: {
“status”: 1,
“items”: {
“reports”: {
“total”: 1,
“per_page”: 10,
“current_page”: 1,
“last_page”: 1,
“next_page_url”: null,
“prev_page_url”: null,
“from”: 1,
“to”: 1,
“data”: [
{
“id”: “2”,
“user_id”: “2”,
“title”: “Report title”,
“type”: “4”,
“format”: “html”,
“show_addresses”: null,
“zones_instead”: null,
“stops”: “1”,
“speed_limit”: null,
“daily”: null,
“weekly”: null,
“email”: “”,
“weekly_email_sent”: “2016-06-27 00:00:00”,
“daily_email_sent”: “2016-06-26 00:00:00”,
“devices”: [
3
],
“geofences”: []
}
],
“url”: “/api/get_reports”
},
“types”: [
{
“id”: 1,
“title”: “General information”
},
{
“id”: 2,
“title”: “General information (merged)”
},
{
“id”: 3,
“title”: “Drives and stops”
},
{
“id”: 18,
“title”: “Drives and stops / Geofences”
},
{
“id”: 4,
“title”: “Travel sheet”
},
{
“id”: 5,
“title”: “Overspeed”
},
{
“id”: 6,
“title”: “Underspeed”
},
{
“id”: 7,
“title”: “Geofence in/out”
},
{
“id”: 15,
“title”: “Geofence in/out 24 hour mode”
},
{
“id”: 8,
“title”: “Events”
},
{
“id”: 10,
“title”: “Fuel level”
},
{
“id”: 11,
“title”: “Fuel fillings”
},
{
“id”: 12,
“title”: “Fuel thefts”
},
{
“id”: 13,
“title”: “Temperature”
},
{
“id”: 14,
“title”: “RAG”
}
]
}
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/get_user_map_icons”: {
“get”: {
“operationId”: “GET_api-get_user_map_icons”,
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“items”: {
“type”: “object”,
“properties”: {
“mapIcons”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“user_id”: {
“type”: “integer”
},
“map_icon_id”: {
“type”: “integer”
},
“active”: {
“type”: “integer”
},
“name”: {
“type”: “string”
},
“description”: {
“type”: “string”
},
“coordinates”: {
“type”: “string”
},
“created_at”: {
“type”: “string”
},
“updated_at”: {
“type”: “string”
},
“map_icon”: {
“$ref”: “#/definitions/mapicon”
}
}
}
}
}
},
“status”: {
“type”: “integer”
}
}
},
“examples”: {
“application/json”: {
“items”: {
“mapIcons”: [
{
“id”: 1,
“user_id”: 2,
“map_icon_id”: 26,
“active”: 1,
“name”: “Test icon”,
“description”: “”,
“coordinates”: “{\n \”lat\”: 54.948442387473655,\n \”lng\”: 23.94847869873047\n}”,
“created_at”: “2016-06-26 16:33:46”,
“updated_at”: “2016-06-26 16:37:17”,
“map_icon”: {
“id”: 26,
“path”: “frontend/images/map_icons/543cec0b0e95d2.88837937.png”,
“width”: “32.00”,
“height”: “37.00”
}
}
]
},
“status”: 1
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/get_custom_events_by_device”: {
“get”: {
“operationId”: “GET_api-get_custom_events_by_device”,
“parameters”: [
{
“name”: “body”,
“in”: “body”,
“schema”: {
“type”: “object”,
“properties”: {
“devices”: {
“type”: “array”,
“items”: {
“type”: “integer”
}
}
}
}
},
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“key”: {
“type”: “string”
},
“name”: {
“type”: “string”
},
“items”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“value”: {
“type”: “string”
}
}
}
}
}
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
},
“security”: [
{
“user_api_hash”: []
}
]
}
},
“/api/edit_user_driver”: {
“post”: {
“operationId”: “POST_api-edit_user_driver”,
“consumes”: [
“multipart/form-data”
],
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“$ref”: “#/definitions/success”
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/edit_custom_event_data”: {
“get”: {
“operationId”: “GET_api-edit_custom_event_data”,
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
},
{
“$ref”: “#/parameters/trait:customEventId:custom_event_id”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“item”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“user_id”: {
“type”: “integer”
},
“protocol”: {
“type”: “string”
},
“conditions”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“tag”: {
“type”: “string”
},
“type”: {
“type”: “string”
},
“tag_value”: {
“type”: “string”
}
}
}
},
“message”: {
“type”: “string”
},
“always”: {
“type”: “integer”
}
}
},
“protocols”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “string”
},
“value”: {
“type”: “string”
}
}
}
},
“types”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “string”
},
“value”: {
“type”: “string”
}
}
}
},
“status”: {
“type”: “integer”
}
}
},
“examples”: {
“application/json”: {
“item”: {
“id”: 1,
“user_id”: 2,
“protocol”: “osmand”,
“conditions”: [
{
“tag”: “speed”,
“type”: “2”,
“tag_value”: “110”
}
],
“message”: “Message”,
“always”: 1
},
“protocols”: [
{
“id”: “adm”,
“value”: “adm”
},
{
“id”: “apel”,
“value”: “apel”
},
{
“id”: “aplicom”,
“value”: “aplicom”
},
{
“id”: “appello”,
“value”: “appello”
},
{
“id”: “aquila”,
“value”: “aquila”
},
{
“id”: “ardi01”,
“value”: “ardi01”
}
],
“types”: [
{
“id”: “1”,
“value”: “Equals to (=)”
},
{
“id”: “2”,
“value”: “Greater than (>)”
},
{
“id”: “3”,
“value”: “Less than (<)" } ], "status": 1 } } }, "400": { "$ref": "#/responses/trait:basic:400" }, "401": { "$ref": "#/responses/trait:basic:401" }, "500": { "$ref": "#/responses/trait:basic:500" } } } }, "/api/generate_report": { "post": { "operationId": "POST_api-generate_report", "description": "If the request is successfully returned { 'status': 3 'url': ###}. \"url\" is link to generated report file", "consumes": [ "multipart/form-data" ], "produces": [ "application/json" ], "parameters": [ { "$ref": "#/parameters/trait:basic:lang" }, { "$ref": "#/parameters/trait:basic:user_api_hash" } ], "responses": { "200": { "description": "", "schema": { "type": "object", "properties": { "status": { "type": "integer" }, "url": { "type": "string" } } } }, "400": { "$ref": "#/responses/trait:basic:400" }, "401": { "$ref": "#/responses/trait:basic:401" }, "500": { "$ref": "#/responses/trait:basic:500" } } } }, "/api/get_task_signature/{taskStatusId}": { "parameters": [ { "name": "taskStatusId", "in": "path", "required": true, "type": "string" } ], "get": { "operationId": "GET_api-get_task_signature-taskStatusId", "parameters": [ { "$ref": "#/parameters/trait:basic:lang" }, { "$ref": "#/parameters/trait:basic:user_api_hash" } ], "responses": { "400": { "$ref": "#/responses/trait:basic:400" }, "401": { "$ref": "#/responses/trait:basic:401" }, "500": { "$ref": "#/responses/trait:basic:500" } } } }, "/api/add_report": { "post": { "operationId": "POST_api-add_report", "consumes": [ "multipart/form-data" ], "produces": [ "application/json" ], "parameters": [ { "$ref": "#/parameters/trait:basic:lang" }, { "$ref": "#/parameters/trait:basic:user_api_hash" } ], "responses": { "200": { "description": "", "schema": { "$ref": "#/definitions/success" } }, "400": { "$ref": "#/responses/trait:basic:400" }, "401": { "$ref": "#/responses/trait:basic:401" }, "500": { "$ref": "#/responses/trait:basic:500" } } } }, "/api/destroy_report": { "get": { "operationId": "GET_api-destroy_report", "produces": [ "application/json" ], "parameters": [ { "$ref": "#/parameters/trait:basic:lang" }, { "$ref": "#/parameters/trait:basic:user_api_hash" }, { "$ref": "#/parameters/trait:reportId:report_id" } ], "responses": { "200": { "description": "", "schema": { "$ref": "#/definitions/success" } }, "400": { "$ref": "#/responses/trait:basic:400" }, "401": { "$ref": "#/responses/trait:basic:401" }, "500": { "$ref": "#/responses/trait:basic:500" } } } }, "/api/get_user_data": { "get": { "operationId": "GET_api-get_user_data", "produces": [ "application/json" ], "parameters": [ { "$ref": "#/parameters/trait:basic:lang" }, { "$ref": "#/parameters/trait:basic:user_api_hash" } ], "responses": { "200": { "description": "", "schema": { "type": "object", "properties": { "email": { "type": "string" }, "expiration_date": { "type": [ "null", "string" ] }, "days_left": { "type": [ "null", "integer" ] }, "plan": { "type": "string" }, "devices_limit": { "type": "integer" }, "group_id": { "type": "integer" } } }, "examples": { "application/json": { "email": "admin@yourdomain.com", "expiration_date": null, "days_left": null, "plan": "Demo", "devices_limit": 0 } } }, "400": { "$ref": "#/responses/trait:basic:400" }, "401": { "$ref": "#/responses/trait:basic:401" }, "500": { "$ref": "#/responses/trait:basic:500" } } } }, "/api/add_sensor_data": { "get": { "operationId": "GET_api-add_sensor_data", "produces": [ "application/json" ], "parameters": [ { "$ref": "#/parameters/trait:basic:lang" }, { "$ref": "#/parameters/trait:basic:user_api_hash" }, { "$ref": "#/parameters/trait:deviceId:device_id" } ], "responses": { "200": { "description": "", "schema": { "type": "object", "properties": { "sensors": { "$ref": "#/definitions/sensors" }, "device_id": { "type": "integer" }, "route": { "type": "string" }, "status": { "type": "integer" } } }, "examples": { "application/json": { "sensors": { "acc": "ACC ON/OFF", "battery": "Battery", "door": "Door Open/Close", "engine": "Engine ON/OFF", "engine_hours": "Engine hours", "fuel_tank": "Fuel tank", "fuel_tank_calibration": "Fuel tank (with calibration)", "gsm": "GSM", "harsh_acceleration": "Harsh acceleration ", "harsh_breaking": "Harsh breaking", "ignition": "Ignition ON/OFF", "odometer": "Odometer", "satellites": "Satellites", "tachometer": "Tachometer", "temperature": "Temperature" }, "device_id": 1, "route": "sensors.store", "status": 1 } } }, "400": { "$ref": "#/responses/trait:basic:400" }, "401": { "$ref": "#/responses/trait:basic:401" }, "500": { "$ref": "#/responses/trait:basic:500" } } } }, "/api/add_user_gprs_template": { "post": { "operationId": "POST_api-add_user_gprs_template", "consumes": [ "multipart/form-data" ], "produces": [ "application/json" ], "parameters": [ { "$ref": "#/parameters/trait:basic:lang" }, { "$ref": "#/parameters/trait:basic:user_api_hash" } ], "responses": { "200": { "description": "", "schema": { "type": "object", "properties": { "status": { "type": "integer" }, "item": { "$ref": "#/definitions/gprstemplate" } } }, "examples": { "application/json": { "status": 1, "item": { "id": 2, "user_id": 2, "title": "GPRS Title", "message": "message content", "updated_at": "2016-06-26 17:41:43", "created_at": "2016-06-26 17:41:43" } } } }, "400": { "$ref": "#/responses/trait:basic:400" }, "401": { "$ref": "#/responses/trait:basic:401" }, "500": { "$ref": "#/responses/trait:basic:500" } } } }, "/api/edit_alert_data": { "get": { "operationId": "GET_api-edit_alert_data", "produces": [ "application/json" ], "parameters": [ { "$ref": "#/parameters/trait:basic:lang" }, { "$ref": "#/parameters/trait:basic:user_api_hash" }, { "$ref": "#/parameters/trait:alertId:alert_id" } ], "responses": { "400": { "$ref": "#/responses/trait:basic:400" }, "401": { "$ref": "#/responses/trait:basic:401" }, "500": { "$ref": "#/responses/trait:basic:500" }, "default": { "description": "", "schema": { "type": "object", "properties": { "item": { "$ref": "#/definitions/alert" }, "devices": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer" }, "value": { "type": "string" } } } }, "geofences": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer" }, "value": { "type": "string" } } } }, "alert_zones": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer" }, "value": { "type": "string" } } } }, "types": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string" }, "title": { "type": "string" }, "attributes": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "type": { "type": "string", "enum": [ "integer", "string", "text", "select", "multiselect" ] }, "title": { "type": "string" }, "default": { "type": [ "string", "array" ], "items": { "type": "integer" } }, "options": { "type": [ "array", "null" ], "items": { "type": "object", "properties": { "id": { "type": [ "string", "integer" ] }, "value": { "type": "string" } } } } } } } } } }, "notifications": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "active": { "type": [ "boolean", "integer" ] }, "title": { "type": "string" }, "input": { "type": [ "string", "null" ] }, "description": { "type": [ "string", "null" ] } } } }, "schedules": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "enum": [ "monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday" ] }, "title": { "type": "string" }, "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "title": { "type": "string" }, "active": { "type": [ "boolean", "integer" ] } } } } } } } } } } } } }, "/api/destroy_user_driver": { "get": { "operationId": "GET_api-destroy_user_driver", "produces": [ "application/json" ], "parameters": [ { "$ref": "#/parameters/trait:basic:lang" }, { "$ref": "#/parameters/trait:basic:user_api_hash" }, { "$ref": "#/parameters/trait:userDriverId:user_driver_id" } ], "responses": { "200": { "description": "", "schema": { "$ref": "#/definitions/success" } }, "400": { "$ref": "#/responses/trait:basic:400" }, "401": { "$ref": "#/responses/trait:basic:401" }, "500": { "$ref": "#/responses/trait:basic:500" } } } }, "/api/edit_user_sms_template_data": { "get": { "operationId": "GET_api-edit_user_sms_template_data", "produces": [ "application/json" ], "parameters": [ { "$ref": "#/parameters/trait:basic:lang" }, { "$ref": "#/parameters/trait:basic:user_api_hash" }, { "$ref": "#/parameters/trait:userSmsTemplateId:user_sms_template_id" } ], "responses": { "200": { "description": "", "schema": { "type": "object", "properties": { "item": { "$ref": "#/definitions/smstemplate" }, "status": { "type": "integer" } } }, "examples": { "application/json": { "item": { "id": 1, "user_id": 2, "title": "Template title", "message": "Template message", "created_at": "2016-06-26 17:31:48", "updated_at": "2016-06-26 17:31:48" }, "status": 1 } } }, "400": { "$ref": "#/responses/trait:basic:400" }, "401": { "$ref": "#/responses/trait:basic:401" }, "500": { "$ref": "#/responses/trait:basic:500" } } } }, "/api/edit_sensor": { "post": { "operationId": "POST_api-edit_sensor", "consumes": [ "application/json" ], "produces": [ "application/json" ], "parameters": [ { "name": "sensor_id", "in": "query", "required": true, "type": "integer" }, { "name": "body", "in": "body", "schema": { "$ref": "#/definitions/sensorpost" } }, { "$ref": "#/parameters/trait:basic:lang" }, { "$ref": "#/parameters/trait:basic:user_api_hash" } ], "responses": { "200": { "description": "", "schema": { "$ref": "#/definitions/success" } }, "400": { "$ref": "#/responses/trait:basic:400" }, "401": { "$ref": "#/responses/trait:basic:401" }, "500": { "$ref": "#/responses/trait:basic:500" } } } }, "/api/destroy_device": { "get": { "operationId": "GET_api-destroy_device", "produces": [ "application/json" ], "parameters": [ { "name": "", "in": "query", "required": false, "type": "string" }, { "$ref": "#/parameters/trait:basic:lang" }, { "$ref": "#/parameters/trait:basic:user_api_hash" }, { "$ref": "#/parameters/trait:deviceId:device_id" } ], "responses": { "200": { "description": "", "schema": { "$ref": "#/definitions/success" } }, "400": { "$ref": "#/responses/trait:basic:400" }, "401": { "$ref": "#/responses/trait:basic:401" }, "500": { "$ref": "#/responses/trait:basic:500" } } } }, "/api/edit_device_data": { "get": { "operationId": "GET_api-edit_device_data", "produces": [ "application/json" ], "parameters": [ { "$ref": "#/parameters/trait:basic:lang" }, { "$ref": "#/parameters/trait:basic:user_api_hash" }, { "$ref": "#/parameters/trait:deviceId:device_id" } ], "responses": { "200": { "description": "", "schema": { "type": "object", "properties": { "device_groups": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer" }, "value": { "type": "string" } } } }, "sensor_groups": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer" }, "value": { "type": "string" } } } }, "device_fuel_measurements": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "title": { "type": "string" }, "fuel_title": { "type": "string" }, "distance_title": { "type": "string" }, "lang": { "type": "string" }, "created_at": { "type": "string" }, "updated_at": { "type": "string" } } } }, "device_icons": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "order": { "type": "string" }, "width": { "type": "string" }, "height": { "type": "string" }, "path": { "type": "string" } } } }, "users": { "type": "array", "items": { "$ref": "#/definitions/user" } }, "timezones": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer" }, "value": { "type": "string" } } } }, "expiration_date_select": { "type": "object", "properties": { "1": { "type": "string" }, "0000-00-00": { "type": "string" } } }, "engine_hours": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "value": { "type": "string" } } } }, "detect_engine": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "value": { "type": "string" } } } }, "sensors": { "allOf": [ { "$ref": "#/definitions/pagination" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/sensor" } } } } ] }, "services": { "allOf": [ { "$ref": "#/definitions/pagination" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/service" } } } } ] }, "item": { "$ref": "#/definitions/device" }, "status": { "type": "integer" } } } }, "400": { "$ref": "#/responses/trait:basic:400" }, "401": { "$ref": "#/responses/trait:basic:401" }, "500": { "$ref": "#/responses/trait:basic:500" } } } }, "/api/get_tasks": { "get": { "operationId": "GET_api-get_tasks", "parameters": [ { "name": "search_device_id", "in": "query", "type": "integer" }, { "name": "search_task_status", "in": "query", "type": "integer" }, { "name": "search_time_from", "in": "query", "type": "string", "format": "date-time" }, { "name": "search_time_to", "in": "query", "type": "string", "format": "date-time" }, { "name": "search_invoice_number", "in": "query", "type": "string" }, { "$ref": "#/parameters/trait:basic:lang" }, { "$ref": "#/parameters/trait:basic:user_api_hash" } ], "responses": { "200": { "description": "", "schema": { "type": "object", "properties": { "status": { "type": "integer" }, "items": { "type": "object", "properties": { "total": { "type": "integer" }, "per_page": { "type": "integer" }, "current_page": { "type": "integer" }, "last_page": { "type": "integer" }, "from": { "type": "integer" }, "to": { "type": "integer" }, "data": { "type": "array", "items": { "$ref": "#/definitions/task" } }, "url": { "type": "string" } } } } } }, "400": { "$ref": "#/responses/trait:basic:400" }, "401": { "$ref": "#/responses/trait:basic:401" }, "500": { "$ref": "#/responses/trait:basic:500" } } } }, "/api/get_user_sms_templates": { "get": { "operationId": "GET_api-get_user_sms_templates", "produces": [ "application/json" ], "parameters": [ { "$ref": "#/parameters/trait:basic:lang" }, { "$ref": "#/parameters/trait:basic:user_api_hash" } ], "responses": { "200": { "description": "", "schema": { "type": "object", "properties": { "items": { "type": "object", "properties": { "user_sms_templates": { "allOf": [ { "$ref": "#/definitions/pagination" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer" }, "user_id": { "type": "integer" }, "title": { "type": "string" }, "message": { "type": "string" }, "created_at": { "type": "string" }, "updated_at": { "type": "string" } } } } } } ] } } }, "status": { "type": "integer" } } }, "examples": { "application/json": { "items": { "user_sms_templates": { "total": 1, "per_page": 10, "current_page": 1, "last_page": 1, "next_page_url": null, "prev_page_url": null, "from": 1, "to": 1, "data": [ { "id": 1, "user_id": 2, "title": "Template title", "message": "Template message", "created_at": "2016-06-26 17:32:48", "updated_at": "2016-06-26 17:32:48" } ], "url": "/api/get_user_sms_templates" } }, "status": 1 } } }, "400": { "$ref": "#/responses/trait:basic:400" }, "401": { "$ref": "#/responses/trait:basic:401" }, "500": { "$ref": "#/responses/trait:basic:500" } } } }, "/api/admin/device/{deviceID}": { "parameters": [ { "name": "deviceID", "in": "path", "required": true, "type": "string" } ], "get": { "operationId": "GET_api-admin-device-deviceID", "responses": { "200": { "description": "", "schema": { "type": "object", "properties": { "status": { "type": "integer" }, "data": { "$ref": "#/definitions/device-full" } } } } }, "security": [ { "user_api_hash": [] } ] } }, "/api/destroy_service": { "get": { "operationId": "GET_api-destroy_service", "produces": [ "application/json" ], "parameters": [ { "$ref": "#/parameters/trait:basic:lang" }, { "$ref": "#/parameters/trait:basic:user_api_hash" }, { "$ref": "#/parameters/trait:serviceId:service_id" } ], "responses": { "200": { "description": "", "schema": { "$ref": "#/definitions/success" } }, "400": { "$ref": "#/responses/trait:basic:400" }, "401": { "$ref": "#/responses/trait:basic:401" }, "500": { "$ref": "#/responses/trait:basic:500" } } } }, "/api/add_alert": { "post": { "operationId": "POST_api-add_alert", "consumes": [ "multipart/form-data" ], "produces": [ "application/json" ], "parameters": [ { "$ref": "#/parameters/trait:basic:lang" }, { "$ref": "#/parameters/trait:basic:user_api_hash" } ], "responses": { "200": { "description": "", "schema": { "$ref": "#/definitions/success" } }, "400": { "$ref": "#/responses/trait:basic:400" }, "401": { "$ref": "#/responses/trait:basic:401" }, "500": { "$ref": "#/responses/trait:basic:500" } } } }, "/api/destroy_events": { "get": { "operationId": "GET_api-destroy_events", "description": "Istrina visus userio eventus.", "produces": [ "application/json" ], "parameters": [ { "$ref": "#/parameters/trait:basic:lang" }, { "$ref": "#/parameters/trait:basic:user_api_hash" } ], "responses": { "200": { "description": "", "schema": { "$ref": "#/definitions/success" } }, "400": { "$ref": "#/responses/trait:basic:400" }, "401": { "$ref": "#/responses/trait:basic:401" }, "500": { "$ref": "#/responses/trait:basic:500" } } } }, "/api/edit_user_sms_template": { "post": { "operationId": "POST_api-edit_user_sms_template", "consumes": [ "multipart/form-data" ], "produces": [ "application/json" ], "parameters": [ { "$ref": "#/parameters/trait:basic:lang" }, { "$ref": "#/parameters/trait:basic:user_api_hash" } ], "responses": { "200": { "description": "", "schema": { "$ref": "#/definitions/success" }, "examples": { "application/json": { "status": 1, "item": { "id": 2, "user_id": 2, "title": "GPRS Title", "message": "message content", "updated_at": "2016-06-26 17:41:43", "created_at": "2016-06-26 17:41:43" } } } }, "400": { "$ref": "#/responses/trait:basic:400" }, "401": { "$ref": "#/responses/trait:basic:401" }, "500": { "$ref": "#/responses/trait:basic:500" } } } }, "/api/add_service_data": { "get": { "operationId": "GET_api-add_service_data", "produces": [ "application/json" ], "parameters": [ { "$ref": "#/parameters/trait:basic:lang" }, { "$ref": "#/parameters/trait:basic:user_api_hash" }, { "$ref": "#/parameters/trait:deviceId:device_id" } ], "responses": { "200": { "description": "", "schema": { "type": "object", "properties": { "device_id": { "type": "integer" }, "odometer_value": { "type": "string" }, "engine_hours_value": { "type": "string" }, "expiration_by": { "$ref": "#/definitions/servicetypes" }, "status": { "type": "integer" } } }, "examples": { "application/json": { "device_id": 1, "odometer_value": "0", "engine_hours_value": "0", "expiration_by": { "odometer": "Odometer", "engine_hours": "Engine hours", "days": "Days" }, "status": 1 } } }, "400": { "$ref": "#/responses/trait:basic:400" }, "401": { "$ref": "#/responses/trait:basic:401" }, "500": { "$ref": "#/responses/trait:basic:500" } } } }, "/api/get_device_commands": { "get": { "operationId": "GET_api-get_device_commands", "consumes": [ "application/json" ], "parameters": [ { "$ref": "#/parameters/trait:basic:lang" }, { "$ref": "#/parameters/trait:basic:user_api_hash" }, { "$ref": "#/parameters/trait:deviceId:device_id" } ], "responses": { "200": { "description": "", "schema": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string" }, "title": { "type": "string" }, "attributes": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "description": "string, ingeter, text, select" }, "name": { "type": "string" }, "title": { "type": "string" }, "options": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": [ "string", "integer" ] }, "title": { "type": "string" } } } }, "default": { "type": [ "string", "integer" ] }, "description": { "type": "string" } }, "required": [ "type", "name", "title" ] } } }, "required": [ "type", "title" ] } } }, "400": { "$ref": "#/responses/trait:basic:400" }, "401": { "$ref": "#/responses/trait:basic:401" }, "500": { "$ref": "#/responses/trait:basic:500" } } } }, "/api/destroy_route": { "get": { "operationId": "GET_api-destroy_route", "produces": [ "application/json" ], "parameters": [ { "$ref": "#/parameters/trait:basic:lang" }, { "$ref": "#/parameters/trait:basic:user_api_hash" }, { "$ref": "#/parameters/trait:routeId:route_id" } ], "responses": { "200": { "description": "", "schema": { "$ref": "#/definitions/success" } }, "400": { "$ref": "#/responses/trait:basic:400" }, "401": { "$ref": "#/responses/trait:basic:401" }, "500": { "$ref": "#/responses/trait:basic:500" } } } }, "/api/add_custom_event": { "post": { "operationId": "POST_api-add_custom_event", "consumes": [ "multipart/form-data" ], "produces": [ "application/json" ], "parameters": [ { "$ref": "#/parameters/trait:basic:lang" }, { "$ref": "#/parameters/trait:basic:user_api_hash" } ], "responses": { "200": { "description": "", "schema": { "$ref": "#/definitions/success" } }, "400": { "$ref": "#/responses/trait:basic:400" }, "401": { "$ref": "#/responses/trait:basic:401" }, "500": { "$ref": "#/responses/trait:basic:500" } } } }, "/api/get_protocols": { "get": { "operationId": "GET_api-get_protocols", "produces": [ "application/json" ], "parameters": [ { "$ref": "#/parameters/trait:basic:lang" }, { "$ref": "#/parameters/trait:basic:user_api_hash" } ], "responses": { "200": { "description": "", "schema": { "type": "object", "properties": { "0": { "type": "object", "properties": { "id": { "type": "integer" }, "value": { "type": "object", "properties": { "type": { "type": "integer" }, "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "value": { "type": "string" } } } } } } } }, "1": { "type": "object", "properties": { "id": { "type": "integer" }, "value": { "type": "object", "properties": { "type": { "type": "integer" }, "items": { "type": "array", "items": { "type": "object" } } } } } }, "status": { "type": "integer" } } }, "examples": { "application/json": { "0": { "id": 0, "value": { "type": 1, "items": [ { "id": "osmand", "value": "osmand" } ] } }, "1": { "id": 1, "value": { "type": 2, "items": [] } }, "status": 1 } } }, "400": { "$ref": "#/responses/trait:basic:400" }, "401": { "$ref": "#/responses/trait:basic:401" }, "500": { "$ref": "#/responses/trait:basic:500" } } } }, "/api/add_device_data": { "get": { "operationId": "GET_api-add_device_data", "produces": [ "application/json" ], "parameters": [ { "$ref": "#/parameters/trait:basic:lang" }, { "$ref": "#/parameters/trait:basic:user_api_hash" } ], "responses": { "200": { "description": "", "schema": { "type": "object", "properties": { "device_groups": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer" }, "value": { "type": "string" } } } }, "sensor_groups": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer" }, "value": { "type": "string" } } } }, "device_fuel_measurements": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "title": { "type": "string" }, "fuel_title": { "type": "string" }, "distance_title": { "type": "string" }, "lang": { "type": "string" }, "created_at": { "type": "string" }, "updated_at": { "type": "string" } } } }, "device_icons": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "order": { "type": "string" }, "width": { "type": "string" }, "height": { "type": "string" }, "path": { "type": "string" } } } }, "users": { "type": "array", "items": { "$ref": "#/definitions/user" } }, "timezones": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer" }, "value": { "type": "string" } } } }, "expiration_date_select": { "type": "object", "properties": { "1": { "type": "string" }, "0000-00-00": { "type": "string" } } }, "status": { "type": "integer" } } }, "examples": { "application/json": { "device_groups": [ { "id": 0, "value": "Ungrouped" } ], "sensor_groups": [ { "id": 0, "value": "None" }, { "id": 1, "value": "Senson group" } ], "device_fuel_measurements": [ { "id": "1", "title": "l/100km", "fuel_title": "liter", "distance_title": "Kilometers", "lang": "en", "created_at": "2016-04-19 16:31:00", "updated_at": "2016-04-19 16:31:00" }, { "id": "2", "title": "MPG", "fuel_title": "gallon", "distance_title": "Miles", "lang": "en", "created_at": "2016-04-19 16:31:00", "updated_at": "2016-04-19 16:31:00" } ], "device_icons": [ { "id": "4", "order": "4", "width": "43.00", "height": "57.00", "path": "frontend/images/device_icons/4.png" }, { "id": "1", "order": "3", "width": "43.00", "height": "57.00", "path": "frontend/images/device_icons/1.png" }, { "id": "2", "order": "3", "width": "43.00", "height": "57.00", "path": "frontend/images/device_icons/2.png" }, { "id": "3", "order": "3", "width": "43.00", "height": "57.00", "path": "frontend/images/device_icons/3.png" } ], "users": [], "timezones": [ { "id": 0, "value": "Default" }, { "id": 1, "value": "-14:00" }, { "id": 2, "value": "-13:45" }, { "id": 3, "value": "-13:30" }, { "id": 4, "value": "-13:15" }, { "id": 5, "value": "-13:00" }, { "id": 6, "value": "-12:45" }, { "id": 7, "value": "-12:30" }, { "id": 8, "value": "-12:15" }, { "id": 9, "value": "-12:00" }, { "id": 10, "value": "-11:45" } ], "expiration_date_select": { "1": "Expiration date", "0000-00-00": "Unlimited" }, "status": 1 } } }, "400": { "$ref": "#/responses/trait:basic:400" }, "401": { "$ref": "#/responses/trait:basic:401" }, "500": { "$ref": "#/responses/trait:basic:500" } } } }, "/alarm_position": { "get": { "operationId": "GET_alarm_position", "produces": [ "application/json" ], "parameters": [ { "$ref": "#/parameters/trait:basic:lang" }, { "$ref": "#/parameters/trait:basic:user_api_hash" }, { "$ref": "#/parameters/trait:deviceId:device_id" } ], "responses": { "400": { "$ref": "#/responses/trait:basic:400" }, "401": { "$ref": "#/responses/trait:basic:401" }, "500": { "$ref": "#/responses/trait:basic:500" }, "default": { "description": "" } } } }, "/api/add_custom_event_data": { "get": { "operationId": "GET_api-add_custom_event_data", "produces": [ "application/json" ], "parameters": [ { "$ref": "#/parameters/trait:basic:lang" }, { "$ref": "#/parameters/trait:basic:user_api_hash" } ], "responses": { "200": { "description": "", "schema": { "type": "object", "properties": { "protocols": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "value": { "type": "string" } } } }, "types": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "value": { "type": "string" } } } }, "status": { "type": "integer" } } }, "examples": { "application/json": { "protocols": [ { "id": "adm", "value": "adm" }, { "id": "apel", "value": "apel" }, { "id": "aplicom", "value": "aplicom" }, { "id": "appello", "value": "appello" } ], "types": [ { "id": "1", "value": "Equals to (=)" }, { "id": "2", "value": "Greater than (>)”
},
{
“id”: “3”,
“value”: “Less than (<)" } ], "status": 1 } } }, "400": { "$ref": "#/responses/trait:basic:400" }, "401": { "$ref": "#/responses/trait:basic:401" }, "500": { "$ref": "#/responses/trait:basic:500" } } } }, "/api/add_service": { "post": { "operationId": "POST_api-add_service", "consumes": [ "multipart/form-data" ], "produces": [ "application/json" ], "parameters": [ { "$ref": "#/parameters/trait:basic:lang" }, { "$ref": "#/parameters/trait:basic:user_api_hash" }, { "$ref": "#/parameters/trait:deviceId:device_id" } ], "responses": { "200": { "description": "", "schema": { "$ref": "#/definitions/success" } }, "400": { "$ref": "#/responses/trait:basic:400" }, "401": { "$ref": "#/responses/trait:basic:401" }, "500": { "$ref": "#/responses/trait:basic:500" } } } }, "/api/add_sensor": { "post": { "operationId": "POST_api-add_sensor", "description": "The fields depends on the sensor type, which can see the web version.", "consumes": [ "multipart/form-data" ], "produces": [ "application/json" ], "parameters": [ { "$ref": "#/parameters/trait:basic:lang" }, { "$ref": "#/parameters/trait:basic:user_api_hash" }, { "$ref": "#/parameters/trait:deviceId:device_id" } ], "responses": { "200": { "description": "", "schema": { "$ref": "#/definitions/success" } }, "400": { "$ref": "#/responses/trait:basic:400" }, "401": { "$ref": "#/responses/trait:basic:401" }, "500": { "$ref": "#/responses/trait:basic:500" } } } }, "/api/add_report_data": { "get": { "operationId": "GET_api-add_report_data", "produces": [ "application/json" ], "parameters": [ { "$ref": "#/parameters/trait:basic:lang" }, { "$ref": "#/parameters/trait:basic:user_api_hash" } ], "responses": { "200": { "description": "", "schema": { "type": "object", "properties": { "devices": { "type": "array", "items": { "$ref": "#/definitions/device" } }, "geofences": { "type": "array", "items": { "$ref": "#/definitions/geofence" } }, "formats": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "value": { "type": "string" } } } }, "stops": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer" }, "value": { "type": "string" } } } }, "filters": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer" }, "value": { "type": "string" } } } }, "types": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "integer" }, "value": { "type": "string" } } } }, "reports": { "allOf": [ { "$ref": "#/definitions/pagination" }, { "type": "object", "properties": { "data": { "type": "array", "items": { "$ref": "#/definitions/report" } } } } ] }, "logs": { "type": "object", "properties": { "sorting": { "type": "object", "properties": { "sort": { "type": "string" }, "sort_by": { "type": "string" } } } } }, "status": { "type": "integer" } } }, "examples": { "application/json": { "devices": [ { "id": "3", "user_id": null, "traccar_device_id": "3", "icon_id": "8", "active": "1", "deleted": "0", "name": "Device name", "imei": "789832", "fuel_measurement_id": "1", "fuel_quantity": "0.00", "fuel_price": "0.00", "fuel_per_km": "0.00", "sim_number": "", "device_model": "", "plate_number": "", "vin": "", "registration_number": "", "object_owner": "", "expiration_date": "0000-00-00", "tail_color": "#33cc33", "tail_length": "5", "engine_hours": "gps", "detect_engine": "gps", "min_moving_speed": "6", "min_fuel_fillings": "10", "min_fuel_thefts": "10", "snap_to_road": "0", "created_at": "2016-04-25 16:21:19", "updated_at": "2016-06-26 15:52:46", "pivot": { "user_id": "2", "device_id": "3", "group_id": null, "current_driver_id": "1", "active": "1", "timezone_id": null }, "traccar": { "id": "3", "name": "Device name", "uniqueId": "789832", "latestPosition_id": "99", "lastValidLatitude": "55.92299604", "lastValidLongitude": "23.34669059", "other": "31.083.181.149.238“,
“speed”: “0.00”,
“time”: “2016-04-29 19:01:26”,
“server_time”: “2016-04-29 19:01:26”,
“ack_time”: null,
“altitude”: “175”,
“course”: “0”,
“power”: null,
“address”: null,
“protocol”: “osmand”,
“latest_positions”: “55.92297793/23.34665713;55.92336524/23.34666575;55.91928624/23.34572509;55.91590619/23.33778733;55.91986482/23.3255625;55.92581495/23.30829421;55.92748307/23.30725942;55.92966571/23.31183084;55.93430696/23.31986459;55.93769598/23.32408059;55.94483741/23.33093897;55.94417471/23.33107782;55.93988092/23.32629426;55.93719855/23.32534909;55.93344595/23.32372258”
},
“icon”: {
“id”: “8”,
“order”: “3”,
“width”: “43.00”,
“height”: “57.00”,
“path”: “frontend/images/device_icons/8.png”
},
“sensors”: [
{
“id”: “1”,
“user_id”: “2”,
“device_id”: “3”,
“name”: “Sensor test”,
“type”: “battery”,
“tag_name”: “Parameter name”,
“add_to_history”: “0”,
“on_value”: null,
“off_value”: null,
“shown_value_by”: “tag_value”,
“fuel_tank_name”: null,
“full_tank”: null,
“full_tank_value”: null,
“min_value”: null,
“max_value”: null,
“formula”: null,
“odometer_value_by”: null,
“odometer_value”: null,
“odometer_value_unit”: “km”,
“temperature_max”: null,
“temperature_max_value”: null,
“temperature_min”: null,
“temperature_min_value”: null,
“value”: “-“,
“value_formula”: “0”,
“show_in_popup”: “0”,
“unit_of_measurement”: “nn”,
“on_tag_value”: null,
“off_tag_value”: null,
“on_type”: null,
“off_type”: null,
“calibrations”: null
}
],
“services”: [
{
“id”: “1”,
“user_id”: “2”,
“device_id”: “3”,
“name”: “Test service”,
“expiration_by”: “engine_hours”,
“interval”: “0”,
“last_service”: “1000”,
“trigger_event_left”: “0”,
“renew_after_expiration”: “0”,
“expires”: “1000”,
“expires_date”: null,
“remind”: “1000”,
“remind_date”: null,
“event_sent”: “0”,
“expired”: “0”,
“email”: “”,
“mobile_phone”: “”
}
]
}
],
“geofences”: [
{
“id”: 1,
“user_id”: 2,
“group_id”: null,
“active”: 1,
“name”: “Test geo”,
“coordinates”: “[\n {\n \”lat\”: 55.925307141049,\n \”lng\”: 23.350710868835\n },\n {\n \”lat\”: 55.926918076798,\n \”lng\”: 23.333630561829\n },\n {\n \”lat\”: 55.91948797954,\n \”lng\”: 23.331656455994\n },\n {\n \”lat\”: 55.916000873283,\n \”lng\”: 23.340711593628\n },\n {\n \”lat\”: 55.925066697134,\n \”lng\”: 23.353199958801\n }\n]”,
“polygon_color”: “#d000df”,
“created_at”: “2016-04-28 22:13:17”,
“updated_at”: “2016-04-28 22:13:34”
}
],
“formats”: [
{
“id”: “html”,
“value”: “HTML”
},
{
“id”: “xls”,
“value”: “XLS”
},
{
“id”: “pdf”,
“value”: “PDF”
},
{
“id”: “pdf_land”,
“value”: “PDF (Landscape)”
}
],
“stops”: [
{
“id”: 1,
“value”: “> 1 min”
},
{
“id”: 2,
“value”: “> 2 min”
},
{
“id”: 5,
“value”: “> 5 min”
},
{
“id”: 10,
“value”: “> 10 min”
},
{
“id”: 20,
“value”: “> 20 min”
},
{
“id”: 30,
“value”: “> 30 min”
},
{
“id”: 60,
“value”: “> 1 h”
},
{
“id”: 120,
“value”: “> 2 h”
},
{
“id”: 300,
“value”: “> 5 h”
}
],
“filters”: [
{
“id”: 0,
“value”: “”
},
{
“id”: 1,
“value”: “Today”
},
{
“id”: 2,
“value”: “Yesterday”
},
{
“id”: 3,
“value”: “Before 2 days”
},
{
“id”: 4,
“value”: “Before 3 days”
},
{
“id”: 5,
“value”: “This week”
},
{
“id”: 6,
“value”: “Last week”
},
{
“id”: 7,
“value”: “This month”
},
{
“id”: 8,
“value”: “Last month”
}
],
“types”: [
{
“id”: 1,
“value”: “General information”
},
{
“id”: 2,
“value”: “General information (merged)”
},
{
“id”: 3,
“value”: “Drives and stops”
},
{
“id”: 18,
“value”: “Drives and stops / Geofences”
},
{
“id”: 4,
“value”: “Travel sheet”
},
{
“id”: 5,
“value”: “Overspeed”
},
{
“id”: 6,
“value”: “Underspeed”
},
{
“id”: 7,
“value”: “Geofence in/out”
},
{
“id”: 15,
“value”: “Geofence in/out 24 hour mode”
},
{
“id”: 8,
“value”: “Events”
},
{
“id”: 10,
“value”: “Fuel level”
},
{
“id”: 11,
“value”: “Fuel fillings”
},
{
“id”: 12,
“value”: “Fuel thefts”
},
{
“id”: 13,
“value”: “Temperature”
},
{
“id”: 14,
“value”: “RAG”
}
],
“reports”: {
“total”: 1,
“per_page”: 10,
“current_page”: 1,
“last_page”: 1,
“next_page_url”: null,
“prev_page_url”: null,
“from”: 1,
“to”: 1,
“data”: [
{
“id”: “2”,
“user_id”: “2”,
“title”: “Report title”,
“type”: “4”,
“format”: “html”,
“show_addresses”: null,
“zones_instead”: null,
“stops”: “1”,
“speed_limit”: null,
“daily”: null,
“weekly”: null,
“email”: “”,
“weekly_email_sent”: “2016-06-27 00:00:00”,
“daily_email_sent”: “2016-06-26 00:00:00”,
“devices”: [
{
“id”: “3”,
“user_id”: null,
“traccar_device_id”: “3”,
“icon_id”: “8”,
“active”: “1”,
“deleted”: “0”,
“name”: “Device name”,
“imei”: “789832”,
“fuel_measurement_id”: “1”,
“fuel_quantity”: “0.00”,
“fuel_price”: “0.00”,
“fuel_per_km”: “0.00”,
“sim_number”: “”,
“device_model”: “”,
“plate_number”: “”,
“vin”: “”,
“registration_number”: “”,
“object_owner”: “”,
“expiration_date”: “0000-00-00”,
“tail_color”: “#33cc33”,
“tail_length”: “5”,
“engine_hours”: “gps”,
“detect_engine”: “gps”,
“min_moving_speed”: “6”,
“min_fuel_fillings”: “10”,
“min_fuel_thefts”: “10”,
“snap_to_road”: “0”,
“created_at”: “2016-04-25 16:21:19”,
“updated_at”: “2016-06-26 15:52:46”,
“pivot”: {
“report_id”: “2”,
“device_id”: “3”
}
}
],
“geofences”: []
}
],
“url”: “/api/get_reports”
},
“logs”: {
“sorting”: {
“sort”: “desc”,
“sort_by”: “id”
}
},
“status”: 1
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/edit_map_icon”: {
“post”: {
“operationId”: “POST_api-edit_map_icon”,
“consumes”: [
“application/json”
],
“produces”: [
“application/json”
],
“parameters”: [
{
“name”: “body”,
“in”: “body”,
“schema”: {
“allOf”: [
{
“$ref”: “#/definitions/objectID”
},
{
“$ref”: “#/definitions/mapiconpost”
}
]
}
},
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“$ref”: “#/definitions/success”
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/send_sms_command”: {
“post”: {
“operationId”: “POST_api-send_sms_command”,
“consumes”: [
“multipart/form-data”
],
“produces”: [
“application/json”
],
“parameters”: [
{
“name”: “message”,
“in”: “formData”,
“required”: true,
“type”: “string”
},
{
“name”: “devices”,
“in”: “formData”,
“required”: true,
“type”: “array”,
“items”: {
“type”: “integer”
}
},
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“$ref”: “#/definitions/success”
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/add_alert_data”: {
“get”: {
“operationId”: “GET_api-add_alert_data”,
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“devices”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“value”: {
“type”: “string”
}
}
}
},
“geofences”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“value”: {
“type”: “string”
}
}
}
},
“alert_zones”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“value”: {
“type”: “string”
}
}
}
},
“types”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“type”: {
“type”: “string”
},
“title”: {
“type”: “string”
},
“attributes”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“name”: {
“type”: “string”
},
“type”: {
“type”: “string”,
“enum”: [
“integer”,
“string”,
“text”,
“select”,
“multiselect”
]
},
“title”: {
“type”: “string”
},
“default”: {
“type”: [
“string”,
“array”
],
“items”: {
“type”: “integer”
}
},
“options”: {
“type”: [
“array”,
“null”
],
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: [
“string”,
“integer”
]
},
“value”: {
“type”: “string”
}
}
}
}
}
}
}
}
}
},
“notifications”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“name”: {
“type”: “string”
},
“active”: {
“type”: [
“boolean”,
“integer”
]
},
“title”: {
“type”: “string”
},
“input”: {
“type”: [
“string”,
“null”
]
},
“description”: {
“type”: [
“string”,
“null”
]
}
}
}
},
“schedules”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “string”,
“enum”: [
“monday”,
“tuesday”,
“wednesday”,
“thursday”,
“friday”,
“saturday”,
“sunday”
]
},
“title”: {
“type”: “string”
},
“items”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “string”
},
“title”: {
“type”: “string”
},
“active”: {
“type”: [
“boolean”,
“integer”
]
}
}
}
}
}
}
}
}
},
“examples”: {
“application/json”: {
“devices”: [
{
“id”: 3,
“value”: “Device name”
}
],
“geofences”: [
{
“id”: 1,
“value”: “Test geo”
}
],
“drivers”: [
{
“id”: 1,
“value”: “Drive first”
},
{
“id”: 2,
“value”: “Second drive name”
}
],
“alert_zones”: [
{
“id”: 1,
“value”: “Zone in”
},
{
“id”: 2,
“value”: “Zone out”
}
],
“alert_fuel_type”: [
{
“id”: 1,
“value”: “L”
},
{
“id”: 2,
“value”: “Gal”
}
],
“alert_distance”: [
{
“id”: 1,
“value”: “km”
},
{
“id”: 2,
“value”: “mi”
}
],
“event_types”: [
{
“id”: 1,
“value”: “Custom events”
},
{
“id”: 2,
“value”: “System events”
}
],
“event_protocols”: [
{
“id”: “-“,
“value”: “- Protocol -”
}
],
“status”: 1
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/change_password”: {
“post”: {
“operationId”: “POST_api-change_password”,
“parameters”: [
{
“name”: “body”,
“in”: “body”,
“schema”: {
“type”: “object”,
“properties”: {
“password”: {
“type”: “string”
}
}
}
},
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/edit_user_gprs_template_data”: {
“get”: {
“operationId”: “GET_api-edit_user_gprs_template_data”,
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
},
{
“$ref”: “#/parameters/trait:userGprsTemplateId:user_gprs_template_id”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“item”: {
“$ref”: “#/definitions/gprstemplate”
},
“protocols”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “string”
},
“title”: {
“type”: “string”
}
}
}
},
“status”: {
“type”: “integer”
}
}
},
“examples”: {
“application/json”: {
“item”: {
“id”: 1,
“user_id”: 2,
“title”: “Template title”,
“message”: “Template message”,
“created_at”: “2016-06-26 17:31:48”,
“updated_at”: “2016-06-26 17:31:48”
},
“status”: 1
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/get_map_icons”: {
“get”: {
“operationId”: “GET_api-get_map_icons”,
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“items”: {
“type”: “array”,
“items”: {
“$ref”: “#/definitions/mapicon”
}
},
“status”: {
“type”: “integer”
}
}
},
“examples”: {
“application/json”: {
“items”: [
{
“id”: 1,
“path”: “frontend/images/map_icons/543ccabd1373b8.41756394.png”,
“width”: “32.00”,
“height”: “37.00”
},
{
“id”: 2,
“path”: “frontend/images/map_icons/543ccabd141637.00777195.png”,
“width”: “32.00”,
“height”: “37.00”
},
{
“id”: 3,
“path”: “frontend/images/map_icons/543ccabd509796.35593817.png”,
“width”: “32.00”,
“height”: “37.00”
},
{
“id”: 53,
“path”: “frontend/images/map_icons/test-2.png”,
“width”: “32.00”,
“height”: “37.00”
},
{
“id”: 54,
“path”: “frontend/images/map_icons/velocimeter.png”,
“width”: “32.00”,
“height”: “37.00”
}
],
“status”: 1
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/add_map_icon”: {
“post”: {
“operationId”: “POST_api-add_map_icon”,
“consumes”: [
“application/json”
],
“produces”: [
“application/json”
],
“parameters”: [
{
“name”: “body”,
“in”: “body”,
“schema”: {
“$ref”: “#/definitions/mapiconpost”
}
},
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“$ref”: “#/definitions/success”
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/get_geofences”: {
“get”: {
“operationId”: “GET_api-get_geofences”,
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“allOf”: [
{
“type”: “object”,
“properties”: {
“items”: {
“type”: “object”,
“properties”: {
“”: {
“type”: “object”
}
}
},
“geofences”: {
“type”: “array”,
“items”: {
“$ref”: “#/definitions/geofence”
}
}
}
},
{
“$ref”: “#/definitions/success”
}
]
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/edit_setup_data”: {
“get”: {
“operationId”: “GET_api-edit_setup_data”,
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“item”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“active”: {
“type”: “integer”
},
“group_id”: {
“type”: “integer”
},
“manager_id”: {
“type”: “null”
},
“billing_plan_id”: {
“type”: “null”
},
“map_id”: {
“type”: “integer”
},
“devices_limit”: {
“type”: “null”
},
“email”: {
“type”: “string”
},
“password”: {
“type”: “string”
},
“subscription_expiration”: {
“type”: “string”
},
“loged_at”: {
“type”: “string”
},
“api_hash”: {
“type”: “string”
},
“available_maps”: {
“type”: “object”,
“properties”: {
“1”: {
“type”: “integer”
},
“2”: {
“type”: “integer”
},
“3”: {
“type”: “integer”
},
“4”: {
“type”: “integer”
},
“5”: {
“type”: “integer”
},
“6”: {
“type”: “integer”
},
“7”: {
“type”: “integer”
},
“8”: {
“type”: “integer”
},
“9”: {
“type”: “integer”
}
}
},
“sms_gateway_app_date”: {
“type”: “string”
},
“sms_gateway_params”: {
“type”: “object”,
“properties”: {
“request_method”: {
“type”: “string”
},
“authentication”: {
“type”: “string”
},
“username”: {
“type”: “string”
},
“password”: {
“type”: “null”
},
“encoding”: {
“type”: “null”
}
}
},
“open_geofence_groups”: {
“type”: “string”
},
“open_device_groups”: {
“type”: “string”
},
“created_at”: {
“type”: “string”
},
“updated_at”: {
“type”: “string”
},
“unit_of_altitude”: {
“type”: “string”
},
“lang”: {
“type”: “string”
},
“unit_of_distance”: {
“type”: “string”
},
“unit_of_capacity”: {
“type”: “string”
},
“timezone_id”: {
“type”: “string”
},
“sms_gateway”: {
“type”: “string”
},
“sms_gateway_url”: {
“type”: “string”
}
}
},
“timezones”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“value”: {
“type”: “string”
}
}
}
},
“units_of_distance”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “string”
},
“value”: {
“type”: “string”
}
}
}
},
“units_of_capacity”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “string”
},
“value”: {
“type”: “string”
}
}
}
},
“units_of_altitude”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “string”
},
“value”: {
“type”: “string”
}
}
}
},
“groups”: {
“type”: “array”,
“items”: {
“type”: “object”
}
},
“sms_queue_count”: {
“type”: “integer”
},
“request_method_select”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “string”
},
“value”: {
“type”: “string”
}
}
}
},
“encoding_select”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: [
“integer”,
“string”
]
},
“value”: {
“type”: “string”
}
}
}
},
“authentication_select”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“value”: {
“type”: “string”
}
}
}
},
“dst_types”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “string”
},
“value”: {
“type”: “string”
}
}
}
},
“user_dst”: {
“type”: “null”
},
“months”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “string”
},
“value”: {
“type”: “string”
}
}
}
},
“weekdays”: {
“type”: “object”,
“properties”: {
“monday”: {
“type”: “string”
},
“tuesday”: {
“type”: “string”
},
“wednesday”: {
“type”: “string”
},
“thursday”: {
“type”: “string”
},
“friday”: {
“type”: “string”
},
“saturday”: {
“type”: “string”
},
“sunday”: {
“type”: “string”
}
}
},
“week_pos”: {
“type”: “object”,
“properties”: {
“first”: {
“type”: “string”
},
“last”: {
“type”: “string”
}
}
},
“dst_countries”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“value”: {
“type”: “string”
}
}
}
},
“status”: {
“type”: “integer”
}
}
},
“examples”: {
“application/json”: {
“item”: {
“id”: 2,
“active”: 1,
“group_id”: 1,
“manager_id”: null,
“billing_plan_id”: null,
“map_id”: 1,
“devices_limit”: null,
“email”: “admin@yourdomain.com”,
“password”: “***”,
“subscription_expiration”: “0000-00-00 00:00:00”,
“loged_at”: “2016-05-27 01:10:36”,
“api_hash”: “***”,
“available_maps”: {
“1”: 1,
“2”: 2,
“3”: 3,
“4”: 4,
“5”: 5,
“6”: 6,
“7”: 7,
“8”: 8,
“9”: 9
},
“sms_gateway_app_date”: “0000-00-00 00:00:00”,
“sms_gateway_params”: {
“request_method”: “get”,
“authentication”: “0”,
“username”: “”,
“password”: null,
“encoding”: null
},
“open_geofence_groups”: “[\n \”0\”\n]”,
“open_device_groups”: “[\n \”0\”\n]”,
“created_at”: “2016-04-19 16:31:00”,
“updated_at”: “2016-06-27 01:10:36”,
“unit_of_altitude”: “mt”,
“lang”: “en”,
“unit_of_distance”: “km”,
“unit_of_capacity”: “lt”,
“timezone_id”: “65”,
“sms_gateway”: “0”,
“sms_gateway_url”: “”
},
“timezones”: [
{
“id”: 1,
“value”: “UTC -14:00”
},
{
“id”: 2,
“value”: “UTC -13:45”
},
{
“id”: 3,
“value”: “UTC -13:30”
},
{
“id”: 4,
“value”: “UTC -13:15”
},
{
“id”: 5,
“value”: “UTC -13:00”
},
{
“id”: 6,
“value”: “UTC -12:45”
}
],
“units_of_distance”: [
{
“id”: “km”,
“value”: “Kilometer”
},
{
“id”: “mi”,
“value”: “Mile”
}
],
“units_of_capacity”: [
{
“id”: “lt”,
“value”: “Liter”
},
{
“id”: “gl”,
“value”: “Gallon”
}
],
“units_of_altitude”: [
{
“id”: “mt”,
“value”: “Meter”
},
{
“id”: “ft”,
“value”: “Feet”
}
],
“groups”: [],
“sms_queue_count”: 0,
“request_method_select”: [
{
“id”: “get”,
“value”: “GET”
},
{
“id”: “post”,
“value”: “POST”
},
{
“id”: “app”,
“value”: “SMS gateway app”
}
],
“encoding_select”: [
{
“id”: 0,
“value”: “No”
},
{
“id”: “json”,
“value”: “JSON”
}
],
“authentication_select”: [
{
“id”: 0,
“value”: “No”
},
{
“id”: 1,
“value”: “Yes”
}
],
“dst_types”: [
{
“id”: “none”,
“value”: “None”
},
{
“id”: “exact”,
“value”: “Exact date”
},
{
“id”: “automatic”,
“value”: “Automatic”
},
{
“id”: “other”,
“value”: “Other”
}
],
“user_dst”: null,
“months”: [
{
“id”: “january”,
“value”: “January”
},
{
“id”: “february”,
“value”: “February”
},
{
“id”: “march”,
“value”: “March”
},
{
“id”: “april”,
“value”: “April”
},
{
“id”: “may”,
“value”: “May”
},
{
“id”: “june”,
“value”: “June”
},
{
“id”: “july”,
“value”: “July”
},
{
“id”: “august”,
“value”: “August”
},
{
“id”: “september”,
“value”: “September”
},
{
“id”: “october”,
“value”: “October”
},
{
“id”: “november”,
“value”: “November”
},
{
“id”: “december”,
“value”: “December”
}
],
“weekdays”: {
“monday”: “Monday”,
“tuesday”: “Tuesday”,
“wednesday”: “Wednesday”,
“thursday”: “Thursday”,
“friday”: “friday”,
“saturday”: “Saturday”,
“sunday”: “Sunday”
},
“week_pos”: {
“first”: “First”,
“last”: “Last”
},
“dst_countries”: [
{
“id”: 1,
“value”: “Akrotiri and Dhekelia(UK)”
},
{
“id”: 2,
“value”: “Albania”
},
{
“id”: 3,
“value”: “Andorra”
},
{
“id”: 4,
“value”: “Australia”
}
],
“status”: 1
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/edit_sensor_data”: {
“get”: {
“operationId”: “GET_api-edit_sensor_data”,
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
},
{
“$ref”: “#/parameters/trait:sensorId:sensor_id”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“sensors”: {
“$ref”: “#/definitions/sensors”
},
“device_id”: {
“type”: [
“string”,
“integer”
]
},
“item”: {
“$ref”: “#/definitions/sensor”
},
“route”: {
“type”: “string”
},
“status”: {
“type”: [
“string”,
“integer”
]
}
}
},
“examples”: {
“application/json”: {
“sensors”: {
“acc”: “ACC ON/OFF”,
“battery”: “Battery”,
“door”: “Door Open/Close”,
“engine”: “Engine ON/OFF”,
“engine_hours”: “Engine hours”,
“fuel_tank”: “Fuel tank”,
“fuel_tank_calibration”: “Fuel tank (with calibration)”,
“gsm”: “GSM”,
“harsh_acceleration”: “Harsh acceleration “,
“harsh_breaking”: “Harsh breaking”,
“ignition”: “Ignition ON/OFF”,
“odometer”: “Odometer”,
“satellites”: “Satellites”,
“tachometer”: “Tachometer”,
“temperature”: “Temperature”
},
“device_id”: “3”,
“item”: {
“id”: “2”,
“user_id”: “2”,
“device_id”: “3”,
“name”: “test acc”,
“type”: “acc”,
“tag_name”: “tag”,
“add_to_history”: “0”,
“on_value”: “on”,
“off_value”: “off”,
“shown_value_by”: null,
“fuel_tank_name”: null,
“full_tank”: null,
“full_tank_value”: null,
“min_value”: null,
“max_value”: null,
“formula”: null,
“odometer_value_by”: null,
“odometer_value”: null,
“odometer_value_unit”: “km”,
“temperature_max”: null,
“temperature_max_value”: null,
“temperature_min”: null,
“temperature_min_value”: null,
“value”: “-“,
“value_formula”: “0”,
“show_in_popup”: “1”,
“unit_of_measurement”: “nn”,
“on_tag_value”: null,
“off_tag_value”: null,
“on_type”: null,
“off_type”: null,
“calibrations”: null
},
“route”: “sensors.update”,
“status”: 1
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/get_devices”: {
“get”: {
“operationId”: “GET_api-get_devices”,
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“title”: {
“type”: “string”
},
“items”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“name”: {
“type”: “string”
},
“online”: {
“type”: “string”
},
“alarm”: {
“type”: “string”
},
“time”: {
“type”: “string”
},
“timestamp”: {
“type”: “integer”
},
“acktimestamp”: {
“type”: “integer”
},
“speed”: {
“type”: “integer”
},
“lat”: {
“type”: “number”
},
“lng”: {
“type”: “number”
},
“course”: {
“type”: “string”
},
“power”: {
“type”: “string”
},
“altitude”: {
“type”: “integer”
},
“address”: {
“type”: “string”
},
“protocol”: {
“type”: “string”
},
“driver”: {
“type”: “string”
},
“sensors”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“name”: {
“type”: “string”
},
“value”: {
“type”: “string”
},
“show_in_popup”: {
“type”: “string”
}
}
}
},
“services”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“name”: {
“type”: “string”
},
“value”: {
“type”: “string”
},
“expiring”: {
“type”: “boolean”
}
}
}
},
“tail”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“lat”: {
“type”: “string”
},
“lng”: {
“type”: “string”
}
}
}
},
“distance_unit_hour”: {
“type”: “string”
},
“device_data”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “string”
},
“user_id”: {
“type”: “null”
},
“traccar_device_id”: {
“type”: “string”
},
“icon_id”: {
“type”: “string”
},
“active”: {
“type”: “string”
},
“deleted”: {
“type”: “string”
},
“name”: {
“type”: “string”
},
“imei”: {
“type”: “string”
},
“fuel_measurement_id”: {
“type”: “string”
},
“fuel_quantity”: {
“type”: “string”
},
“fuel_price”: {
“type”: “string”
},
“fuel_per_km”: {
“type”: “string”
},
“sim_number”: {
“type”: “string”
},
“device_model”: {
“type”: “string”
},
“plate_number”: {
“type”: “string”
},
“vin”: {
“type”: “string”
},
“registration_number”: {
“type”: “string”
},
“object_owner”: {
“type”: “string”
},
“expiration_date”: {
“type”: “string”
},
“tail_color”: {
“type”: “string”
},
“tail_length”: {
“type”: “string”
},
“engine_hours”: {
“type”: “string”
},
“detect_engine”: {
“type”: “string”
},
“min_moving_speed”: {
“type”: “string”
},
“min_fuel_fillings”: {
“type”: “string”
},
“min_fuel_thefts”: {
“type”: “string”
},
“snap_to_road”: {
“type”: “string”
},
“created_at”: {
“type”: “string”
},
“updated_at”: {
“type”: “string”
},
“pivot”: {
“type”: “object”,
“properties”: {
“user_id”: {
“type”: “string”
},
“device_id”: {
“type”: “string”
},
“group_id”: {
“type”: “null”
},
“current_driver_id”: {
“type”: “string”
},
“active”: {
“type”: “string”
},
“timezone_id”: {
“type”: “null”
}
}
},
“group_id”: {
“type”: “null”
},
“current_driver_id”: {
“type”: “string”
},
“users”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“email”: {
“type”: “string”
}
}
}
}
}
},
“unit_of_distance”: {
“type”: “string”
},
“unit_of_altitude”: {
“type”: “string”
},
“unit_of_capacity”: {
“type”: “string”
},
“stop_duration”: {
“type”: “string”
},
“moved_timestamp”: {
“type”: “integer”
},
“engine_status”: {
“type”: [
“boolean”,
“null”
]
},
“icon_type”: {
“type”: “string”
},
“icon_color”: {
“type”: “string”
},
“icon_colors”: {
“type”: “object”,
“properties”: {
“moving”: {
“type”: “string”
},
“stopped”: {
“type”: “string”
},
“offline”: {
“type”: “string”
},
“engine”: {
“type”: “string”
}
}
}
}
}
}
}
}
},
“examples”: {
“application/json”: [
{
“title”: “Ungrouped”,
“items”: [
{
“id”: 3,
“name”: “Device name”,
“online”: “offline”,
“alarm”: “”,
“time”: “2016-04-29 21:01:26”,
“timestamp”: 1461956486,
“acktimestamp”: 0,
“speed”: 0,
“lat”: 55.922996,
“lng”: 23.3466906,
“course”: “0”,
“power”: “-“,
“altitude”: 175,
“address”: “-“,
“protocol”: “osmand”,
“driver”: “Drive first”,
“sensors”: [
{
“name”: “Sensor test”,
“value”: “- nn”,
“show_in_popup”: “0”
},
{
“name”: “test acc”,
“value”: “- nn”,
“show_in_popup”: “1”
}
],
“services”: [
{
“name”: “Test service”,
“value”: “Engine hours Left (1000 )”
}
],
“tail”: [
{
“lat”: “55.91986482”,
“lng”: “23.3255625”
},
{
“lat”: “55.91590619”,
“lng”: “23.33778733”
},
{
“lat”: “55.91928624”,
“lng”: “23.34572509”
},
{
“lat”: “55.92336524”,
“lng”: “23.34666575”
},
{
“lat”: “55.92297793”,
“lng”: “23.34665713”
}
],
“distance_unit_hour”: “kph”,
“device_data”: {
“id”: “3”,
“user_id”: null,
“traccar_device_id”: “3”,
“icon_id”: “8”,
“active”: “1”,
“deleted”: “0”,
“name”: “Device name”,
“imei”: “789832”,
“fuel_measurement_id”: “1”,
“fuel_quantity”: “0.00”,
“fuel_price”: “0.00”,
“fuel_per_km”: “0.00”,
“sim_number”: “”,
“device_model”: “”,
“plate_number”: “”,
“vin”: “”,
“registration_number”: “”,
“object_owner”: “”,
“expiration_date”: “0000-00-00”,
“tail_color”: “#33cc33”,
“tail_length”: “5”,
“engine_hours”: “gps”,
“detect_engine”: “gps”,
“min_moving_speed”: “6”,
“min_fuel_fillings”: “10”,
“min_fuel_thefts”: “10”,
“snap_to_road”: “0”,
“created_at”: “2016-04-25 16:21:19”,
“updated_at”: “2016-06-26 15:52:46”,
“pivot”: {
“user_id”: “2”,
“device_id”: “3”,
“group_id”: null,
“current_driver_id”: “1”,
“active”: “1”,
“timezone_id”: null
},
“group_id”: null,
“current_driver_id”: “1”
}
}
]
}
]
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/destroy_sensor”: {
“get”: {
“operationId”: “GET_api-destroy_sensor”,
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
},
{
“$ref”: “#/parameters/trait:sensorId:sensor_id”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“$ref”: “#/definitions/success”
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/add_user_sms_template”: {
“post”: {
“operationId”: “POST_api-add_user_sms_template”,
“consumes”: [
“multipart/form-data”
],
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“status”: {
“type”: “integer”
},
“item”: {
“$ref”: “#/definitions/smstemplate”
}
}
},
“examples”: {
“application/json”: {
“status”: 1,
“item”: {
“id”: 2,
“user_id”: 2,
“title”: “GPRS Title”,
“message”: “message content”,
“updated_at”: “2016-06-26 17:41:43”,
“created_at”: “2016-06-26 17:41:43”
}
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/destroy_alert”: {
“get”: {
“operationId”: “GET_api-destroy_alert”,
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
},
{
“$ref”: “#/parameters/trait:alertId:alert_id”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“$ref”: “#/definitions/success”
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/change_active_geofence”: {
“get”: {
“operationId”: “GET_api-change_active_geofence”,
“produces”: [
“application/json”
],
“parameters”: [
{
“name”: “body”,
“in”: “body”,
“schema”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: [
“integer”,
“array”
],
“items”: {
“type”: “integer”
}
},
“active”: {
“type”: “boolean”
}
}
}
},
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“$ref”: “#/definitions/success”
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/destroy_map_icon”: {
“get”: {
“operationId”: “GET_api-destroy_map_icon”,
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
},
{
“$ref”: “#/parameters/trait:mapIconId:map_icon_id”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“$ref”: “#/definitions/success”
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/send_gprs_command”: {
“post”: {
“operationId”: “POST_api-send_gprs_command”,
“consumes”: [
“multipart/form-data”
],
“produces”: [
“application/json”
],
“parameters”: [
{
“name”: “device_id”,
“in”: “formData”,
“type”: “integer”
},
{
“name”: “type”,
“in”: “formData”,
“type”: “string”
},
{
“name”: “message”,
“in”: “formData”,
“type”: “string”
},
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“$ref”: “#/definitions/success”
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/get_user_sms_message”: {
“get”: {
“operationId”: “GET_api-get_user_sms_message”,
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
},
{
“$ref”: “#/parameters/trait:userSmsTemplateId:user_sms_template_id”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“status”: {
“type”: “integer”
},
“message”: {
“type”: “string”
}
}
},
“examples”: {
“application/json”: {
“status”: 1,
“message”: “message content”
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/get_user_drivers”: {
“get”: {
“operationId”: “GET_api-get_user_drivers”,
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“items”: {
“type”: “object”,
“properties”: {
“drivers”: {
“allOf”: [
{
“$ref”: “#/definitions/pagination”
},
{
“type”: “object”,
“properties”: {
“data”: {
“type”: “array”,
“items”: {
“$ref”: “#/definitions/driver”
}
}
}
}
]
}
}
},
“status”: {
“type”: “integer”
}
}
},
“examples”: {
“application/json”: {
“items”: {
“drivers”: {
“total”: 1,
“per_page”: 5,
“current_page”: 1,
“last_page”: 1,
“next_page_url”: null,
“prev_page_url”: null,
“from”: 1,
“to”: 1,
“data”: [
{
“id”: “1”,
“user_id”: “2”,
“device_id”: “3”,
“device_port”: null,
“name”: “Driver name”,
“rfid”: “”,
“phone”: “”,
“email”: “”,
“description”: “”,
“created_at”: “2016-04-27 22:18:25”,
“updated_at”: “2016-04-27 22:18:25”,
“device”: {
“id”: “3”,
“user_id”: null,
“traccar_device_id”: “3”,
“icon_id”: “8”,
“active”: “1”,
“deleted”: “0”,
“name”: “Device name”,
“imei”: “789832”,
“fuel_measurement_id”: “1”,
“fuel_quantity”: “0.00”,
“fuel_price”: “0.00”,
“fuel_per_km”: “0.00”,
“sim_number”: “”,
“device_model”: “”,
“plate_number”: “”,
“vin”: “”,
“registration_number”: “”,
“object_owner”: “”,
“expiration_date”: “0000-00-00”,
“tail_color”: “#33cc33”,
“tail_length”: “5”,
“engine_hours”: “gps”,
“detect_engine”: “gps”,
“min_moving_speed”: “6”,
“min_fuel_fillings”: “10”,
“min_fuel_thefts”: “10”,
“snap_to_road”: “0”,
“created_at”: “2016-04-25 16:21:19”,
“updated_at”: “2016-06-09 13:51:59”
}
}
],
“url”: “/api/get_user_drivers”
}
},
“status”: 1
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/destroy_user_gprs_template”: {
“get”: {
“operationId”: “GET_api-destroy_user_gprs_template”,
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
},
{
“$ref”: “#/parameters/trait:userGprsTemplateId:user_gprs_template_id”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“$ref”: “#/definitions/success”
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/edit_custom_event”: {
“post”: {
“operationId”: “POST_api-edit_custom_event”,
“consumes”: [
“application/json”
],
“produces”: [
“application/json”
],
“parameters”: [
{
“name”: “body”,
“in”: “body”,
“schema”: {
“allOf”: [
{
“$ref”: “#/definitions/objectID”
},
{
“$ref”: “#/definitions/customeventpost”
}
]
}
},
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“$ref”: “#/definitions/success”
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/get_devices_latest”: {
“get”: {
“operationId”: “GET_api-get_devices_latest”,
“description”: “Return only devices whose information has changed, all the response returns \”time\”, the time needed to transmit the next request.”,
“produces”: [
“application/json”
],
“parameters”: [
{
“name”: “time”,
“in”: “query”,
“required”: false,
“type”: “integer”
},
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“items”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“name”: {
“type”: “string”
},
“online”: {
“type”: “string”
},
“alarm”: {
“type”: “string”
},
“time”: {
“type”: “string”
},
“timestamp”: {
“type”: “integer”
},
“acktimestamp”: {
“type”: “integer”
},
“speed”: {
“type”: “integer”
},
“lat”: {
“type”: “number”
},
“lng”: {
“type”: “number”
},
“course”: {
“type”: “string”
},
“power”: {
“type”: “string”
},
“altitude”: {
“type”: “integer”
},
“address”: {
“type”: “string”
},
“protocol”: {
“type”: “string”
},
“driver”: {
“type”: “string”
},
“sensors”: {
“type”: “string”
},
“services”: {
“type”: “string”
},
“tail”: {
“type”: “string”
},
“distance_unit_hour”: {
“type”: “string”
},
“device_data”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “string”
},
“traccar_device_id”: {
“type”: “string”
},
“icon_id”: {
“type”: “string”
},
“active”: {
“type”: “string”
},
“deleted”: {
“type”: “string”
},
“name”: {
“type”: “string”
},
“imei”: {
“type”: “string”
},
“fuel_measurement_id”: {
“type”: “string”
},
“fuel_quantity”: {
“type”: “string”
},
“fuel_price”: {
“type”: “string”
},
“fuel_per_km”: {
“type”: “string”
},
“sim_number”: {
“type”: “string”
},
“device_model”: {
“type”: “string”
},
“plate_number”: {
“type”: “string”
},
“vin”: {
“type”: “string”
},
“registration_number”: {
“type”: “string”
},
“object_owner”: {
“type”: “string”
},
“expiration_date”: {
“type”: “string”
},
“tail_color”: {
“type”: “string”
},
“tail_length”: {
“type”: “string”
},
“engine_hours”: {
“type”: “string”
},
“detect_engine”: {
“type”: “string”
},
“min_moving_speed”: {
“type”: “string”
},
“min_fuel_fillings”: {
“type”: “string”
},
“min_fuel_thefts”: {
“type”: “string”
},
“snap_to_road”: {
“type”: “string”
},
“created_at”: {
“type”: “string”
},
“updated_at”: {
“type”: “string”
},
“pivot”: {
“type”: “object”,
“properties”: {
“user_id”: {
“type”: “string”
},
“device_id”: {
“type”: “string”
},
“group_id”: {
“type”: “null”
},
“current_driver_id”: {
“type”: “string”
},
“active”: {
“type”: “string”
},
“timezone_id”: {
“type”: “null”
}
}
},
“group_id”: {
“type”: “null”
},
“current_driver_id”: {
“type”: “string”
}
}
},
“unit_of_distance”: {
“type”: “string”
},
“unit_of_altitude”: {
“type”: “string”
},
“unit_of_capacity”: {
“type”: “string”
},
“stop_duration”: {
“type”: “string”
},
“moved_timestamp”: {
“type”: “integer”
},
“engine_status”: {
“type”: [
“boolean”,
“null”
]
},
“icon_type”: {
“type”: “string”
},
“icon_color”: {
“type”: “string”
},
“icon_colors”: {
“type”: “object”,
“properties”: {
“moving”: {
“type”: “string”
},
“stopped”: {
“type”: “string”
},
“offline”: {
“type”: “string”
},
“engine”: {
“type”: “string”
}
}
},
“icon”: {
“type”: “object”,
“properties”: {
“path”: {
“type”: “string”
},
“width”: {
“type”: “string”
},
“height”: {
“type”: “string”
},
“type”: {
“type”: “string”
}
}
},
“detect_engine”: {
“type”: “string”
},
“engine_hours”: {
“type”: “string”
},
“total_distance”: {
“type”: “string”
},
“parameters”: {
“type”: “array”,
“items”: {
“type”: [
“string”,
“array”
],
“items”: {}
}
}
}
}
},
“events”: {
“type”: “array”,
“items”: {
“allOf”: [
{
“$ref”: “#/definitions/event”
},
{
“type”: “object”,
“properties”: {
“geofence”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“name”: {
“type”: “string”
}
}
}
}
},
{
“type”: “object”,
“properties”: {
“device”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“name”: {
“type”: “string”
}
}
}
}
}
]
}
},
“time”: {
“type”: “integer”
},
“version”: {
“type”: “string”
}
}
},
“examples”: {
“application/json”: {
“items”: [
{
“id”: 3,
“name”: “Device name”,
“online”: “offline”,
“alarm”: “”,
“time”: “2016-04-29 21:01:26”,
“timestamp”: 1461956486,
“acktimestamp”: 0,
“speed”: 0,
“lat”: 55.922996,
“lng”: 23.3466906,
“course”: “0”,
“power”: “-“,
“altitude”: 175,
“address”: “-“,
“protocol”: “osmand”,
“driver”: “Drive first”,
“sensors”: “[\n {\n \”name\”: \”Sensor test\”,\n \”value\”: \”- nn\”,\n \”show_in_popup\”: \”0\”\n },\n {\n \”name\”: \”test acc\”,\n \”value\”: \”- nn\”,\n \”show_in_popup\”: \”1\”\n }\n]”,
“services”: “[\n {\n \”name\”: \”Test service\”,\n \”value\”: \”Engine hours Left (1000 )\”\n }\n]”,
“tail”: “[\n {\n \”lat\”: \”55.91986482\”,\n \”lng\”: \”23.3255625\”\n },\n {\n \”lat\”: \”55.91590619\”,\n \”lng\”: \”23.33778733\”\n },\n {\n \”lat\”: \”55.91928624\”,\n \”lng\”: \”23.34572509\”\n },\n {\n \”lat\”: \”55.92336524\”,\n \”lng\”: \”23.34666575\”\n },\n {\n \”lat\”: \”55.92297793\”,\n \”lng\”: \”23.34665713\”\n }\n]”,
“distance_unit_hour”: “kph”,
“device_data”: {
“id”: “3”,
“traccar_device_id”: “3”,
“icon_id”: “8”,
“active”: “1”,
“deleted”: “0”,
“name”: “Device name”,
“imei”: “789832”,
“fuel_measurement_id”: “1”,
“fuel_quantity”: “0.00”,
“fuel_price”: “0.00”,
“fuel_per_km”: “0.00”,
“sim_number”: “”,
“device_model”: “”,
“plate_number”: “”,
“vin”: “”,
“registration_number”: “”,
“object_owner”: “”,
“expiration_date”: “0000-00-00”,
“tail_color”: “#33cc33”,
“tail_length”: “5”,
“engine_hours”: “gps”,
“detect_engine”: “gps”,
“min_moving_speed”: “6”,
“min_fuel_fillings”: “10”,
“min_fuel_thefts”: “10”,
“snap_to_road”: “0”,
“created_at”: “2016-04-25 16:21:19”,
“updated_at”: “2016-06-26 15:52:46”,
“pivot”: {
“user_id”: “2”,
“device_id”: “3”,
“group_id”: null,
“current_driver_id”: “1”,
“active”: “1”,
“timezone_id”: null
},
“group_id”: null,
“current_driver_id”: “1”
}
}
],
“events”: [],
“time”: 1466992735,
“version”: “2.5.1”
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/edit_route”: {
“post”: {
“operationId”: “POST_api-edit_route”,
“consumes”: [
“multipart/form-data”
],
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“$ref”: “#/definitions/success”
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/change_active_route”: {
“get”: {
“operationId”: “GET_api-change_active_route”,
“produces”: [
“application/json”
],
“parameters”: [
{
“name”: “body”,
“in”: “body”,
“schema”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: [
“integer”,
“array”
],
“items”: {
“type”: “integer”
}
},
“active”: {
“type”: “boolean”
}
}
}
},
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“$ref”: “#/definitions/success”
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/delete_history_positions”: {
“post”: {
“operationId”: “POST_api-delete_history_positions”,
“parameters”: [
{
“name”: “body”,
“in”: “body”,
“schema”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: [
“integer”,
“array”
],
“items”: {
“type”: “integer”
}
}
}
}
},
{
“$ref”: “#/parameters/trait:deviceId:device_id”
},
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“status”: {
“type”: “integer”
}
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/add_geofence”: {
“post”: {
“operationId”: “POST_api-add_geofence”,
“description”: “\”polygon\” first and last coordinate must be the same as it closes Polygone.”,
“consumes”: [
“multipart/form-data”
],
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“$ref”: “#/definitions/success”
},
“examples”: {
“application/json”: {
“status”: 1
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/change_active_device”: {
“get”: {
“operationId”: “GET_api-change_active_device”,
“produces”: [
“application/json”
],
“parameters”: [
{
“name”: “body”,
“in”: “body”,
“schema”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: [
“integer”,
“array”
],
“items”: {
“type”: “integer”
}
},
“active”: {
“type”: “boolean”
}
}
}
},
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“$ref”: “#/definitions/success”
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/edit_user_gprs_template”: {
“post”: {
“operationId”: “POST_api-edit_user_gprs_template”,
“consumes”: [
“multipart/form-data”
],
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“$ref”: “#/definitions/success”
},
“examples”: {
“application/json”: {
“status”: 1,
“item”: {
“id”: 2,
“user_id”: 2,
“title”: “GPRS Title”,
“message”: “message content”,
“updated_at”: “2016-06-26 17:41:43”,
“created_at”: “2016-06-26 17:41:43”
}
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/add_route”: {
“post”: {
“operationId”: “POST_api-add_route”,
“consumes”: [
“multipart/form-data”
],
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“$ref”: “#/definitions/success”
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/change_active_map_icon”: {
“get”: {
“operationId”: “GET_api-change_active_map_icon”,
“produces”: [
“application/json”
],
“parameters”: [
{
“name”: “body”,
“in”: “body”,
“schema”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: [
“integer”,
“array”
],
“items”: {
“type”: “integer”
}
},
“active”: {
“type”: “boolean”
}
}
}
},
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“$ref”: “#/definitions/success”
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/get_task/{id}”: {
“parameters”: [
{
“name”: “id”,
“in”: “path”,
“required”: true,
“type”: “integer”
}
],
“get”: {
“operationId”: “GET_api-get_task-id”,
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“status”: {
“type”: “integer”
},
“item”: {
“$ref”: “#/definitions/task”
}
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/add_user_driver_data”: {
“get”: {
“operationId”: “GET_api-add_user_driver_data”,
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“devices”: {
“type”: “object”,
“properties”: {
“key”: {
“type”: “string”
}
}
},
“status”: {
“type”: “integer”
}
}
},
“examples”: {
“application/json”: {
“devices”: {
“3”: “Device name”
},
“status”: 1
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/edit_task/{id}”: {
“parameters”: [
{
“name”: “id”,
“in”: “path”,
“required”: true,
“type”: “integer”
}
],
“post”: {
“operationId”: “POST_api-edit_task-id”,
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“status”: {
“type”: “integer”
}
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/edit_device”: {
“post”: {
“operationId”: “POST_api-edit_device”,
“produces”: [
“application/json”
],
“parameters”: [
{
“name”: “device_id”,
“in”: “query”,
“required”: true,
“type”: “integer”
},
{
“name”: “body”,
“in”: “body”,
“schema”: {
“type”: “object”,
“properties”: {
“name”: {
“type”: “string”
},
“imei”: {
“type”: “string”
},
“icon_id”: {
“type”: “integer”
},
“fuel_measurement_id”: {
“type”: “integer”
},
“tail_length”: {
“type”: “number”
},
“min_moving_speed”: {
“type”: “number”
},
“min_fuel_fillings”: {
“type”: “number”
},
“min_fuel_thefts”: {
“type”: “number”
},
“fuel_quantity”: {
“type”: “number”
},
“fuel_price”: {
“type”: “number”
},
“group_id”: {
“type”: “integer”
},
“device_icons_type”: {
“type”: “string”,
“enum”: [
“arrow”,
“icon”,
“rotating”
]
},
“timezone_id”: {
“type”: “integer”,
“default”: 0
},
“icon_moving”: {
“type”: “string”,
“enum”: [
“green”,
“yellow”,
“red”,
“blue”,
“orange”,
“black”
],
“default”: “green”
},
“icon_stopped”: {
“type”: “string”,
“enum”: [
“green”,
“yellow”,
“red”,
“blue”,
“orange”,
“black”
],
“default”: “red”
},
“icon_offline”: {
“type”: “string”,
“enum”: [
“green”,
“yellow”,
“red”,
“blue”,
“orange”,
“black”
],
“default”: “red”
},
“icon_engine”: {
“type”: “string”,
“enum”: [
“green”,
“yellow”,
“red”,
“blue”,
“orange”,
“black”
],
“default”: “yellow”
},
“sim_number”: {
“type”: “string”
},
“vin”: {
“type”: “string”
},
“device_model”: {
“type”: “string”
},
“plate_number”: {
“type”: “string”
},
“registration_number”: {
“type”: “string”
},
“object_owner”: {
“type”: “string”
},
“additional_notes”: {
“type”: “string”
}
},
“required”: [
“name”,
“imei”,
“icon_id”,
“fuel_measurement_id”,
“tail_length”,
“min_moving_speed”,
“min_fuel_fillings”,
“min_fuel_thefts”
]
}
},
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“$ref”: “#/definitions/success”
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/send_command_data”: {
“get”: {
“operationId”: “GET_api-send_command_data”,
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“devices_sms”: {
“type”: “array”,
“items”: {
“type”: “object”
}
},
“devices_gprs”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“value”: {
“type”: “string”
}
}
}
},
“sms_templates”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “string”
},
“title”: {
“type”: “string”
},
“message”: {
“type”: [
“null”,
“string”
]
}
}
}
},
“gprs_templates”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “string”
},
“title”: {
“type”: “string”
},
“message”: {
“type”: [
“null”,
“string”
]
}
}
}
},
“commands”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “string”
},
“value”: {
“type”: “string”
}
}
}
},
“units”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “string”
},
“value”: {
“type”: “string”
}
}
}
},
“number_index”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“value”: {
“type”: “string”
}
}
}
},
“actions”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“value”: {
“type”: “string”
}
}
}
},
“devices_protocols”: {
“type”: “object”,
“properties”: {
“3”: {
“type”: “string”
}
}
},
“commands_all”: {
“type”: “object”,
“properties”: {
“default”: {
“type”: “object”,
“properties”: {
“engineStop”: {
“type”: “string”
},
“engineResume”: {
“type”: “string”
},
“alarmArm”: {
“type”: “string”
},
“alarmDisarm”: {
“type”: “string”
},
“positionSingle”: {
“type”: “string”
},
“positionPeriodic”: {
“type”: “string”
},
“positionStop”: {
“type”: “string”
},
“movementAlarm”: {
“type”: “string”
},
“setTimezone”: {
“type”: “string”
},
“rebootDevice”: {
“type”: “string”
},
“sendSms”: {
“type”: “string”
},
“custom”: {
“type”: “string”
}
}
},
“watch”: {
“type”: “object”,
“properties”: {
“sosNumber”: {
“type”: “string”
},
“alarmSos”: {
“type”: “string”
},
“alarmBattery”: {
“type”: “string”
},
“alarmRemove”: {
“type”: “string”
},
“rebootDevice”: {
“type”: “string”
},
“silenceTime”: {
“type”: “string”
},
“alarmClock”: {
“type”: “string”
},
“setPhonebook”: {
“type”: “string”
}
}
},
“pt502”: {
“type”: “object”,
“properties”: {
“engineStop”: {
“type”: “string”
},
“engineResume”: {
“type”: “string”
}
}
}
}
},
“status”: {
“type”: “integer”
}
}
},
“examples”: {
“application/json”: {
“devices_sms”: [],
“devices_gprs”: [
{
“id”: 3,
“value”: “Device name”
}
],
“sms_templates”: [
{
“id”: “0”,
“title”: “No template”,
“message”: null
},
{
“id”: “1”,
“title”: “Template title”,
“message”: “Template message”
}
],
“gprs_templates”: [
{
“id”: “0”,
“title”: “No template”,
“message”: null
},
{
“id”: “1”,
“title”: “Template title”,
“message”: “Template message”
}
],
“commands”: [
{
“id”: “engineStop”,
“value”: “Engine stop”
},
{
“id”: “engineResume”,
“value”: “Engine resume”
},
{
“id”: “alarmArm”,
“value”: “Alarm arm”
},
{
“id”: “alarmDisarm”,
“value”: “Alarm disarm”
},
{
“id”: “positionSingle”,
“value”: “Position single”
},
{
“id”: “positionPeriodic”,
“value”: “Periodic reporting”
},
{
“id”: “positionStop”,
“value”: “Stop reporting”
},
{
“id”: “movementAlarm”,
“value”: “Movement alarm”
},
{
“id”: “setTimezone”,
“value”: “Set timezone”
},
{
“id”: “rebootDevice”,
“value”: “Reboot device”
},
{
“id”: “sendSms”,
“value”: “Send sms”
},
{
“id”: “custom”,
“value”: “Custom command”
}
],
“units”: [
{
“id”: “second”,
“value”: “Second”
},
{
“id”: “minute”,
“value”: “Minute”
},
{
“id”: “hour”,
“value”: “Hour”
}
],
“number_index”: [
{
“id”: 1,
“value”: “First”
},
{
“id”: 2,
“value”: “Second”
},
{
“id”: 3,
“value”: “Third”
},
{
“id”: 0,
“value”: “Three SOS numbers at the same time”
}
],
“actions”: [
{
“id”: 1,
“value”: “On”
},
{
“id”: 0,
“value”: “Off”
}
],
“devices_protocols”: {
“3”: “osmand”
},
“commands_all”: {
“default”: {
“engineStop”: “Engine stop”,
“engineResume”: “Engine resume”,
“alarmArm”: “Alarm arm”,
“alarmDisarm”: “Alarm disarm”,
“positionSingle”: “Position single”,
“positionPeriodic”: “Periodic reporting”,
“positionStop”: “Stop reporting”,
“movementAlarm”: “Movement alarm”,
“setTimezone”: “Set timezone”,
“rebootDevice”: “Reboot device”,
“sendSms”: “Send sms”,
“custom”: “Custom command”
},
“watch”: {
“sosNumber”: “SOS number setting”,
“alarmSos”: “SOS message alarm”,
“alarmBattery”: “Low battery alarm”,
“alarmRemove”: “Alarm of taking watch”,
“rebootDevice”: “Restart”,
“silenceTime”: “Time interval setting of silence time”,
“alarmClock”: “Alarm clock setting order”,
“setPhonebook”: “Phone book setting order”
},
“pt502”: {
“engineStop”: “Engine stop”,
“engineResume”: “Engine resume”
}
},
“status”: 1
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/get_history_messages”: {
“get”: {
“operationId”: “GET_api-get_history_messages”,
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
},
{
“$ref”: “#/parameters/trait:deviceId:device_id”
},
{
“$ref”: “#/parameters/trait:dateTime:from_date”
},
{
“$ref”: “#/parameters/trait:dateTime:from_time”
},
{
“$ref”: “#/parameters/trait:dateTime:to_date”
},
{
“$ref”: “#/parameters/trait:dateTime:to_time”
},
{
“$ref”: “#/parameters/trait:pagination:page”
},
{
“$ref”: “#/parameters/trait:pagination:limit”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“messages”: {
“type”: “object”,
“properties”: {
“total”: {
“type”: “integer”
},
“per_page”: {
“type”: “integer”
},
“current_page”: {
“type”: “integer”
},
“last_page”: {
“type”: “integer”
},
“next_page_url”: {
“type”: [
“string”,
“null”
]
},
“prev_page_url”: {
“type”: [
“string”,
“null”
]
},
“from”: {
“type”: “integer”
},
“to”: {
“type”: “integer”
},
“data”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: [
“integer”,
“string”
]
},
“device_id”: {
“type”: [
“integer”,
“string”
]
},
“altitude”: {
“type”: [
“number”,
“string”
]
},
“course”: {
“type”: [
“number”,
“string”
]
},
“latitude”: {
“type”: [
“number”,
“string”
]
},
“longitude”: {
“type”: [
“number”,
“string”
]
},
“other”: {
“type”: “string”
},
“power”: {
“type”: [
“string”,
“null”
]
},
“speed”: {
“type”: [
“number”,
“string”
]
},
“time”: {
“type”: “string”
},
“server_time”: {
“type”: “string”
},
“valid”: {
“type”: “string”
},
“distance”: {
“type”: “string”
},
“protocol”: {
“type”: “string”
},
“sensor_id”: {
“type”: [
“integer”,
“string”
]
},
“sort”: {
“type”: [
“integer”,
“string”
]
},
“other_arr”: {
“type”: “array”,
“items”: {
“type”: “string”
}
},
“popup_sensors”: {
“type”: “object”,
“properties”: {
“key”: {
“type”: “object”,
“properties”: {
“name”: {
“type”: “string”
},
“value”: {
“type”: “string”
}
}
}
}
},
“sensors_value”: {
“type”: “object”,
“properties”: {
“key”: {
“type”: “string”
}
}
}
}
}
},
“url”: {
“type”: “string”
}
}
},
“sensors”: {
“type”: “array”,
“items”: {
“$ref”: “#/definitions/sensor”
}
},
“pagination_limits”: {
“type”: “object”,
“properties”: {
“key”: {
“type”: “integer”
}
}
},
“limit”: {
“type”: “integer”
},
“sorting”: {
“type”: “string”
},
“status”: {
“type”: “integer”
}
}
},
“examples”: {
“application/json”: {
“messages”: {
“total”: 104,
“per_page”: 50,
“current_page”: 1,
“last_page”: 3,
“next_page_url”: “/?page=2”,
“prev_page_url”: null,
“from”: 1,
“to”: 50,
“data”: [
{
“id”: “1”,
“device_id”: “3”,
“altitude”: 189,
“course”: “265.200012207031”,
“latitude”: “55.92291271”,
“longitude”: “23.34606776”,
“other”: “73.078.63.151.5“,
“power”: null,
“speed”: 8,
“time”: “2016-04-25 18:53:39”,
“server_time”: “2016-04-25 16:53:39”,
“valid”: “1”,
“distance”: “0”,
“protocol”: “osmand”,
“sensor_id”: “1”,
“sort”: 1461603219,
“other_arr”: [
“battery: 73.0”,
“ip: 78.63.151.5”
],
“popup_sensors”: {
“2”: {
“name”: “test acc”,
“value”: “- nn”
}
},
“sensors_value”: {
“2”: “- nn”
}
},
{
“id”: “2”,
“device_id”: “3”,
“altitude”: 217,
“course”: “148.699996948242”,
“latitude”: “55.92245666”,
“longitude”: “23.34677656”,
“other”: “73.078.63.151.5“,
“power”: null,
“speed”: 4,
“time”: “2016-04-25 18:55:48”,
“server_time”: “2016-04-25 16:55:48”,
“valid”: “1”,
“distance”: “0.067153151821832”,
“protocol”: “osmand”,
“sensor_id”: “2”,
“sort”: 1461603348,
“other_arr”: [
“battery: 73.0”,
“ip: 78.63.151.5”
],
“popup_sensors”: {
“2”: {
“name”: “test acc”,
“value”: “- nn”
}
},
“sensors_value”: {
“2”: “- nn”
}
}
],
“url”: “/api/get_history_messages”
},
“sensors”: [
{
“id”: “2”,
“user_id”: “2”,
“device_id”: “3”,
“name”: “test acc”,
“type”: “acc”,
“tag_name”: “tag”,
“add_to_history”: “0”,
“on_value”: “on”,
“off_value”: “off”,
“shown_value_by”: null,
“fuel_tank_name”: null,
“full_tank”: null,
“full_tank_value”: null,
“min_value”: null,
“max_value”: null,
“formula”: null,
“odometer_value_by”: null,
“odometer_value”: null,
“odometer_value_unit”: “km”,
“temperature_max”: null,
“temperature_max_value”: null,
“temperature_min”: null,
“temperature_min_value”: null,
“value”: “-“,
“value_formula”: “0”,
“show_in_popup”: “1”,
“unit_of_measurement”: “nn”,
“on_tag_value”: null,
“off_tag_value”: null,
“on_type”: null,
“off_type”: null,
“calibrations”: null
}
],
“pagination_limits”: {
“50”: 50,
“100”: 100,
“200”: 200,
“400”: 400
},
“limit”: 50,
“sorting”: “asc”,
“status”: 1
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/get_tasks_priorities”: {
“get”: {
“operationId”: “GET_api-get_tasks_priorities”,
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“status”: {
“type”: “integer”
},
“items”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“title”: {
“type”: “string”
}
}
}
}
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/edit_service_data”: {
“get”: {
“operationId”: “GET_api-edit_service_data”,
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
},
{
“$ref”: “#/parameters/trait:serviceId:service_id”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“device_id”: {
“type”: “integer”
},
“odometer_value”: {
“type”: “string”
},
“engine_hours_value”: {
“type”: “string”
},
“expiration_by”: {
“$ref”: “#/definitions/servicetypes”
},
“item”: {
“$ref”: “#/definitions/service”
},
“status”: {
“type”: “integer”
}
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/get_routes”: {
“get”: {
“operationId”: “GET_api-get_routes”,
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
},
“default”: {
“description”: “”
}
}
}
},
“/api/admin/device/{deviceId}/user”: {
“parameters”: [
{
“name”: “deviceId”,
“in”: “path”,
“required”: true,
“type”: “string”
}
],
“post”: {
“operationId”: “POST_api-admin-device-deviceId-user”,
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“status”: {
“type”: “integer”
}
}
}
}
},
“security”: [
{
“user_api_hash”: []
}
]
},
“delete”: {
“operationId”: “DELETE_api-admin-device-deviceId-user”,
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“status”: {
“type”: “integer”
}
}
}
}
},
“security”: [
{
“user_api_hash”: []
}
]
}
},
“/api/admin/devices”: {
“get”: {
“operationId”: “GET_api-admin-devices”,
“parameters”: [
{
“name”: “s”,
“in”: “query”,
“description”: “value will be searched in: name, imei, sim_number, vin, plate_number, registration_number, object_owner, device_model, additional_notes”,
“type”: “string”
},
{
“name”: “id”,
“in”: “query”,
“description”: “Results will be filtered by the specified id”,
“type”: “string”
},
{
“name”: “imei”,
“in”: “query”,
“description”: “Results will be filtered by the specified imei”,
“type”: “string”
},
{
“name”: “sim_number”,
“in”: “query”,
“description”: “Results will be filtered by the specified sim number”,
“type”: “string”
},
{
“name”: “includes”,
“in”: “query”,
“description”: “Specify what additional information should be included (separated by commas)”,
“type”: “string”,
“enum”: [
“position”,
“icon”,
“sensors”,
“services”,
“driver”
]
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“status”: {
“type”: “integer”
},
“data”: {
“type”: “array”,
“items”: {
“$ref”: “#/definitions/device-lookup”
}
},
“pagination”: {
“type”: “object”,
“properties”: {
“total”: {
“type”: “integer”
},
“per_page”: {
“type”: “integer”
},
“current_page”: {
“type”: “integer”
},
“last_page”: {
“type”: “integer”
},
“next_page_url”: {
“type”: “null”
},
“prev_page_url”: {
“type”: “null”
}
}
}
}
}
}
},
“security”: [
{
“user_api_hash”: []
}
]
}
},
“/api/get_custom_events”: {
“get”: {
“operationId”: “GET_api-get_custom_events”,
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“items”: {
“type”: “object”,
“properties”: {
“events”: {
“allOf”: [
{
“$ref”: “#/definitions/pagination”
},
{
“type”: “object”,
“properties”: {
“data”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “string”
},
“user_id”: {
“type”: “string”
},
“protocol”: {
“type”: “string”
},
“conditions”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“tag”: {
“type”: “string”
},
“type”: {
“type”: “string”
},
“tag_value”: {
“type”: “string”
}
}
}
},
“message”: {
“type”: “string”
},
“always”: {
“type”: “string”
},
“tags”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“event_custom_id”: {
“type”: “string”
},
“tag”: {
“type”: “string”
}
}
}
}
}
}
}
}
}
]
}
}
},
“status”: {
“type”: “integer”
}
}
},
“examples”: {
“application/json”: {
“items”: {
“events”: {
“total”: 1,
“per_page”: 10,
“current_page”: 1,
“last_page”: 1,
“next_page_url”: null,
“prev_page_url”: null,
“from”: 1,
“to”: 1,
“data”: [
{
“id”: “1”,
“user_id”: “2”,
“protocol”: “osmand”,
“conditions”: [
{
“tag”: “speed”,
“type”: “2”,
“tag_value”: “110”
}
],
“message”: “Message”,
“always”: “1”,
“tags”: [
{
“event_custom_id”: “1”,
“tag”: “speed”
}
]
}
],
“url”: “/api/get_custom_events”
}
},
“status”: 1
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/add_task”: {
“post”: {
“operationId”: “POST_api-add_task”,
“parameters”: [
{
“name”: “body”,
“in”: “body”,
“schema”: {
“$ref”: “#/definitions/taskpost”
}
},
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“status”: {
“type”: “integer”
},
“item”: {
“$ref”: “#/definitions/task”
}
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/change_active_alert”: {
“get”: {
“operationId”: “GET_api-change_active_alert”,
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
},
“default”: {
“description”: “”
}
}
}
},
“/api/get_alerts”: {
“get”: {
“operationId”: “GET_api-get_alerts”,
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“status”: {
“type”: “integer”
},
“items”: {
“type”: “object”,
“properties”: {
“alerts”: {
“type”: “array”,
“items”: {
“$ref”: “#/definitions/alert”
}
}
}
}
}
},
“examples”: {
“application/json”: {
“status”: 1,
“items”: {
“alerts”: [
{
“id”: 1,
“user_id”: 2,
“active”: 1,
“name”: “Test event”,
“email”: “”,
“mobile_phone”: “”,
“overspeed_speed”: “110”,
“overspeed_distance”: “1”,
“ac_alarm”: “0”,
“created_at”: “2016-04-29 17:34:07”,
“updated_at”: “2016-04-29 19:06:23”,
“devices”: [
3
],
“drivers”: [],
“geofences”: [
{
“id”: “1”,
“zone”: “1”
},
{
“id”: “1”,
“zone”: “2”
}
],
“events_custom”: []
}
]
}
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/edit_report”: {
“post”: {
“operationId”: “POST_api-edit_report”,
“consumes”: [
“application/json”
],
“produces”: [
“application/json”
],
“parameters”: [
{
“name”: “body”,
“in”: “body”,
“schema”: {
“allOf”: [
{
“$ref”: “#/definitions/objectID”
},
{
“$ref”: “#/definitions/reportpost”
}
]
}
},
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“$ref”: “#/definitions/success”
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/get_history”: {
“get”: {
“operationId”: “GET_api-get_history”,
“produces”: [
“application/json”
],
“parameters”: [
{
“name”: “snap_to_road”,
“in”: “query”,
“required”: false,
“type”: “boolean”
},
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
},
{
“$ref”: “#/parameters/trait:deviceId:device_id”
},
{
“$ref”: “#/parameters/trait:dateTime:from_date”
},
{
“$ref”: “#/parameters/trait:dateTime:from_time”
},
{
“$ref”: “#/parameters/trait:dateTime:to_date”
},
{
“$ref”: “#/parameters/trait:dateTime:to_time”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“items”: {
“type”: “array”,
“items”: {
“$ref”: “#/definitions/historyitem”
}
},
“distance_sum”: {
“type”: “string”
},
“top_speed”: {
“type”: “string”
},
“move_duration”: {
“type”: “string”
},
“stop_duration”: {
“type”: “string”
},
“fuel_consumption”: {
“type”: “string”
},
“device”: {
“$ref”: “#/definitions/device”
},
“sensors”: {
“type”: “array”,
“items”: {
“type”: “object”
}
},
“item_class”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“value”: {
“type”: “string”
}
}
}
},
“images”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“value”: {
“type”: “string”
}
}
}
},
“sensors_values”: {
“type”: “array”,
“items”: {
“type”: “object”
}
},
“fuel_consumption_arr”: {
“type”: “array”,
“items”: {
“type”: “object”
}
},
“status”: {
“type”: “integer”
}
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/edit_service”: {
“post”: {
“operationId”: “POST_api-edit_service”,
“consumes”: [
“application/json”
],
“produces”: [
“application/json”
],
“parameters”: [
{
“name”: “body”,
“in”: “body”,
“schema”: {
“allOf”: [
{
“$ref”: “#/definitions/objectID”
},
{
“$ref”: “#/definitions/servicepost”
}
]
}
},
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“$ref”: “#/definitions/success”
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/edit_geofence”: {
“post”: {
“operationId”: “POST_api-edit_geofence”,
“description”: “\”polygon\” first and last coordinate must be the same as it closes Polygone.”,
“consumes”: [
“multipart/form-data”
],
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“$ref”: “#/definitions/success”
},
“examples”: {
“application/json”: {
“status”: 1
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/add_user_gprs_template_data”: {
“get”: {
“operationId”: “GET_api-add_user_gprs_template_data”,
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“protocols”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “string”
},
“title”: {
“type”: “string”
}
}
}
}
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/edit_user_driver_data”: {
“get”: {
“operationId”: “GET_api-edit_user_driver_data”,
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
},
{
“$ref”: “#/parameters/trait:userDriverId:user_driver_id”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“item”: {
“allOf”: [
{
“$ref”: “#/definitions/objectID”
},
{
“$ref”: “#/definitions/driverpost”
}
]
},
“devices”: {
“type”: “object”,
“properties”: {
“key”: {
“type”: “string”
}
}
},
“status”: {
“type”: “integer”
}
}
},
“examples”: {
“application/json”: {
“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
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/destroy_custom_event”: {
“get”: {
“operationId”: “GET_api-destroy_custom_event”,
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
},
{
“$ref”: “#/parameters/trait:customEventId:custom_event_id”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“$ref”: “#/definitions/success”
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/set_alert_devices”: {
“get”: {
“operationId”: “GET_api-set_alert_devices”,
“parameters”: [
{
“name”: “body”,
“in”: “body”,
“schema”: {
“type”: “object”,
“properties”: {
“devices”: {
“type”: “array”,
“items”: {
“type”: “integer”
}
}
},
“required”: [
“devices”
]
}
},
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
},
{
“$ref”: “#/parameters/trait:alertId:alert_id”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“status”: {
“type”: “integer”
}
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/destroy_task”: {
“post”: {
“operationId”: “POST_api-destroy_task”,
“parameters”: [
{
“name”: “body”,
“in”: “body”,
“schema”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
}
}
}
},
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“status”: {
“type”: “integer”
}
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/destroy_user_sms_template”: {
“get”: {
“operationId”: “GET_api-destroy_user_sms_template”,
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
},
{
“$ref”: “#/parameters/trait:userSmsTemplateId:user_sms_template_id”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“$ref”: “#/definitions/success”
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/add_user_driver”: {
“post”: {
“operationId”: “POST_api-add_user_driver”,
“consumes”: [
“multipart/form-data”
],
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“status”: {
“type”: “integer”
},
“item”: {
“type”: “object”,
“properties”: {
“name”: {
“type”: “string”
},
“user_id”: {
“type”: [
“integer”,
“string”
]
},
“updated_at”: {
“type”: “string”
},
“created_at”: {
“type”: “string”
},
“id”: {
“type”: “integer”
}
}
}
}
},
“examples”: {
“application/json”: {
“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
}
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/get_user_gprs_templates”: {
“get”: {
“operationId”: “GET_api-get_user_gprs_templates”,
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“items”: {
“type”: “object”,
“properties”: {
“user_gprs_templates”: {
“allOf”: [
{
“$ref”: “#/definitions/pagination”
},
{
“type”: “object”,
“properties”: {
“data”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“user_id”: {
“type”: “integer”
},
“title”: {
“type”: “string”
},
“message”: {
“type”: “string”
},
“created_at”: {
“type”: “string”
},
“updated_at”: {
“type”: “string”
}
}
}
}
}
}
]
}
}
},
“status”: {
“type”: “integer”
}
}
},
“examples”: {
“application/json”: {
“items”: {
“user_gprs_templates”: {
“total”: 1,
“per_page”: 10,
“current_page”: 1,
“last_page”: 1,
“next_page_url”: null,
“prev_page_url”: null,
“from”: 1,
“to”: 1,
“data”: [
{
“id”: 1,
“user_id”: 2,
“title”: “Template title”,
“message”: “Template message”,
“created_at”: “2016-06-26 17:31:48”,
“updated_at”: “2016-06-26 17:31:48”
}
],
“url”: “api/get_user_gprs_templates”
}
},
“status”: 1
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/add_device”: {
“post”: {
“operationId”: “POST_api-add_device”,
“produces”: [
“application/json”
],
“parameters”: [
{
“name”: “body”,
“in”: “body”,
“schema”: {
“type”: “object”,
“properties”: {
“name”: {
“type”: “string”
},
“imei”: {
“type”: “string”
},
“icon_id”: {
“type”: “integer”
},
“fuel_measurement_id”: {
“type”: “integer”
},
“tail_length”: {
“type”: “number”
},
“min_moving_speed”: {
“type”: “number”
},
“min_fuel_fillings”: {
“type”: “number”
},
“min_fuel_thefts”: {
“type”: “number”
},
“fuel_quantity”: {
“type”: “number”
},
“fuel_price”: {
“type”: “number”
},
“group_id”: {
“type”: “integer”
},
“device_icons_type”: {
“type”: “string”,
“enum”: [
“arrow”,
“icon”,
“rotating”
]
},
“timezone_id”: {
“type”: “integer”,
“default”: 0
},
“icon_moving”: {
“type”: “string”,
“enum”: [
“green”,
“yellow”,
“red”,
“blue”,
“orange”,
“black”
],
“default”: “green”
},
“icon_stopped”: {
“type”: “string”,
“enum”: [
“green”,
“yellow”,
“red”,
“blue”,
“orange”,
“black”
],
“default”: “red”
},
“icon_offline”: {
“type”: “string”,
“enum”: [
“green”,
“yellow”,
“red”,
“blue”,
“orange”,
“black”
],
“default”: “red”
},
“icon_engine”: {
“type”: “string”,
“enum”: [
“green”,
“yellow”,
“red”,
“blue”,
“orange”,
“black”
],
“default”: “yellow”
},
“sim_number”: {
“type”: “string”
},
“vin”: {
“type”: “string”
},
“device_model”: {
“type”: “string”
},
“plate_number”: {
“type”: “string”
},
“registration_number”: {
“type”: “string”
},
“object_owner”: {
“type”: “string”
},
“additional_notes”: {
“type”: “string”
}
},
“required”: [
“name”,
“imei”,
“icon_id”,
“fuel_measurement_id”,
“tail_length”,
“min_moving_speed”,
“min_fuel_fillings”,
“min_fuel_thefts”
]
}
},
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“$ref”: “#/definitions/success”
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/edit_setup”: {
“post”: {
“operationId”: “POST_api-edit_setup”,
“consumes”: [
“application/json”
],
“produces”: [
“application/json”
],
“parameters”: [
{
“name”: “body”,
“in”: “body”,
“schema”: {
“type”: “object”,
“properties”: {
“unit_of_distance”: {
“type”: “string”
},
“unit_of_capacity”: {
“type”: “string”
},
“unit_of_altitude”: {
“type”: “string”
},
“timezone_id”: {
“type”: “integer”
},
“groups”: {
“type”: “array”,
“description”: “”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“title”: {
“type”: “string”
}
}
}
},
“sms_gateway”: {
“type”: “integer”
},
“request_method”: {
“type”: “string”
},
“encoding”: {
“type”: “integer”
},
“authentication”: {
“type”: “integer”
},
“username”: {
“type”: “string”
},
“password”: {
“type”: “string”
},
“auth_id”: {
“type”: “string”
},
“auth_token”: {
“type”: “string”
},
“senders_phone”: {
“type”: “string”
},
“sms_gateway_url”: {
“type”: “string”
},
“week_start_day”: {
“type”: “integer”
},
“dst_type”: {
“type”: “string”,
“description”: “exact, other, automatic”
},
“date_from”: {
“type”: “string”,
“format”: “date-time”
},
“date_to”: {
“type”: “string”,
“format”: “date-time”
},
“month_from”: {
“type”: “integer”
},
“month_to”: {
“type”: “integer”
},
“week_pos_from”: {
“type”: “integer”
},
“week_pos_to”: {
“type”: “integer”
},
“week_day_from”: {
“type”: “integer”
},
“week_day_to”: {
“type”: “integer”
},
“time_from”: {
“type”: “string”,
“format”: “time”
},
“time_to”: {
“type”: “string”,
“format”: “time”
},
“dst_country_id”: {
“type”: “integer”
}
},
“required”: [
“unit_of_distance”,
“unit_of_capacity”,
“unit_of_altitude”,
“timezone_id”,
“groups”,
“sms_gateway”
]
}
},
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“$ref”: “#/definitions/success”
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/get_tasks_statuses”: {
“get”: {
“operationId”: “GET_api-get_tasks_statuses”,
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“status”: {
“type”: “integer”
},
“items”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“title”: {
“type”: “string”
}
}
}
}
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/insert.php”: {
“get”: {
“operationId”: “GET_insert-php”,
“description”: “http://[YOUR_URL]/insert.php\n

\nuniqueId – device IMEI
\nprotocol – device protocol
\naltitude – current device altitude in meters
\ncourse – current device angle from 0 to 360
\nlatitude – current device latitude
\nlongitude – current device longitude
\nspeed – current device speed in knot unit (https://en.wikipedia.org/wiki/Knot_(unit))
\nfixTime – current device time in timestamp with miliseconds
\nattributes – key:value your other parameters
“,
“parameters”: [
{
“name”: “body”,
“in”: “body”,
“schema”: {
“type”: “object”,
“properties”: {
“uniqueId”: {
“type”: “string”
},
“altitude”: {
“type”: “number”
},
“course”: {
“type”: “number”
},
“latitude”: {
“type”: “number”
},
“longitude”: {
“type”: “number”
},
“speed”: {
“type”: “number”
},
“fixTime”: {
“type”: “integer”
},
“protocol”: {
“type”: “string”
},
“attributes”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“key”: {
“type”: “string”
}
}
}
}
},
“required”: [
“uniqueId”,
“altitude”,
“course”,
“latitude”,
“longitude”,
“speed”,
“fixTime”,
“protocol”,
“attributes”
]
}
}
],
“responses”: {
“default”: {
“description”: “”,
“schema”: {}
}
}
}
},
“/api/destroy_geofence”: {
“get”: {
“operationId”: “GET_api-destroy_geofence”,
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
},
{
“$ref”: “#/parameters/trait:geofenceId:geofence_id”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“$ref”: “#/definitions/success”
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/edit_alert”: {
“post”: {
“operationId”: “POST_api-edit_alert”,
“consumes”: [
“multipart/form-data”
],
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“$ref”: “#/definitions/success”
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/add_user_sms_template_data”: {
“get”: {
“operationId”: “GET_api-add_user_sms_template_data”,
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/change_alarm_status”: {
“get”: {
“operationId”: “GET_change_alarm_status”,
“produces”: [
“application/json”
],
“parameters”: [
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
},
{
“$ref”: “#/parameters/trait:deviceId:device_id”
}
],
“responses”: {
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
},
“default”: {
“description”: “”
}
}
}
},
“/api/get_events”: {
“get”: {
“operationId”: “GET_api-get_events”,
“produces”: [
“application/json”
],
“parameters”: [
{
“name”: “device_id”,
“in”: “query”,
“type”: “integer”
},
{
“name”: “type”,
“in”: “query”,
“type”: “string”
},
{
“name”: “date_from”,
“in”: “query”,
“type”: “string”,
“format”: “date-time”
},
{
“name”: “date_to”,
“in”: “query”,
“type”: “string”,
“format”: “date-time”
},
{
“name”: “search”,
“in”: “query”,
“type”: “string”
},
{
“$ref”: “#/parameters/trait:basic:lang”
},
{
“$ref”: “#/parameters/trait:basic:user_api_hash”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“status”: {
“type”: “integer”
},
“items”: {
“type”: “object”,
“properties”: {
“total”: {
“type”: “integer”
},
“per_page”: {
“type”: “integer”
},
“current_page”: {
“type”: “integer”
},
“last_page”: {
“type”: “integer”
},
“from”: {
“type”: “integer”
},
“to”: {
“type”: “integer”
},
“data”: {
“type”: “array”,
“items”: {
“$ref”: “#/definitions/event”
}
},
“url”: {
“type”: “string”
}
}
}
}
},
“examples”: {
“application/json”: {
“status”: 1,
“items”: {
“total”: 1,
“per_page”: 30,
“current_page”: 1,
“last_page”: 1,
“from”: 1,
“to”: 1,
“data”: [
{}
],
“url”: “/api/get_events”
}
}
}
},
“400”: {
“$ref”: “#/responses/trait:basic:400”
},
“401”: {
“$ref”: “#/responses/trait:basic:401”
},
“500”: {
“$ref”: “#/responses/trait:basic:500”
}
}
}
},
“/api/login”: {
“post”: {
“operationId”: “POST_api-login”,
“description”: “Following a good response save ‘user_api_hash’ and use it for others requests. It may change in the future if user change a password, when system will return error.”,
“consumes”: [
“multipart/form-data”
],
“produces”: [
“application/json”
],
“parameters”: [
{
“name”: “email”,
“in”: “formData”,
“type”: “string”
},
{
“name”: “password”,
“in”: “formData”,
“type”: “string”
}
],
“responses”: {
“200”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“status”: {
“type”: “integer”
},
“user_api_hash”: {
“type”: “string”
}
},
“required”: [
“status”,
“user_api_hash”
]
},
“examples”: {
“application/json”: {
“status”: 1,
“user_api_hash”: “$2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS”
}
}
},
“401”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“status”: {
“type”: “integer”
},
“message”: {
“type”: “string”
}
}
},
“examples”: {
“application/json”: {
“status”: 0,
“message”: “Wrong credentials.”
}
}
}
}
}
}
},
“parameters”: {
“trait:customEventId:custom_event_id”: {
“name”: “custom_event_id”,
“in”: “query”,
“required”: true,
“type”: “integer”
},
“trait:mapIconId:map_icon_id”: {
“name”: “map_icon_id”,
“in”: “query”,
“required”: true,
“type”: “integer”
},
“trait:pagination:page”: {
“name”: “page”,
“in”: “query”,
“required”: false,
“type”: “integer”
},
“trait:pagination:limit”: {
“name”: “limit”,
“in”: “query”,
“required”: false,
“type”: “integer”
},
“trait:routeId:route_id”: {
“name”: “route_id”,
“in”: “query”,
“required”: true,
“type”: “integer”
},
“trait:serviceId:service_id”: {
“name”: “service_id”,
“in”: “query”,
“required”: true,
“type”: “integer”
},
“trait:basic:lang”: {
“name”: “lang”,
“in”: “query”,
“required”: true,
“type”: “string”,
“default”: “en”
},
“trait:basic:user_api_hash”: {
“name”: “user_api_hash”,
“in”: “query”,
“required”: true,
“type”: “string”,
“default”: “$2y$10$5RACGMNxUdz3h1ug9yAttu95U2acugM0YG1K5wx01ZrNMvpL6BWMS”
},
“trait:myIconId:my_icon_id”: {
“name”: “my_icon_id”,
“in”: “query”,
“required”: true,
“type”: “integer”
},
“trait:dateTime:from_date”: {
“name”: “from_date”,
“in”: “query”,
“required”: true,
“type”: “string”,
“format”: “date”
},
“trait:dateTime:from_time”: {
“name”: “from_time”,
“in”: “query”,
“required”: true,
“type”: “string”,
“format”: “time”
},
“trait:dateTime:to_date”: {
“name”: “to_date”,
“in”: “query”,
“required”: true,
“type”: “string”,
“format”: “date”
},
“trait:dateTime:to_time”: {
“name”: “to_time”,
“in”: “query”,
“required”: true,
“type”: “string”,
“format”: “time”
},
“trait:geofenceId:geofence_id”: {
“name”: “geofence_id”,
“in”: “query”,
“required”: true,
“type”: “integer”
},
“trait:sensorId:sensor_id”: {
“name”: “sensor_id”,
“in”: “query”,
“required”: true,
“type”: “integer”
},
“trait:userGprsTemplateId:user_gprs_template_id”: {
“name”: “user_gprs_template_id”,
“in”: “query”,
“required”: true,
“type”: “integer”
},
“trait:alertId:alert_id”: {
“name”: “alert_id”,
“in”: “query”,
“required”: true,
“type”: “integer”
},
“trait:deviceId:device_id”: {
“name”: “device_id”,
“in”: “query”,
“required”: true,
“type”: “integer”
},
“trait:reportId:report_id”: {
“name”: “report_id”,
“in”: “query”,
“required”: true,
“type”: “integer”
},
“trait:userSmsTemplateId:user_sms_template_id”: {
“name”: “user_sms_template_id”,
“in”: “query”,
“required”: true,
“type”: “integer”
},
“trait:userDriverId:user_driver_id”: {
“name”: “user_driver_id”,
“in”: “query”,
“required”: true,
“type”: “integer”
}
},
“responses”: {
“trait:basic:400”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“status”: {
“type”: “integer”
},
“errors”: {
“type”: “object”
}
}
}
},
“trait:basic:401”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {
“status”: {
“type”: “integer”
},
“error”: {
“type”: “string”
}
}
}
},
“trait:basic:500”: {
“description”: “”,
“schema”: {
“type”: “object”,
“properties”: {}
}
}
},
“definitions”: {
“task”: {
“title”: “task”,
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“device_id”: {
“type”: “integer”
},
“title”: {
“type”: “string”
},
“comment”: {
“type”: “string”
},
“priority”: {
“type”: “integer”
},
“status”: {
“type”: “integer”
},
“pickup_address”: {
“type”: “string”
},
“pickup_address_lat”: {
“type”: “number”
},
“pickup_address_lng”: {
“type”: “number”
},
“pickup_time_from”: {
“type”: “string”,
“format”: “date-time”
},
“pickup_time_to”: {
“type”: “string”,
“format”: “date-time”
},
“delivery_address”: {
“type”: “string”
},
“delivery_address_lat”: {
“type”: “number”
},
“delivery_address_lng”: {
“type”: “number”
},
“delivery_time_from”: {
“type”: “string”,
“format”: “date-time”
},
“delivery_time_to”: {
“type”: “string”,
“format”: “date-time”
},
“created_at”: {
“type”: “string”
},
“updated_at”: {
“type”: “string”
},
“statuses”: {
“type”: “array”,
“items”: {
“$ref”: “#/definitions/task-status”
}
},
“invoice_number”: {
“type”: “string”
}
}
},
“smstemplate”: {
“title”: “smsTemplate”,
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“user_id”: {
“type”: “integer”
},
“title”: {
“type”: “string”
},
“message”: {
“type”: “string”
},
“updated_at”: {
“type”: “string”
},
“created_at”: {
“type”: “string”
}
},
“example”: {
“id”: 2,
“user_id”: 2,
“title”: “GPRS Title”,
“message”: “message content”,
“updated_at”: “2016-06-26 17:41:43”,
“created_at”: “2016-06-26 17:41:43”
}
},
“sensors”: {
“title”: “sensorTypes”,
“type”: “object”,
“properties”: {
“key”: {
“type”: “string”
}
},
“example”: {
“acc”: “ACC ON/OFF”,
“battery”: “Battery”,
“door”: “Door Open/Close”,
“engine”: “Engine ON/OFF”,
“engine_hours”: “Engine hours”,
“fuel_tank”: “Fuel tank”,
“fuel_tank_calibration”: “Fuel tank (with calibration)”,
“gsm”: “GSM”,
“harsh_acceleration”: “Harsh acceleration “,
“harsh_breaking”: “Harsh breaking”,
“ignition”: “Ignition ON/OFF”,
“odometer”: “Odometer”,
“satellites”: “Satellites”,
“tachometer”: “Tachometer”,
“temperature”: “Temperature”
}
},
“sensorpost”: {
“title”: “sensorPost”,
“type”: “object”,
“properties”: {
“device_id”: {
“type”: “integer”
},
“sensor_type”: {
“type”: “string”
},
“sensor_name”: {
“type”: “string”
},
“unit_of_measurement”: {
“type”: “string”
},
“show_in_popup”: {
“type”: “integer”
},
“tag_name”: {
“type”: “string”
},
“shown_value_by”: {
“type”: “string”
},
“min_value”: {
“type”: “string”
},
“max_value”: {
“type”: “string”
},
“formula”: {
“type”: “string”
},
“odometer_value_by”: {
“type”: “string”
},
“odometer_value”: {
“type”: “string”
},
“calibrations”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“key”: {
“type”: “integer”
}
}
}
},
“on_value”: {
“type”: “string”
},
“off_value”: {
“type”: “string”
}
},
“required”: [
“device_id”,
“sensor_type”,
“sensor_name”,
“unit_of_measurement”
]
},
“success”: {
“title”: “success”,
“type”: “object”,
“properties”: {
“status”: {
“type”: “integer”
}
},
“example”: {
“status”: 1
}
},
“gprstemplate”: {
“title”: “gprsTemplate”,
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“user_id”: {
“type”: “integer”
},
“title”: {
“type”: “string”
},
“message”: {
“type”: “string”
},
“protocol”: {
“type”: “string”
},
“updated_at”: {
“type”: “string”
},
“created_at”: {
“type”: “string”
}
},
“example”: {
“id”: 2,
“user_id”: 2,
“title”: “GPRS Title”,
“message”: “message content”,
“updated_at”: “2016-06-26 17:41:43”,
“created_at”: “2016-06-26 17:41:43”
}
},
“sensor”: {
“title”: “Sensor”,
“type”: “object”,
“properties”: {
“id”: {
“type”: [
“string”,
“integer”
]
},
“user_id”: {
“type”: [
“string”,
“integer”
]
},
“device_id”: {
“type”: [
“string”,
“integer”
]
},
“name”: {
“type”: “string”
},
“type”: {
“type”: “string”
},
“tag_name”: {
“type”: “string”
},
“add_to_history”: {
“type”: [
“string”,
“integer”
]
},
“on_value”: {
“type”: “string”
},
“off_value”: {
“type”: “string”
},
“shown_value_by”: {
“type”: [
“null”,
“string”
]
},
“fuel_tank_name”: {
“type”: [
“null”,
“string”
]
},
“full_tank”: {
“type”: [
“null”,
“string”
]
},
“full_tank_value”: {
“type”: [
“null”,
“string”
]
},
“min_value”: {
“type”: [
“null”,
“string”
]
},
“max_value”: {
“type”: [
“null”,
“string”
]
},
“formula”: {
“type”: [
“null”,
“string”
]
},
“odometer_value_by”: {
“type”: [
“null”,
“string”
]
},
“odometer_value”: {
“type”: [
“null”,
“string”
]
},
“odometer_value_unit”: {
“type”: “string”
},
“temperature_max”: {
“type”: [
“null”,
“string”
]
},
“temperature_max_value”: {
“type”: [
“null”,
“string”
]
},
“temperature_min”: {
“type”: [
“null”,
“string”
]
},
“temperature_min_value”: {
“type”: [
“null”,
“string”
]
},
“value”: {
“type”: “string”
},
“value_formula”: {
“type”: “string”
},
“show_in_popup”: {
“type”: “string”
},
“unit_of_measurement”: {
“type”: “string”
},
“on_tag_value”: {
“type”: [
“null”,
“string”
]
},
“off_tag_value”: {
“type”: [
“null”,
“string”
]
},
“on_type”: {
“type”: [
“null”,
“string”
]
},
“off_type”: {
“type”: [
“null”,
“string”
]
},
“calibrations”: {
“type”: [
“null”,
“array”
],
“items”: {
“type”: “object”,
“properties”: {
“key”: {
“type”: “integer”
}
}
}
}
},
“example”: {
“id”: “2”,
“user_id”: “2”,
“device_id”: “3”,
“name”: “test acc”,
“type”: “acc”,
“tag_name”: “tag”,
“add_to_history”: “0”,
“on_value”: “on”,
“off_value”: “off”,
“shown_value_by”: null,
“fuel_tank_name”: null,
“full_tank”: null,
“full_tank_value”: null,
“min_value”: null,
“max_value”: null,
“formula”: null,
“odometer_value_by”: null,
“odometer_value”: null,
“odometer_value_unit”: “km”,
“temperature_max”: null,
“temperature_max_value”: null,
“temperature_min”: null,
“temperature_min_value”: null,
“value”: “-“,
“value_formula”: “0”,
“show_in_popup”: “1”,
“unit_of_measurement”: “nn”,
“on_tag_value”: null,
“off_tag_value”: null,
“on_type”: null,
“off_type”: null,
“calibrations”: null
}
},
“device-sensors”: {
“title”: “Device Sensors”,
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“type”: {
“type”: “string”
},
“name”: {
“type”: “string”
},
“value”: {
“type”: “string”
},
“unit”: {
“type”: “string”
},
“formated”: {
“type”: “string”
}
}
},
“taskpost”: {
“title”: “taskPost”,
“type”: “object”,
“properties”: {
“device_id”: {
“type”: “integer”
},
“title”: {
“type”: “string”
},
“comment”: {
“type”: “string”
},
“priority”: {
“type”: “integer”
},
“status”: {
“type”: “integer”
},
“pickup_address”: {
“type”: “string”
},
“pickup_address_lat”: {
“type”: “number”
},
“pickup_address_lng”: {
“type”: “number”
},
“pickup_time_from”: {
“type”: “string”,
“format”: “date-time”
},
“pickup_time_to”: {
“type”: “string”,
“format”: “date-time”
},
“delivery_address”: {
“type”: “string”
},
“delivery_address_lat”: {
“type”: “number”
},
“delivery_address_lng”: {
“type”: “number”
},
“delivery_time_from”: {
“type”: “string”,
“format”: “date-time”
},
“delivery_time_to”: {
“type”: “string”,
“format”: “date-time”
},
“invoice_number”: {
“type”: “string”
}
},
“required”: [
“device_id”,
“title”,
“comment”,
“priority”,
“status”,
“pickup_address”,
“pickup_address_lat”,
“pickup_address_lng”,
“pickup_time_from”,
“pickup_time_to”,
“delivery_address”,
“delivery_address_lat”,
“delivery_address_lng”,
“delivery_time_from”,
“delivery_time_to”
]
},
“alertpost”: {
“title”: “alertPost”,
“type”: “object”,
“properties”: {
“name”: {
“type”: “string”
},
“type”: {
“type”: “string”
},
“devices”: {
“type”: “array”,
“items”: {
“type”: “integer”
}
},
“zone”: {
“type”: “integer”,
“enum”: [
0,
1,
2
]
},
“zones”: {
“type”: “array”,
“items”: {
“type”: “integer”
}
},
“schedule”: {
“type”: “boolean”
},
“schedules”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“monday”: {
“type”: “array”,
“items”: {
“type”: “string”
}
},
“tuesday”: {
“type”: “array”,
“items”: {
“type”: “string”
}
},
“wednesday”: {
“type”: “array”,
“items”: {
“type”: “string”
}
},
“thursday”: {
“type”: “array”,
“items”: {
“type”: “string”
}
},
“friday”: {
“type”: “array”,
“items”: {
“type”: “string”
}
},
“saturday”: {
“type”: “array”,
“items”: {
“type”: “string”
}
},
“sunday”: {
“type”: “array”,
“items”: {
“type”: “string”
}
}
}
}
},
“notifications”: {
“type”: “object”,
“properties”: {
“sound”: {
“type”: “object”,
“properties”: {
“active”: {
“type”: “boolean”
}
}
},
“push”: {
“type”: “object”,
“properties”: {
“active”: {
“type”: “boolean”
}
}
},
“email”: {
“type”: “object”,
“properties”: {
“active”: {
“type”: “boolean”
},
“input”: {
“type”: “string”
}
}
},
“sms”: {
“type”: “object”,
“properties”: {
“active”: {
“type”: “boolean”
},
“input”: {
“type”: “string”
}
}
},
“webhook”: {
“type”: “object”,
“properties”: {
“active”: {
“type”: “boolean”
},
“input”: {
“type”: “string”
}
}
}
}
},
“command”: {
“type”: “object”,
“properties”: {
“active”: {
“type”: “boolean”
},
“type”: {
“type”: “string”
}
}
}
},
“required”: [
“name”,
“type”,
“devices”
]
},
“mapicon”: {
“title”: “mapIcon”,
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“path”: {
“type”: “string”
},
“width”: {
“type”: [
“number”,
“string”
]
},
“height”: {
“type”: [
“number”,
“string”
]
}
}
},
“geofence”: {
“title”: “geofence”,
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“type”: {
“type”: “string”,
“enum”: [
“polygon”,
“circle”
]
},
“user_id”: {
“type”: “integer”
},
“group_id”: {
“type”: [
“null”,
“integer”
]
},
“active”: {
“type”: “integer”
},
“name”: {
“type”: “string”
},
“center”: {
“$ref”: “#/definitions/latlng”
},
“radius”: {
“type”: [
“number”,
“null”
]
},
“coordinates”: {
“type”: [
“string”,
“array”
],
“items”: {
“$ref”: “#/definitions/latlng”
}
},
“polygon_color”: {
“type”: “string”
},
“created_at”: {
“type”: “string”
},
“updated_at”: {
“type”: “string”
}
}
},
“driverpost”: {
“title”: “driverPost”,
“type”: “object”,
“properties”: {
“device_id”: {
“type”: “integer”
},
“name”: {
“type”: “string”
},
“rfid”: {
“type”: “string”
},
“phone”: {
“type”: “string”
},
“email”: {
“type”: “string”
},
“description”: {
“type”: “string”
}
},
“required”: [
“device_id”,
“name”
]
},
“reportType”: {
“title”: “reportType”,
“type”: “object”,
“properties”: {
“type”: {
“type”: “integer”
},
“name”: {
“type”: “string”
},
“formats”: {
“type”: “array”,
“items”: {
“type”: “string”
}
},
“fields”: {
“type”: “array”,
“items”: {
“type”: “string”
}
},
“parameters”: {
“type”: [
“array”,
“null”
],
“items”: {
“type”: “object”,
“properties”: {
“title”: {
“type”: “string”
},
“name”: {
“type”: “string”
},
“type”: {
“type”: “string”
},
“default”: {
“type”: [
“integer”,
“string”,
“null”
]
},
“options”: {
“type”: [
“array”,
“null”
],
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: [
“integer”,
“string”
]
},
“title”: {
“type”: “string”
}
}
}
},
“validation”: {
“type”: [
“string”,
“null”
]
}
}
}
}
}
},
“pagination”: {
“title”: “pagination”,
“type”: “object”,
“properties”: {
“total”: {
“type”: “integer”
},
“per_page”: {
“type”: “integer”
},
“current_page”: {
“type”: “integer”
},
“last_page”: {
“type”: “integer”
},
“from”: {
“type”: “integer”
},
“to”: {
“type”: “integer”
},
“next_page_url”: {
“type”: [
“string”,
“null”
]
},
“prev_page_url”: {
“type”: [
“string”,
“null”
]
},
“url”: {
“type”: “string”
}
}
},
“task-status”: {
“title”: “taskStatus”,
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“task_id”: {
“type”: “integer”
},
“comment”: {
“type”: “string”
},
“status”: {
“type”: “integer”
},
“created_at”: {
“type”: “string”
},
“updated_at”: {
“type”: “string”
}
}
},
“historyitem”: {
“title”: “historyItem”,
“type”: “object”,
“properties”: {
“status”: {
“type”: “integer”
},
“time”: {
“type”: [
“string”,
“null”
]
},
“show”: {
“type”: “string”
},
“distance”: {
“type”: [
“number”,
“string”
]
},
“raw_time”: {
“type”: “string”
},
“items”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: [
“integer”,
“string”
]
},
“device_id”: {
“type”: [
“integer”,
“string”
]
},
“altitude”: {
“type”: [
“number”,
“string”
]
},
“course”: {
“type”: [
“number”,
“string”
]
},
“latitude”: {
“type”: [
“number”,
“string”
]
},
“longitude”: {
“type”: [
“number”,
“string”
]
},
“other”: {
“type”: “string”
},
“power”: {
“type”: [
“number”,
“null”
]
},
“speed”: {
“type”: “number”
},
“time”: {
“type”: [
“string”,
“null”
]
},
“server_time”: {
“type”: “string”
},
“valid”: {
“type”: “string”
},
“distance”: {
“type”: “number”
},
“protocol”: {
“type”: “string”
},
“sensor_id”: {
“type”: [
“integer”,
“string”
]
},
“sort”: {
“type”: “integer”
},
“item_id”: {
“type”: “string”
},
“raw_time”: {
“type”: “string”
},
“lat”: {
“type”: [
“number”,
“string”
]
},
“lng”: {
“type”: [
“number”,
“string”
]
},
“other_arr”: {
“type”: “array”,
“items”: {
“type”: “string”
}
},
“sensors_data”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “string”
},
“value”: {
“type”: [
“string”,
“number”
]
}
}
}
}
}
}
},
“driver”: {
“$ref”: “#/definitions/driver”
}
},
“example”: {
“status”: 3,
“time”: null,
“show”: “2016-04-25 18:53:39”,
“distance”: 0,
“raw_time”: “2016-04-25 18:53:39”,
“items”: [
{
“id”: “1”,
“device_id”: “3”,
“altitude”: 189,
“course”: “265.200012207031”,
“latitude”: “55.92291271”,
“longitude”: “23.34606776”,
“other”: “73.078.63.151.5“,
“power”: null,
“speed”: 8,
“time”: “2016-04-25 18:53:39”,
“server_time”: “2016-04-25 16:53:39”,
“valid”: “1”,
“distance”: 0,
“protocol”: “osmand”,
“sensor_id”: “1”,
“sort”: 1461603219,
“item_id”: “i1”,
“raw_time”: “2016-04-25 18:53:39”,
“lat”: “55.9229127”,
“lng”: “23.3460678”,
“other_arr”: [
“battery: 73.0”,
“ip: 78.63.151.5”
],
“sensors_data”: [
{
“id”: “speed”,
“value”: 8
},
{
“id”: “altitude”,
“value”: 189
}
]
}
],
“driver”: {
“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”
}
}
},
“smstemplatepost”: {
“title”: “smsTemplatePost”,
“type”: “object”,
“properties”: {
“title”: {
“type”: “string”
},
“message”: {
“type”: “string”
}
}
},
“routepost”: {
“title”: “routePost”,
“type”: “object”,
“properties”: {
“name”: {
“type”: “string”
},
“color”: {
“type”: “string”
},
“polyline”: {
“type”: [
“string”,
“array”
],
“items”: {
“$ref”: “#/definitions/latlng”
}
}
},
“required”: [
“name”,
“color”,
“polyline”
],
“example”: {
“name”: “Route name”,
“color”: “#232323”,
“polyline”: [
{
“lat”: 54.91550070170091,
“lng”: 23.94092559814453
},
{
“lat”: 55.91550070170091,
“lng”: 24.94092559814453
},
{
“lat”: 56.91550070170091,
“lng”: 25.94092559814453
}
]
}
},
“device-services”: {
“title”: “Device Services”,
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“name”: {
“type”: “string”
},
“value”: {
“type”: “string”
},
“expiring”: {
“type”: “boolean”
}
}
},
“objectID”: {
“title”: “ObjectID”,
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
}
},
“required”: [
“id”
]
},
“event”: {
“title”: “event”,
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“user_id”: {
“type”: “integer”
},
“device_id”: {
“type”: “integer”
},
“geofence_id”: {
“type”: “integer”
},
“position_id”: {
“type”: “integer”
},
“alert_id”: {
“type”: “integer”
},
“message”: {
“type”: “string”
},
“created_at”: {
“type”: “string”
},
“updated_at”: {
“type”: “string”
},
“address”: {
“type”: “string”
},
“altitude”: {
“type”: “number”
},
“course”: {
“type”: [
“null”,
“number”
]
},
“latitude”: {
“type”: “number”
},
“longitude”: {
“type”: “number”
},
“power”: {
“type”: [
“null”,
“number”
]
},
“speed”: {
“type”: “number”
},
“time”: {
“type”: “string”
},
“deleted”: {
“type”: “integer”
}
},
“example”: {
“id”: 30013,
“user_id”: 6,
“device_id”: 7,
“geofence_id”: 9,
“position_id”: 67353,
“alert_id”: 5,
“message”: “Zone in”,
“created_at”: “2015-02-21 19:07:01”,
“updated_at”: “2015-09-05 13:04:00”,
“address”: “Woodbourne Road, Brooklands, Trafford, Greater Manchester, North West England, England, United Kingdom”,
“altitude”: 0,
“course”: null,
“latitude”: 53.411351666667,
“longitude”: -2.3310194444444,
“power”: null,
“speed”: 0,
“time”: “2015-02-21 20:42:22”,
“deleted”: 0
}
},
“servicetypes”: {
“title”: “serviceTypes”,
“type”: “object”,
“properties”: {
“key”: {
“type”: “string”
}
},
“example”: {
“odometer”: “Odometer”,
“engine_hours”: “Engine hours”,
“days”: “Days”
}
},
“device”: {
“title”: “device”,
“type”: “object”,
“properties”: {
“id”: {
“type”: “string”
},
“user_id”: {
“type”: [
“integer”,
“null”
]
},
“traccar_device_id”: {
“type”: “string”
},
“icon_id”: {
“type”: “string”
},
“active”: {
“type”: “string”
},
“deleted”: {
“type”: “string”
},
“name”: {
“type”: “string”
},
“imei”: {
“type”: “string”
},
“fuel_measurement_id”: {
“type”: “string”
},
“fuel_quantity”: {
“type”: “string”
},
“fuel_price”: {
“type”: “string”
},
“fuel_per_km”: {
“type”: “string”
},
“sim_number”: {
“type”: “string”
},
“device_model”: {
“type”: “string”
},
“plate_number”: {
“type”: “string”
},
“vin”: {
“type”: “string”
},
“registration_number”: {
“type”: “string”
},
“object_owner”: {
“type”: “string”
},
“expiration_date”: {
“type”: “string”
},
“tail_color”: {
“type”: “string”
},
“tail_length”: {
“type”: “string”
},
“engine_hours”: {
“type”: “string”
},
“detect_engine”: {
“type”: “string”
},
“min_moving_speed”: {
“type”: “string”
},
“min_fuel_fillings”: {
“type”: “string”
},
“min_fuel_thefts”: {
“type”: “string”
},
“snap_to_road”: {
“type”: “string”
},
“created_at”: {
“type”: “string”
},
“updated_at”: {
“type”: “string”
},
“pivot”: {
“type”: “object”,
“properties”: {
“user_id”: {
“type”: “string”
},
“device_id”: {
“type”: “string”
},
“group_id”: {
“type”: “null”
},
“current_driver_id”: {
“type”: “string”
},
“active”: {
“type”: “string”
},
“timezone_id”: {
“type”: “null”
}
}
},
“traccar”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “string”
},
“name”: {
“type”: “string”
},
“uniqueId”: {
“type”: “string”
},
“latestPosition_id”: {
“type”: “string”
},
“lastValidLatitude”: {
“type”: “string”
},
“lastValidLongitude”: {
“type”: “string”
},
“other”: {
“type”: “string”
},
“speed”: {
“type”: “string”
},
“time”: {
“type”: “string”
},
“server_time”: {
“type”: “string”
},
“ack_time”: {
“type”: “null”
},
“altitude”: {
“type”: “string”
},
“course”: {
“type”: “string”
},
“power”: {
“type”: “null”
},
“address”: {
“type”: “null”
},
“protocol”: {
“type”: “string”
},
“latest_positions”: {
“type”: “string”
}
}
},
“icon”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “string”
},
“order”: {
“type”: “string”
},
“width”: {
“type”: “string”
},
“height”: {
“type”: “string”
},
“path”: {
“type”: “string”
}
}
},
“sensors”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “string”
},
“user_id”: {
“type”: “string”
},
“device_id”: {
“type”: “string”
},
“name”: {
“type”: “string”
},
“type”: {
“type”: “string”
},
“tag_name”: {
“type”: “string”
},
“add_to_history”: {
“type”: “string”
},
“on_value”: {
“type”: “null”
},
“off_value”: {
“type”: “null”
},
“shown_value_by”: {
“type”: “string”
},
“fuel_tank_name”: {
“type”: “null”
},
“full_tank”: {
“type”: “null”
},
“full_tank_value”: {
“type”: “null”
},
“min_value”: {
“type”: “null”
},
“max_value”: {
“type”: “null”
},
“formula”: {
“type”: “null”
},
“odometer_value_by”: {
“type”: “null”
},
“odometer_value”: {
“type”: “null”
},
“odometer_value_unit”: {
“type”: “string”
},
“temperature_max”: {
“type”: “null”
},
“temperature_max_value”: {
“type”: “null”
},
“temperature_min”: {
“type”: “null”
},
“temperature_min_value”: {
“type”: “null”
},
“value”: {
“type”: “string”
},
“value_formula”: {
“type”: “string”
},
“show_in_popup”: {
“type”: “string”
},
“unit_of_measurement”: {
“type”: “string”
},
“on_tag_value”: {
“type”: “null”
},
“off_tag_value”: {
“type”: “null”
},
“on_type”: {
“type”: “null”
},
“off_type”: {
“type”: “null”
},
“calibrations”: {
“type”: “null”
}
}
}
},
“services”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “string”
},
“user_id”: {
“type”: “string”
},
“device_id”: {
“type”: “string”
},
“name”: {
“type”: “string”
},
“expiration_by”: {
“type”: “string”
},
“interval”: {
“type”: “string”
},
“last_service”: {
“type”: “string”
},
“trigger_event_left”: {
“type”: “string”
},
“renew_after_expiration”: {
“type”: “string”
},
“expires”: {
“type”: “string”
},
“expires_date”: {
“type”: “null”
},
“remind”: {
“type”: “string”
},
“remind_date”: {
“type”: “null”
},
“event_sent”: {
“type”: “string”
},
“expired”: {
“type”: “string”
},
“email”: {
“type”: “string”
},
“mobile_phone”: {
“type”: “string”
}
}
}
}
},
“example”: {
“id”: “3”,
“user_id”: null,
“traccar_device_id”: “3”,
“icon_id”: “8”,
“active”: “1”,
“deleted”: “0”,
“name”: “Device name”,
“imei”: “789832”,
“fuel_measurement_id”: “1”,
“fuel_quantity”: “0.00”,
“fuel_price”: “0.00”,
“fuel_per_km”: “0.00”,
“sim_number”: “”,
“device_model”: “”,
“plate_number”: “”,
“vin”: “”,
“registration_number”: “”,
“object_owner”: “”,
“expiration_date”: “0000-00-00”,
“tail_color”: “#33cc33”,
“tail_length”: “5”,
“engine_hours”: “gps”,
“detect_engine”: “gps”,
“min_moving_speed”: “6”,
“min_fuel_fillings”: “10”,
“min_fuel_thefts”: “10”,
“snap_to_road”: “0”,
“created_at”: “2016-04-25 16:21:19”,
“updated_at”: “2016-06-26 15:52:46”,
“pivot”: {
“user_id”: “2”,
“device_id”: “3”,
“group_id”: null,
“current_driver_id”: “1”,
“active”: “1”,
“timezone_id”: null
},
“traccar”: {
“id”: “3”,
“name”: “Device name”,
“uniqueId”: “789832”,
“latestPosition_id”: “99”,
“lastValidLatitude”: “55.92299604”,
“lastValidLongitude”: “23.34669059”,
“other”: “31.083.181.149.238“,
“speed”: “0.00”,
“time”: “2016-04-29 19:01:26”,
“server_time”: “2016-04-29 19:01:26”,
“ack_time”: null,
“altitude”: “175”,
“course”: “0”,
“power”: null,
“address”: null,
“protocol”: “osmand”,
“latest_positions”: “55.92297793/23.34665713;55.92336524/23.34666575;55.91928624/23.34572509;55.91590619/23.33778733;55.91986482/23.3255625;55.92581495/23.30829421;55.92748307/23.30725942;55.92966571/23.31183084;55.93430696/23.31986459;55.93769598/23.32408059;55.94483741/23.33093897;55.94417471/23.33107782;55.93988092/23.32629426;55.93719855/23.32534909;55.93344595/23.32372258”
},
“icon”: {
“id”: “8”,
“order”: “3”,
“width”: “43.00”,
“height”: “57.00”,
“path”: “frontend/images/device_icons/8.png”
},
“sensors”: [
{
“id”: “1”,
“user_id”: “2”,
“device_id”: “3”,
“name”: “Sensor test”,
“type”: “battery”,
“tag_name”: “Parameter name”,
“add_to_history”: “0”,
“on_value”: null,
“off_value”: null,
“shown_value_by”: “tag_value”,
“fuel_tank_name”: null,
“full_tank”: null,
“full_tank_value”: null,
“min_value”: null,
“max_value”: null,
“formula”: null,
“odometer_value_by”: null,
“odometer_value”: null,
“odometer_value_unit”: “km”,
“temperature_max”: null,
“temperature_max_value”: null,
“temperature_min”: null,
“temperature_min_value”: null,
“value”: “-“,
“value_formula”: “0”,
“show_in_popup”: “0”,
“unit_of_measurement”: “nn”,
“on_tag_value”: null,
“off_tag_value”: null,
“on_type”: null,
“off_type”: null,
“calibrations”: null
}
],
“services”: [
{
“id”: “1”,
“user_id”: “2”,
“device_id”: “3”,
“name”: “Test service”,
“expiration_by”: “engine_hours”,
“interval”: “0”,
“last_service”: “1000”,
“trigger_event_left”: “0”,
“renew_after_expiration”: “0”,
“expires”: “1000”,
“expires_date”: null,
“remind”: “1000”,
“remind_date”: null,
“event_sent”: “0”,
“expired”: “0”,
“email”: “”,
“mobile_phone”: “”
}
]
}
},
“devicepost”: {
“title”: “devicePost”,
“type”: “object”,
“properties”: {
“name”: {
“type”: “string”
},
“imei”: {
“type”: “string”
},
“icon_id”: {
“type”: “integer”
},
“group_id”: {
“type”: “integer”
},
“sim_number”: {
“type”: “string”
},
“device_model”: {
“type”: “string”
},
“plate_number”: {
“type”: “string”
},
“vin”: {
“type”: “string”
},
“registration_number”: {
“type”: “string”
},
“object_owner”: {
“type”: “string”
},
“fuel_measurement_id”: {
“type”: “string”
},
“fuel_quantity”: {
“type”: “number”
},
“fuel_price”: {
“type”: “number”
},
“min_moving_speed”: {
“type”: “number”
},
“min_fuel_fillings”: {
“type”: “number”
},
“min_fuel_thefts”: {
“type”: “number”
},
“tail_color”: {
“type”: “string”
},
“tail_length”: {
“type”: “integer”
}
},
“required”: [
“name”,
“imei”
]
},
“device-full”: {
“title”: “Device Full”,
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“active”: {
“type”: “boolean”
},
“name”: {
“type”: “string”
},
“imei”: {
“type”: “string”
},
“sim_number”: {
“type”: “string”
},
“device_model”: {
“type”: “string”
},
“plate_number”: {
“type”: “string”
},
“vin”: {
“type”: “string”
},
“registration_number”: {
“type”: “string”
},
“object_owner”: {
“type”: “string”
},
“additional_notes”: {
“type”: “string”
},
“protocol”: {
“type”: “string”
},
“expiration_date”: {
“type”: [
“string”,
“null”
]
},
“icon_colors”: {
“type”: “object”,
“properties”: {
“moving”: {
“type”: “string”
},
“stopped”: {
“type”: “string”
},
“offline”: {
“type”: “string”
},
“engine”: {
“type”: “string”
}
}
},
“icon_id”: {
“type”: “integer”
},
“timezone_id”: {
“type”: [
“integer”,
“null”
]
},
“fuel_measurement_id”: {
“type”: “integer”
},
“fuel_quantity”: {
“type”: “integer”
},
“fuel_price”: {
“type”: “number”
},
“tail_length”: {
“type”: “integer”
},
“tail_color”: {
“type”: “string”
},
“min_moving_speed”: {
“type”: “integer”
},
“min_fuel_fillings”: {
“type”: “integer”
},
“min_fuel_thefts”: {
“type”: “integer”
},
“gprs_templates_only”: {
“type”: “integer”
},
“detect_engine”: {
“type”: “string”
},
“engine_hours”: {
“type”: “string”
},
“engine_status”: {
“type”: “boolean”
},
“stop_duration”: {
“type”: “string”
},
“total_distance”: {
“type”: “number”
},
“moved_timestamp”: {
“type”: “integer”
}
},
“example”: {
“id”: 128,
“active”: true,
“name”: “Demo 5”,
“imei”: “100000005”,
“sim_number”: “”,
“device_model”: “”,
“plate_number”: “”,
“vin”: “”,
“registration_number”: “”,
“object_owner”: “”,
“additional_notes”: “”,
“protocol”: “upro”,
“expiration_date”: null,
“icon_colors”: {
“moving”: “green”,
“stopped”: “yellow”,
“offline”: “red”,
“engine”: “yellow”
},
“icon_id”: 47,
“timezone_id”: null,
“fuel_measurement_id”: 1,
“fuel_quantity”: 10,
“fuel_price”: 1.1,
“tail_length”: 5,
“tail_color”: “#33cc33”,
“min_moving_speed”: 6,
“min_fuel_fillings”: 10,
“min_fuel_thefts”: 10,
“gprs_templates_only”: 0,
“detect_engine”: “gps”,
“engine_hours”: “acc”,
“engine_status”: true,
“stop_duration”: “28s”,
“total_distance”: 5738289.08,
“moved_timestamp”: 1624977905
}
},
“reportpost”: {
“title”: “reportPost”,
“type”: “object”,
“properties”: {
“title”: {
“type”: “string”
},
“type”: {
“type”: “integer”
},
“format”: {
“type”: “string”
},
“speed_limit”: {
“type”: “number”
},
“devices”: {
“type”: “array”,
“items”: {
“type”: “integer”
}
},
“geofences”: {
“type”: “array”,
“items”: {
“type”: “integer”
}
},
“daily”: {
“type”: “integer”
},
“weekly”: {
“type”: “integer”
},
“send_to_email”: {
“type”: “string”
},
“date_from”: {
“type”: “string”,
“format”: “date”
},
“date_to”: {
“type”: “string”,
“format”: “date”
},
“time_from”: {
“type”: “string”,
“format”: “time”
},
“time_to”: {
“type”: “string”,
“format”: “time”
},
“show_addresses”: {
“type”: “boolean”
},
“zones_instead”: {
“type”: “boolean”
},
“stops”: {
“type”: “integer”
}
},
“required”: [
“title”,
“type”,
“format”,
“devices”,
“date_from”,
“date_to”
]
},
“changeActive”: {
“title”: “changeActive”,
“type”: “object”,
“properties”: {
“id”: {
“oneOf”: [
{
“type”: “array”,
“items”: {
“type”: “integer”
}
},
{
“type”: “integer”
}
]
},
“active”: {
“type”: “string”,
“enum”: [
“true”,
“false”
]
}
},
“required”: [
“id”,
“active”
]
},
“geofencePost”: {
“title”: “geofencePost”,
“type”: “object”,
“properties”: {
“name”: {
“type”: “string”
},
“polygon_color”: {
“type”: “string”
},
“polygon”: {
“type”: “array”,
“items”: {
“$ref”: “#/definitions/latlng”
}
},
“group_id”: {
“type”: “integer”
},
“type”: {
“enum”: [
“polygon”,
“circle”
],
“type”: “string”
},
“center”: {
“$ref”: “#/definitions/latlng”
},
“radius”: {
“type”: “number”
}
},
“required”: [
“name”,
“polygon_color”,
“polygon”,
“type”
],
“example”: {
“type”: “polygon”,
“name”: “Geofence name”,
“polygon_color”: “#d000df”,
“polygon”: [
{
“lat”: 54.9287200680115,
“lng”: 23.8787841796875
},
{
“lat”: 54.95001975516275,
“lng”: 23.93268585205078
},
{
“lat”: 54.91550070170091,
“lng”: 23.94092559814453
},
{
“lat”: 54.901882187385006,
“lng”: 23.89251708984375
}
],
“group_id”: 2
}
},
“mapiconpost”: {
“title”: “mapIconPost”,
“type”: “object”,
“properties”: {
“name”: {
“type”: “string”
},
“description”: {
“type”: “string”
},
“map_icon_id”: {
“type”: “integer”
},
“coordinates”: {
“oneOf”: [
{
“$ref”: “#/definitions/latlng”
},
{
“type”: “string”
}
]
}
},
“required”: [
“name”,
“map_icon_id”,
“coordinates”
]
},
“user”: {
“title”: “user”,
“type”: “object”,
“properties”: {}
},
“driver-full”: {
“title”: “Driver Full”,
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“device_id”: {
“type”: “integer”
},
“user_id”: {
“type”: “integer”
},
“name”: {
“type”: “string”
},
“rfid”: {
“type”: “string”
},
“phone”: {
“type”: “string”
},
“email”: {
“type”: “string”
},
“description”: {
“type”: “string”
}
}
},
“gprstemplatepost”: {
“title”: “gprsTemplatePost”,
“type”: “object”,
“properties”: {
“title”: {
“type”: “string”
},
“message”: {
“type”: “string”
},
“protocol”: {
“type”: “string”
}
},
“required”: [
“title”,
“message”,
“protocol”
]
},
“service”: {
“title”: “service”,
“type”: “object”,
“properties”: {
“id”: {
“type”: [
“string”,
“integer”
]
},
“user_id”: {
“type”: [
“string”,
“integer”
]
},
“device_id”: {
“type”: [
“string”,
“integer”
]
},
“name”: {
“type”: “string”
},
“expiration_by”: {
“type”: “string”
},
“interval”: {
“type”: “string”
},
“last_service”: {
“type”: “string”
},
“trigger_event_left”: {
“type”: “string”
},
“renew_after_expiration”: {
“type”: “string”
},
“expires”: {
“type”: “string”
},
“expires_date”: {
“type”: [
“null”,
“string”
]
},
“remind”: {
“type”: “string”
},
“remind_date”: {
“type”: [
“null”,
“string”
]
},
“event_sent”: {
“type”: “string”
},
“expired”: {
“type”: “string”
},
“email”: {
“type”: “string”
},
“mobile_phone”: {
“type”: “string”
},
“device”: {
“$ref”: “#/definitions/device”
}
},
“example”: {
“id”: “1”,
“user_id”: “2”,
“device_id”: “3”,
“name”: “Test service”,
“expiration_by”: “engine_hours”,
“interval”: “0”,
“last_service”: “1000”,
“trigger_event_left”: “0”,
“renew_after_expiration”: “0”,
“expires”: “1000”,
“expires_date”: null,
“remind”: “1000”,
“remind_date”: null,
“event_sent”: “0”,
“expired”: “0”,
“email”: “”,
“mobile_phone”: “”,
“device”: {}
}
},
“device-position”: {
“title”: “Device Position”,
“type”: “object”,
“properties”: {
“status”: {
“type”: “string”
},
“lat”: {
“type”: “number”
},
“lng”: {
“type”: “number”
},
“speed”: {
“type”: “string”
},
“course”: {
“type”: “string”
},
“altitude”: {
“type”: “string”
},
“parameters”: {
“type”: “string”
},
“time”: {
“type”: “string”
},
“timestamp”: {
“type”: “integer”
},
“ack_timestamp”: {
“type”: “integer”
},
“server_timestamp”: {
“type”: “integer”
},
“last_connect_timestamp”: {
“type”: “integer”
}
}
},
“driver”: {
“title”: “driver”,
“type”: “object”,
“properties”: {
“date”: {
“type”: [
“integer”,
“string”
]
},
“id”: {
“type”: [
“integer”,
“string”
]
},
“user_id”: {
“type”: [
“integer”,
“string”
]
},
“device_id”: {
“type”: [
“integer”,
“string”
]
},
“device_port”: {
“type”: [
“null”,
“string”
]
},
“name”: {
“type”: “string”
},
“rfid”: {
“type”: “string”
},
“phone”: {
“type”: “string”
},
“email”: {
“type”: “string”
},
“description”: {
“type”: “string”
},
“created_at”: {
“type”: “string”
},
“updated_at”: {
“type”: “string”
},
“device”: {
“$ref”: “#/definitions/device”
}
},
“example”: {
“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”
}
},
“device-lookup”: {
“title”: “Device Lookup”,
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“active”: {
“type”: “boolean”
},
“name”: {
“type”: “string”
},
“imei”: {
“type”: [
“string”,
“null”
]
},
“sim_number”: {
“type”: “string”
},
“device_model”: {
“type”: “string”
},
“plate_number”: {
“type”: “string”
},
“vin”: {
“type”: “string”
},
“registration_number”: {
“type”: “string”
},
“object_owner”: {
“type”: “string”
},
“additional_notes”: {
“type”: “string”
},
“protocol”: {
“type”: [
“string”,
“null”
]
},
“expiration_date”: {
“type”: [
“string”,
“null”
]
},
“position”: {
“oneOf”: [
{
“$ref”: “#/definitions/device-position”
},
{
“type”: “null”,
“properties”: {}
}
]
},
“sensors”: {
“oneOf”: [
{
“$ref”: “#/definitions/device-sensors”
},
{
“type”: “null”,
“properties”: {}
}
]
},
“services”: {
“oneOf”: [
{
“$ref”: “#/definitions/device-services”
},
{
“type”: “null”,
“properties”: {}
}
]
},
“driver”: {
“oneOf”: [
{
“$ref”: “#/definitions/driver-full”
},
{
“type”: “null”,
“properties”: {}
}
]
}
}
},
“servicepost”: {
“title”: “servicePost”,
“type”: “object”,
“properties”: {
“device_id”: {
“type”: “integer”
},
“name”: {
“type”: “string”
},
“expiration_by”: {
“type”: “string”
},
“interval”: {
“type”: “string”
},
“last_service”: {
“type”: “string”
},
“trigger_event_left”: {
“type”: “string”
},
“renew_after_expiration”: {
“type”: “integer”
},
“email”: {
“type”: “string”
},
“mobile_phone”: {
“type”: “string”
}
},
“required”: [
“device_id”,
“name”,
“expiration_by”,
“interval”,
“last_service”,
“trigger_event_left”,
“renew_after_expiration”
]
},
“alert”: {
“title”: “alert”,
“type”: “object”,
“properties”: {
“id”: {
“type”: “integer”
},
“user_id”: {
“type”: “integer”
},
“active”: {
“type”: “integer”
},
“name”: {
“type”: “string”
},
“type”: {
“type”: “string”
},
“created_at”: {
“type”: “string”
},
“updated_at”: {
“type”: “string”
},
“devices”: {
“type”: “array”,
“items”: {
“type”: “integer”
}
},
“drivers”: {
“type”: “array”,
“items”: {
“type”: “integer”
}
},
“geofences”: {
“type”: “array”,
“items”: {
“type”: “integer”
}
},
“events_custom”: {
“type”: “array”,
“items”: {
“type”: “integer”
}
},
“zone”: {
“type”: “integer”
},
“zones”: {
“type”: “array”,
“items”: {
“type”: “object”
}
},
“schedule”: {
“type”: “boolean”
},
“schedules”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “string”
},
“title”: {
“type”: “string”
},
“items”: {
“type”: “array”,
“items”: {
“type”: “object”,
“properties”: {
“id”: {
“type”: “string”
},
“title”: {
“type”: “string”
},
“active”: {
“type”: “boolean”
}
}
}
}
}
}
},
“notifications”: {
“type”: “object”,
“properties”: {
“sound”: {
“type”: “object”,
“properties”: {
“active”: {
“type”: “boolean”
}
}
},
“push”: {
“type”: “object”,
“properties”: {
“active”: {
“type”: “boolean”
}
}
},
“email”: {
“type”: “object”,
“properties”: {
“active”: {
“type”: “boolean”
},
“input”: {
“type”: “string”
}
}
},
“sms”: {
“type”: “object”,
“properties”: {
“active”: {
“type”: “boolean”
},
“input”: {
“type”: “string”
}
}
},
“webhook”: {
“type”: “object”,
“properties”: {
“active”: {
“type”: “boolean”
},
“input”: {
“type”: “string”
}
}
}
}
},
“command”: {
“type”: [
“object”,
“null”
],
“properties”: {
“active”: {
“type”: [
“boolean”,
“integer”
]
},
“type”: {
“type”: “string”
},
“key”: {
“type”: [
“string”,
“integer”,
“boolean”,
“null”
]
}
}
}
}
},
“report”: {
“title”: “report”,
“type”: “object”,
“properties”: {
“id”: {
“type”: [
“integer”,
“string”
]
},
“user_id”: {
“type”: [
“integer”,
“string”
]
},
“title”: {
“type”: “string”
},
“type”: {
“type”: [
“integer”,
“string”
]
},
“format”: {
“type”: “string”
},
“show_addresses”: {
“type”: [
“null”,
“integer”
]
},
“zones_instead”: {
“type”: [
“null”,
“integer”
]
},
“stops”: {
“type”: [
“integer”,
“string”
]
},
“speed_limit”: {
“type”: [
“null”,
“number”
]
},
“daily”: {
“type”: [
“null”,
“integer”
]
},
“weekly”: {
“type”: [
“null”,
“integer”
]
},
“email”: {
“type”: “string”
},
“weekly_email_sent”: {
“type”: “string”
},
“daily_email_sent”: {
“type”: “string”
},
“devices”: {
“type”: “array”,
“items”: {
“type”: “integer”
}
},
“geofences”: {
“type”: “array”,
“items”: {
“type”: “integer”
}
}
},
“example”: {
“id”: “2”,
“user_id”: “2”,
“title”: “Report title”,
“type”: “4”,
“format”: “html”,
“show_addresses”: null,
“zones_instead”: null,
“stops”: “1”,
“speed_limit”: null,
“daily”: null,
“weekly”: null,
“email”: “”,
“weekly_email_sent”: “2016-06-27 00:00:00”,
“daily_email_sent”: “2016-06-26 00:00:00”,
“devices”: [
3
],
“geofences”: []
}
},
“latlng”: {
“title”: “LatLng”,
“type”: “object”,
“properties”: {
“lat”: {
“type”: “number”
},
“lng”: {
“type”: “number”
}
},
“example”: {
“lat”: 54.91550070170091,
“lng”: 23.94092559814453
}
},
“customeventpost”: {
“title”: “customEventPost”,
“type”: “object”,
“properties”: {
“protocol”: {
“type”: “string”
},
“message”: {
“type”: “string”
},
“tag”: {
“type”: “array”,
“items”: {
“type”: “string”
}
},
“type”: {
“type”: “array”,
“items”: {
“type”: “integer”
}
},
“tag_value”: {
“type”: “array”,
“items”: {
“type”: “string”
}
},
“show_always”: {
“type”: “integer”
}
},
“required”: [
“protocol”,
“message”
]
}
}
}