Back to index

CreateDriver_v1

This method allows you to create a driver in the database. Calls to this endpoint will fail if you are an ELD enabled customer, use the CreateDriver_v2 endpoint for creating ELD drivers.

Parameters:

[in] usn The user-name that you need to use to authenticate on this interface.
[in] pwd The password that you need to use to authenticate on this interface.
[in] options String parameter. This is currently unused and reserved for future versions of the API. Pass in an empty string.
[in] name String parameter. This is the display name for the diver.
[in] firstName String parameter. This is the divers' first name.
[in] surname String parameter. This is the divers' surname.
[in] telephoneNumber String parameter. This is the telephone number for the driver.
[in] employeeNumber String parameter. This is the drivers employee number.
[in] driverFolderName String parameter. This is the name of the folder that the employee is a member of.
[out] driverID int referring to the ID of the newly created driver.
[out] errorMsg If an error happpens this string contains the error message. In case an error has happened (this variable contains a valid non-empty string) then the return value will not contain any usable data, do not try to parse it as an xml.
return value If the errorMsg variable is null or empty then the returned string contains the requested data in xml format. The xml has the following structure:
<?xml version="1.0" encoding="utf-16"?>
<root>
<drivers>
  <driver name="TestDriver1" driverID="6079" error="" />
</locations>
</root>
Please note this.

Remarks

Minimum R-COM Database version

0.2009

Error messages

Please see this page.