CreateDriverEvents
Overview
This API permits you to create one or multiple 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:Create.
Authentication
Authenticate with the API before running this API.
HTTP Method
Use the HTTP Method 'POST' for consuming this web service.
URL Examples
https://api.test.catch-e.com/fm/driver-events/Parameters - Path Variables
Headers
Body (JSON)
JSON Sample
Single Driver Event
[ { "driver_id" : "101018", "driver_event_code_id": "100001", "event_date": "2024-06-01", "event_value": "1", "description": "Event code: Reminder (API)", "driver_event_action_id": "100000", "due_date": "2024-07-01", "status_flag": "active", "completed_flag": "yes" } ] Multiple Driver Events
[ { "driver_id" : "100006", "driver_event_code_id": "100004", "event_date": "2024-06-01", "event_value": "1", "description": "Event code: Quote Accepted (API)", "driver_event_action_id": "100000", "due_date": "2024-07-01", "status_flag": "active", "completed_flag": "yes" }, { "driver_id" : "100007", "driver_event_code_id": "100005", "event_date": "2024-06-01", "event_value": "2", "description": "Event code: Documents Sent (API)", "driver_event_action_id": "100001", "due_date": "2024-07-01", "status_flag": "active", "completed_flag": "yes" } ]Response Details
Successful Response Example
{ { "_links": { "self": { "href": "https://api.test.catch-e.com/fm/driver-events/" } }, "_embedded": { "fm_driver_events": [ { "driver_event_id": "101935", "driver_id": "100006", "driver_event_code_id": "100004", "event_date": "2024-06-01", "event_value": "1", "description": "Event code: Quote Accepted (API)", "driver_event_value_id": null, "driver_event_description_id": null, "driver_event_action_id": "100000", "due_date": "2024-07-01", "completed_flag": "yes", "attachment_id": null, "user_id_edit": "11244", "last_edit": "2024-06-04 01:33:25", "status_flag": "active", "_links": { "self": { "href": "https://api.test.catch-e.com/fm/driver-events/101935" } } } ] }, "total_items": 1 }Error Response Examples
401 Unauthorized
{ "type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html", "title": "Unauthorized", "status": 401, "detail": "Unauthorized" }You have not authenticated before running this API or The token_timeout of the current session has passed. You need to authenticate again.
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 - Invalid Attachment ID
{ "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