Driver->UpdateEx
UpdateEx (Driver Function)
This function updates one or more currently existing driver records within the HOS database. Includes the parameter InOffDutyDrvPolicy.
XML Request
The UpdateDriverEx function takes the following input parameters:
Parameter | Type | Optional | Description |
---|---|---|---|
DriverId | String | N | The driver ID for the driver being updated |
DriverPortalPin | String | Y | The Driver Protal PIN. Applies to customers that use enhanced Drivers Portal security |
UpdateDriverId | String | N | The new driver ID |
Password | String | N | The driver's password |
LastName | String | N | The driver's last name |
FirstName | String | N | The driver's first name |
DepotId | Short | Y | The ID of the depot to which the driver belongs |
InOffDutyDrvPolicy | Enum | N | Specifies if the driver is allowed to drive off duty or not. Enable/disable driver's use of Personal Conveyance. Possible values are: NotAllowed, Allowed. |
DriverGroup | String | Y | The group that the driver belongs to; if more than one, provide each string on a new line within the <DriverGroup> tag |
WaitingInOilWell | Enum | Y | Flag that determines if a driver can wait in oil well or not. Possible values are None (no change), Allowed, NotAllowed |
TwentyFourHrReset | Enum | Y | Flag that determines if a driver can take 24 hour reset or not. Possible values are None (no change), Allowed, NotAllowed |
HazmatLoadHauler | Enum | Y | Flag that determines if a driver can hazmat load or not. Possible values are None (no change), Allowed, NotAllowed |
EnableCanadianRules | Enum | Y | Flag indicating whether a driver is permitted to be enabled for Canadian rules. Possible values are None (no change), Allowed, NotAllowed |
EnableRestBreakExemption | Enum | Y | Flag indicating whether a driver is permitted to be enabled for Rest Break Exemption. Possible values are None (no change), Allowed, NotAllowed |
EnableSixteenHourExemption | Enum | Y | Flag that determines if a driver is enabled for 16-hour exemption. If the tag is omitted, no change. |
DefaultRuleSet | Enum | Y | The default driving rule set for this driver: USA, Canada, or Canada north of the 60th parallel; possible values are USA, CANMain, CANNorth, USACalifornia, USAFlorida, USATexas, USAAlaska |
USDefaultDutyCycle | Enum | Y | The driver's default duty cycle for a U.S. rule set; possible values are None (if a Canadian rule set is used), SevenDay, EightDay |
CANDefaultDutyCycle | Enum | Y | The driver's default duty cycle for a Canadian rule set; possible values are None(if a U.S. rule set is used), SevenDay, FourteenDay |
ELDExempt | Boolean | Y | Flag indicating driver is exempt from ELD requirements |
ELDExemptReason | String | Y | Up to 60 characters describing the reason, if driver is exempt. Mandatory if driver is exempt; not used otherwise |
CDL | String | Y | Commercial driver's license number (up to 20 chars) |
CDLState | Enum | Y | Issuing authority for commercial driver's license |
EnableYardMove | Enum | Y | Enable/disable driver's use of Yard Move. Possible values are Allowed, NotAllowed |
Feature Enum Table - CDLState
Enum Value |
---|
None |
Alabama |
Alaska |
Arkansas |
Arizona |
California |
Colorado |
Connecticut |
DistrictOfColumbia |
Delaware |
Florida |
Georgia |
Hawaii |
Iowa |
Idaho |
Illinois |
Indiana |
Kansas |
Kentucky |
Louisiana |
Massachusetts |
Maryland |
Maine |
Michigan |
Minnesota |
Missouri |
Mississippi |
Montana |
NorthCarolina |
NorthDakota |
Nebraska |
NewHampshire |
NewJersey |
NewMexico |
Nevada |
NewYork |
Ohio |
Oklahoma |
Oregon |
Pennsylvania |
RhodeIsland |
SouthCarolina |
SouthDakota |
Tennessee |
Texas |
Utah |
Virginia |
Vermont |
Washington |
Wisconsin |
WestVirginia |
Wyoming |
AmericanSamoa |
Guam |
NorthernMarianas |
PuertoRico |
VirginIslands |
Alberta |
BritishColumbia |
Manitoba |
NewBrunswick |
Newfoundland |
NovaScotia |
NorthwestTerritories |
Ontario |
PrinceEdwardIsland |
Quebec |
Saskatchewan |
YukonTerritory |
Aguascalientes |
BajaCaliforniaNorte |
BajaCaliforniaSur |
Coahuila |
Chihuahua |
Colima |
Campeche |
Chiapas |
DistritoFederal |
Durango |
Guerrero |
Guanajuato |
Hidalgo |
Jalisco |
Michoacan |
Morelos |
Mexico |
Nayarit |
NuevoLeon |
Oaxaca |
Puebla |
Queretaro |
QuintanaRoo |
Sinaloa |
SanLuisPotosi |
Sonora |
Tamaulipas |
Tabasco |
Tlaxcala |
Veracruz |
Yucatan |
Zacatecas |
Other |
Feature Enum Table - InOffDutyDrvPolicy
Enum Value | Comment |
---|---|
None | Same as not allowed |
Allowed | Feature allowed |
NotAllowed | Feature not allowed |
<soap:Body> <UpdateEx xmlns="http://www.omnitracs.com"> <updateParams> <Driver> <DriverId>string</DriverId> <DriverPortalPin>string</DriverPortalPin> <UpdateDriverId>string</UpdateDriverId> <Password>string</Password> <LastName>string</LastName> <FirstName>string</FirstName> <DepotId>short</DepotId> <DriverGroup> <string>string</string> <string>string</string> </DriverGroup> <InOffDutyDrvPolicy>NotAllowed or Allowed</InOffDutyDrvPolicy> <WaitingInOilWell>None or NotAllowed or Allowed</WaitingInOilWell> <TwentyFourHrReset>None or NotAllowed or Allowed</TwentyFourHrReset> <HazmatLoadHauler>None or NotAllowed or Allowed</HazmatLoadHauler> <EnableCanadianRules>None or NotAllowed or Allowed</EnableCanadianRules> <EnableRestBreakExemption>None or NotAllowed or Allowed</EnableRestBreakExemption> <EnableSixteenHourExemption>None or NotAllowed or Allowed</EnableSixteenHourExemption> <DefaultRuleSet>USA or CANMain or CANNorth or USACalifornia or USAFlorida or USATexas or USAAlaska</DefaultRuleSet> <USDefaultDutyCycle>None or SevenDay or EightDay</USDefaultDutyCycle> <CANDefaultDutyCycle>None or SevenDay or FourteenDay</CANDefaultDutyCycle> <ELDExempt>True or False</ELDExempt> <ELDExemptReason>string</ELDExemptReason> <CDL>string</CDL> <CDLState>Enum</CDLState> <EnableYardMove>NotAllowed or Allowed</EnableYardMove> </Driver> </updateParams> </UpdateEx> </soap:Body>
XML Response
The return result contains the Boolean parameter <UpdateResult>
, which indicates whether the update was successful (true
) or not (false
).
<soap:Body> <UpdateExResponse xmlns="http://www.omnitracs.com"> <UpdateExResult> <IsUpdated>boolean</IsUpdated> </UpdateExResult> </UpdateExResponse> </soap:Body>