Returns details of the most recent ELD malfunctions.
Fields
| Tag | Data Type | Required | Description |
| accountId | Long | No | The id of the Account that owns this record. |
| assetId | Long | Yes | The id of the Vehicle used during this ELD Malfunction |
| beginTimestamp | Text | No | Date and time when the ELD Malfunction began. Note: Format is in timestamp and timezone (YYYY-MM-DDTHH:MM:SS.sssZ, e.g: 1970-01-01T00:00:00.000Z) |
| driverHistoryUUID | Character (255) | No | The id of the Driver History record associated with the ELD Malfunction. |
| endTimestamp | Text | No | Date and time when the ELD Malfunction ended. Note: Format is in timestamp and timezone (YYYY-MM-DDTHH:MM:SS.sssZ, e.g: 1970-01-01T00:00:00.000Z) |
| eventType | Character (255) | No | Indicates the type of ELD Malfunction that occurred. Examples of eventType values are:
|
| id | Auto-incremented Long | Auto | Unique identifier |
| lastChangedDate | Text | Auto | Auto-generated timestamp of the last change made to this record Note: Format is in timestamp and timezone (YYYY-MM-DDTHH:MM:SS.sssZ, e.g: 1970-01-01T00:00:00.000Z) |
| userId | Long | Yes | The id of the Driver who owns this ELD Malfunction |
Create
| API PATH: | /api/v2/eldMalfunctions |
| METHOD: | POST |
| EXAMPLE REQUEST: |
[
{
"assetId": 1321545,
"userId": 1250887,
"eventType": "DiagMissing",
"beginTimestamp": "2018-06-11T11:30:00.000Z",
"driverHistoryUUID": "9cf93930-61f1-4f20-b24f-ce236ee7e319",
"endTimestamp": null
}
]
|
| EXAMPLE RESPONSE: |
[
{
"assetId": 1321545,
"userId": 1250887,
"eventType": "DiagMissing",
"beginTimestamp": "2018-06-11T11:30:00.000Z",
"driverHistoryUUID": "9cf93930-61f1-4f20-b24f-ce236ee7e319",
"endTimestamp": null,
"accountId": 1248280,
"id": 7,
"lastChangedDate": "2018-06-11T12:00:00.000Z"
}
]
|
Read
| API PATH: | /api/v2/eldMalfunctions |
| METHOD: | GET |
| PARAMETERS: |
user-id – Retrieves matching records for a specific User (e.g. user-id=496650, current User by default)
|
| SORTING: | sort=id – Sort records by their id field in ascending order (DEFAULT) sort=-id – Sort records by their id field in descending order sort=asset-id – Sort records by their assetId field in ascending order sort=-asset-id – Sort records by their assetId field in descending order sort=asset-vin – Sort records by the vin field of the asset based on their assetId field in ascending order sort=-asset-vin – Sort records by the vin field of the asset based on their assetId field in descending order sort=asset-name – Sort records by the name field of the asset based on their assetId field in ascending order sort=-asset-name – Sort records by the name field of the asset based on their assetId field in descending order sort=user-id – Sort records by their userId field in ascending order sort=-user-id – Sort records by their userId field in descending order sort=user-name – Sort records by the lastName, firstName and suffix fields of the user based on their userId field in ascending order sort=-user-name – Sort records by the lastName, firstName and suffix fields of the user based on their userId field in descending order sort=event-type – Sort records by their eventType field in ascending order sort=-event-type – Sort records by their eventType field in descending order sort=begin-timestamp – Sort records by their beginTimestamp field in ascending order sort=-begin-timestamp – Sort records by their beginTimestamp field in descending order sort=end-timestamp – Sort records by their endTimestamp field in ascending order sort=-end-timestamp – Sort records by their endTimestamp field in descending order |
| QUERY STRING EXAMPLES: | Get all ELD Malfunctions for the multiple authenticated users : ?user-id=1251004,1250887 Get two ELD Malfunctions for the authenticated user with an offset of 1 : ?user-id=1250887&offset=1&limit=2 Get all ELD Malfunctions of the current Account sorted by event type alphabetically: ?sort=event-type |
| EXAMPLE RESPONSE: |
[
{
"assetId": 1321545,
"userId": 1250887,
"eventType": "DiagMissing",
"beginTimestamp": "2018-06-11T11:30:00.000Z",
"driverHistoryUUID": "9cf93930-61f1-4f20-b24f-ce236ee7e319",
"endTimestamp": null,
"accountId": 1248280,
"id": 7,
"lastChangedDate": "2018-06-11T12:00:00.000Z"
}
]
|
Update
| API PATH: | /api/v2/eldMalfunctions |
| METHOD: | PUT |
| EXAMPLE REQUEST: |
[
{
"assetId": 1321545,
"userId": 1250887,
"eventType": "DiagMissing",
"beginTimestamp": "2018-06-11T11:30:00.000Z",
"driverHistoryUUID": "9cf93930-61f1-4f20-b24f-ce236ee7e319",
"endTimestamp": null,
"id": 7
}
]
|
| EXAMPLE RESPONSE: |
[
{
"assetId": 1321545,
"userId": 1250887,
"eventType": "DiagMissing",
"beginTimestamp": "2018-06-11T11:30:00.000Z",
"driverHistoryUUID": "9cf93930-61f1-4f20-b24f-ce236ee7e319",
"endTimestamp": null,
"accountId": 1248280,
"id": 7,
"lastChangedDate": "2018-06-11T12:00:00.000Z"
}
]
|
Delete
| API PATH: | /api/v2/eldMalfunctions/<id> |
| METHOD: | DELETE |