AjnaView GPS Asset tracking server API documentation.
Without any params, returns a list of the user's devices
| all | boolean Can only be used by admins to get all entities |
| userId | integer Standard users can use this only with their own userId |
| id | integer To get one or more devices. Multiple params can be passed like |
| uniqueId | string To get one or more devices. Multiple params can be passed like |
[- {
- "id": 0,
- "name": "string",
- "uniqueId": "string",
- "status": "string",
- "disabled": true,
- "lastUpdate": "2019-08-24T14:15:22Z",
- "positionId": 0,
- "groupId": 0,
- "phone": "string",
- "model": "string",
- "contact": "string",
- "category": "string",
- "geofenceIds": [
- 0
], - "attributes": { }
}
]Without any params, it returns a list of last known positions for all the user's Devices. from and to fields are not required with id.
| deviceId | integer deviceId is optional, but requires the from and to parameters when used |
| from | string <date-time> in IS0 8601 format. eg. |
| to | string <date-time> in IS0 8601 format. eg. |
| id | integer To get one or more positions. Multiple params can be passed like |
[- {
- "id": 0,
- "deviceId": 0,
- "protocol": "string",
- "deviceTime": "2019-08-24T14:15:22Z",
- "fixTime": "2019-08-24T14:15:22Z",
- "serverTime": "2019-08-24T14:15:22Z",
- "outdated": true,
- "valid": true,
- "latitude": 0,
- "longitude": 0,
- "altitude": 0,
- "speed": 0,
- "course": 0,
- "address": "string",
- "accuracy": 0,
- "network": { },
- "attributes": { }
}
]At least one deviceId or one groupId must be passed
| deviceId | Array of integers |
| groupId | Array of integers |
| from required | string <date-time> in IS0 8601 format. eg. |
| to required | string <date-time> in IS0 8601 format. eg. |
[- {
- "id": 0,
- "deviceId": 0,
- "protocol": "string",
- "deviceTime": "2019-08-24T14:15:22Z",
- "fixTime": "2019-08-24T14:15:22Z",
- "serverTime": "2019-08-24T14:15:22Z",
- "outdated": true,
- "valid": true,
- "latitude": 0,
- "longitude": 0,
- "altitude": 0,
- "speed": 0,
- "course": 0,
- "address": "string",
- "accuracy": 0,
- "network": { },
- "attributes": { }
}
]At least one deviceId or one groupId must be passed
| deviceId | Array of integers |
| groupId | Array of integers |
| type | Array of strings % can be used to return events of all types |
| from required | string <date-time> in IS0 8601 format. eg. |
| to required | string <date-time> in IS0 8601 format. eg. |
[- {
- "id": 0,
- "type": "string",
- "eventTime": "2019-08-24T14:15:22Z",
- "deviceId": 0,
- "positionId": 0,
- "geofenceId": 0,
- "maintenanceId": 0,
- "attributes": { }
}
]At least one deviceId or one groupId must be passed
| deviceId | Array of integers |
| groupId | Array of integers |
| from required | string <date-time> in IS0 8601 format. eg. |
| to required | string <date-time> in IS0 8601 format. eg. |
[- {
- "deviceId": 0,
- "deviceName": "string",
- "maxSpeed": 0,
- "averageSpeed": 0,
- "distance": 0,
- "spentFuel": 0,
- "engineHours": 0
}
]At least one deviceId or one groupId must be passed
| deviceId | Array of integers |
| groupId | Array of integers |
| from required | string <date-time> in IS0 8601 format. eg. |
| to required | string <date-time> in IS0 8601 format. eg. |
[- {
- "deviceId": 0,
- "deviceName": "string",
- "maxSpeed": 0,
- "averageSpeed": 0,
- "distance": 0,
- "spentFuel": 0,
- "duration": 0,
- "startTime": "2019-08-24T14:15:22Z",
- "startAddress": "string",
- "startLat": 0,
- "startLon": 0,
- "endTime": "2019-08-24T14:15:22Z",
- "endAddress": "string",
- "endLat": 0,
- "endLon": 0,
- "driverUniqueId": 0,
- "driverName": "string"
}
]At least one deviceId or one groupId must be passed
| deviceId | Array of integers |
| groupId | Array of integers |
| from required | string <date-time> in IS0 8601 format. eg. |
| to required | string <date-time> in IS0 8601 format. eg. |
[- {
- "deviceId": 0,
- "deviceName": "string",
- "duration": 0,
- "startTime": "2019-08-24T14:15:22Z",
- "address": "string",
- "lat": 0,
- "lon": 0,
- "endTime": "2019-08-24T14:15:22Z",
- "spentFuel": 0,
- "engineHours": 0
}
]Without params, it returns a list of Notifications the user has access to
| all | boolean Can only be used by admins to get all entities |
| userId | integer Standard users can use this only with their own userId |
| deviceId | integer Standard users can use this only with _deviceId_s, they have access to |
| groupId | integer Standard users can use this only with _groupId_s, they have access to |
| refresh | boolean |
[- {
- "id": 0,
- "type": "string",
- "always": true,
- "web": true,
- "mail": true,
- "sms": true,
- "calendarId": 0,
- "attributes": { }
}
]Without params, it returns a list of Geofences the user has access to
| all | boolean Can only be used by admins to get all entities |
| userId | integer Standard users can use this only with their own userId |
| deviceId | integer Standard users can use this only with _deviceId_s, they have access to |
| groupId | integer Standard users can use this only with _groupId_s, they have access to |
| refresh | boolean |
[- {
- "id": 0,
- "name": "string",
- "description": "string",
- "area": "string",
- "calendarId": 0,
- "attributes": { }
}
]Without params, it returns a list of Employees/Drivers the user has access to
| all | boolean Can only be used by admins to get all entities |
| userId | integer Standard users can use this only with their own userId |
| deviceId | integer Standard users can use this only with _deviceId_s, they have access to |
| groupId | integer Standard users can use this only with _groupId_s, they have access to |
| refresh | boolean |
[- {
- "id": 0,
- "name": "string",
- "uniqueId": "string",
- "attributes": { }
}
]