PatchDriverEvents
Overview
This API permits you to edit a given list of driver events.
Permissions
To run this API, the nominated 'web-services' role needs to be given permission.
If you are not actively using the API, leave the permission off for better security.
Go to Roles / Apis and check on driverEvents:Update.
Authentication
Authenticate with the API before running this API.
HTTP Method
Use the HTTP Method 'PATCH' for consuming this web service.
URL Examples
https://api.test.catch-e.com/fm/driver-events/Body (JSON)
JSON Sample
[ { "driver_event_id": "101879", "driver_event_code_id": "100006", "event_date": "2024-05-17", "driver_event_action_id": "100001", "status_flag": "active" }, { "driver_event_id": "101878", "driver_event_code_id": "100007", "event_date": "2024-06-20", "driver_event_action_id": "100000", "status_flag": "active" } ]Response Details
Successful Response Example
{
"_links": {
"self": {
"href": "https://api.test.catch-e.com/fm/driver-events/"
}
},
"_embedded": {
"fm_driver_events": [
{
"driver_event_id": "101879",
"driver_id": "101313",
"driver_event_code_id": "100006",
"event_date": "2024-05-17",
"event_value": "",
"description": "",
"driver_event_value_id": null,
"driver_event_description_id": null,
"driver_event_action_id": "100001",
"due_date": "0000-00-00",
"completed_flag": "no",
"attachment_id": null,
"user_id_edit": "11244",
"last_edit": "2024-05-17 05:55:41",
"status_flag": "active",
"_links": {
"self": {
"href": "https://api.test.catch-e.com/fm/driver-events/101879"
}
}
},
{
"driver_event_id": "101878",
"driver_id": "101313",
"driver_event_code_id": "100007",
"event_date": "2024-06-20",
"event_value": "",
"description": "",
"driver_event_value_id": null,
"driver_event_description_id": null,
"driver_event_action_id": "100000",
"due_date": "0000-00-00",
"completed_flag": "no",
"attachment_id": null,
"user_id_edit": "11244",
"last_edit": "2024-05-17 05:55:41",
"status_flag": "active",
"_links": {
"self": {
"href": "https://api.test.catch-e.com/fm/driver-events/101878"
}
}
}
]
},
"total_items": 2
}Error Response Examples
403 Forbidden
{
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html",
"title": "Forbidden",
"status": 403,
"detail": "Forbidden"
}You do not have permissions for this request. Go to System Roles and enter 'web_services'. Navigate to the Roles / APIs tab to make sure the permission you need to run this API is checked.
422 Unprocessable Entity
{
"validation_messages": [
{
"attachment_id": {
"noRecordFound": "No record matching the input was found"
}
}
],
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html",
"title": "Unprocessable Entity",
"status": 422,
"detail": "Failed Validation"
}Attachment ID not found or is not valid.
Was this helpful?
Still need help? Ask the team