Events
Data Schema
The event object contains the following fields:
Field | Type | Description |
---|---|---|
id |
integer |
The ID of the event |
type |
string |
The type of the event |
eventTime |
string |
The time the event occurred (ISO 8601 format) |
deviceId |
integer |
The ID of the device associated with the event |
positionId |
integer |
The ID of the position associated with the event |
geofenceId |
integer |
The ID of the geofence associated with the event |
maintenanceId |
integer |
The ID of the maintenance event associated with the event |
attributes |
object |
Additional attributes associated with the event |
Retrieve Event
Gets information for a specific event.
Endpoint:
GET /events/{id}
Authorization:
- Requires Basic Authentication (
basicAuth
) - Requires Cookie Authentication (
JSESSIONID
)
cURL Request:
curl -u username:password --cookie "JSESSIONID=your_session_id" -X GET "https://itsochvts.com/api/events/1"
Path Parameters:
- id (required): The ID of the event to retrieve
Response:
200 OK
{
"id": 0,
"type": "string",
"eventTime": "2025-02-18T07:22:23Z",
"deviceId": 0,
"positionId": 0,
"geofenceId": 0,
"maintenanceId": 0,
"attributes": {}
}