How to View Duty Status Violations through the SDK

Applies To

  • MyGeotab
  • Geotab Drive
  • HOS
  • SDK


  1. Navigate to the API runner
  2. Login to the corresponding server
  3. Run the following API call to view the Duty Status Violations of a Driver
    •"Get", {
      "typeName": "DutyStatusViolation",
      "search": {
      "UserSearch": {"id":"b1"},
      }, function(result) {
      console.log("Done: ", result);
      }, function(e) {
      console.error("Failed:", e);
    • Modify the User ID accordingly
    • Modify the fromDate and toDate as required

Additional Notes

  • The timestamp in fromDate and toDate are in UTC
  • The User ID can be found from the URL of the MyGeotab User Edit page by navigating to Administration > Users