Retrieve all drivers in the account.
Retrieve Driver data by calling for all drivers within an account. Optionally filter by key fob id or driver id; a filtered call returns a single driver. The returned response is restricted to the REVEAL account’s data plan.
Query Parameters
Optional key fob id in hexadecimal format (8, 12 or 16 characters). When supplied, only the driver assigned to that key fob is returned. Takes precedence over driverId if both are supplied. A key fob id that is invalid or not assigned to a driver does not return an empty list; the request fails.
Example:23456789
Optional driver id. When supplied (and keyfobid is not), only the driver with that id is returned. A driver id that is invalid or not found does not return an empty list; the request fails.
Example:1
Response
application/json
Response
Successfully retrieved the list of drivers.
A driver together with related API links.
A driver record within a REVEAL account.
Show Child Parameters
Always returned. Href values are empty strings when the driver has no Driver Number.
Show Child Parameters
Create a new driver.
Create a driver record within the REVEAL account. Successful calls return a 201 code with the object details that were posted to the account.
Body
application/json
Body
Driver object containing the details of the new driver to create.
DriverWrite
Driver payload used to create (POST) a driver record.
The Driver Number, the unique identifier used to reference the driver within the API.
Example:100096
The email address for the driver. Must be unique. If several addresses are supplied, only the first is used, limited to 64 characters.
Example:user@example.com
The first name of the driver.
Example:Chris
The last name of the driver.
Example:Abernathy
True indicates the driver will have access to mobile applications. Default is false.
Default:false
Example:false
The phone number for the driver.
Example:5551234567
Response
application/json
Response
Driver successfully created.
Driver payload used to create (POST) a driver record.
The Driver Number, the unique identifier used to reference the driver within the API.
Example:100096
The email address for the driver. Must be unique. If several addresses are supplied, only the first is used, limited to 64 characters.
Example:user@example.com
The first name of the driver.
Example:Chris
The last name of the driver.
Example:Abernathy
True indicates the driver will have access to mobile applications. Default is false.
Default:false
Example:false
The phone number for the driver.
Example:5551234567
Echoed from the request; always 0 on create.
Example:0
Retrieve a specific driver by driver number.
Retrieve a specific driver by Driver Number.
Path Parameters
The Driver Number, the unique identifier used to reference the driver within the API.
Example:100096
Response
application/json
Response
Successfully retrieved the driver details.
DriverResource
A driver together with related API links.
A driver record within a REVEAL account.
Show Child Parameters
Always returned. Href values are empty strings when the driver has no Driver Number.
Show Child Parameters
Delete a driver by driver number.
Delete a driver record from a REVEAL account.
Path Parameters
The Driver Number of the driver record to delete.
Example:100096
Response
Response
Driver successfully deleted. The response has no body.
Update an existing driver.
Edit an existing driver within a REVEAL account. The Driver Number in the path identifies the existing driver record and cannot be changed by this call. The driver edits are included in the body of the request. PUT methods do not return an object review, only a standard HTTP status code.
Path Parameters
The Driver Number of the existing driver record to update.
Example:100096
Body
application/json
Body
Driver object containing the updated driver details.
DriverUpdate
Driver payload used to edit (PUT) a driver record. The Driver Number is taken from the path and cannot be changed. All fields replace the existing values; omitted fields are cleared (EnableMobileAccess becomes false).
The email address for the driver. Must be unique if changed. If several addresses are supplied, only the first is used, limited to 64 characters.
Example:user@example.com
The first name of the driver.
Example:Chris
The last name of the driver.
Example:Abernathy
True indicates the driver will have access to mobile applications. False when omitted.
Default:false
Example:false
The phone number for the driver.
Example:5551234567
Response
Response
Driver successfully updated.