Update a driver
Update a specific driver's information. This can also be used to activate or de-activate a given driver by setting the driverActivationStatus field. If the driverActivationStatus field is 'deactivated' then the user can also specify the deactivatedAtTime. The deactivatedAtTime cannot be more than 6 months in the past and must not come before the dirver's latest active HOS log. It will be considered an error if deactivatedAtTime is provided with a driverActivationStatus of active.
Submit Feedback: Likes, dislikes, and API feature requests should be filed as feedback in our <a href="https://forms.gle/zkD4NCH7HjKb7mm69" target="_blank">API feedback form</a>. If you encountered an issue or noticed inaccuracies in the API documentation, please <a href="https://www.samsara.com/help" target="_blank">submit a case</a> to our support team.
To use this endpoint, select Write Drivers under the Drivers category when creating or editing an API token. <a href="https://developers.samsara.com/docs/authentication#scopes-for-api-tokens" target="_blank">Learn More.</a>
Request
- Base URLhttps://api.samsara.com
- AuthHTTP bearer
Path parameters
ID of the driver. This can either be the Samsara-specified ID, or an external ID. External IDs are customer specified key-value pairs created in the POST or PATCH requests of this resource. To specify an external ID as part of a path parameter, use the following format: key:value. For example, payrollId:ABFS18600
Request body
Example request
{
"attributes": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "License Certifications"
}
],
"carrierSettings": {
"carrierName": "Acme Inc.",
"dotNumber": 98231,
"homeTerminalAddress": "1234 Pear St., Scranton, PA 62814",
"homeTerminalName": "Acme Inc.",
"mainOfficeAddress": "1234 Pear St., Scranton, PA 62814"
},
"currentIdCardCode": "941767043",
"dateOfBirth": "1985-07-21",
"deactivatedAtTime": "2019-05-18T20:27:35Z",
"eldExemptReason": "Bad driver",
"email": "susan.jones@example.com",
"externalIds": {
"maintenanceId": "250020",
"payrollId": "ABFS18600"
},
"hasDrivingFeaturesHidden": true,
"hasVehicleUnpinningEnabled": true,
"licenseNumber": "E1234567",
"licenseState": "CA",
"name": "Susan Jones",
"notes": "Also goes by the nickname Furious Fred.",
"password": "aSecurePassword1234",
"phone": "5558234327",
"profileImageBase64": "/9j/4AAQSkZJRgABAQEAYABgAAD...",
"profileImageUrl": "https://example.com/images/driver-profile.jpg",
"staticAssignedVehicleId": "456",
"tachographCardNumber": "1000000492436002",
"tagIds": [
"147"
],
"timezone": "America/Los_Angeles",
"trailerGroupTagId": "342418",
"usDriverRulesetOverride": {
"cycle": "TX 70 hour / 7 day",
"restart": "34-hour Restart",
"restbreak": "None",
"usStateToOverride": "TX"
},
"username": "SusanJones",
"vehicleGroupTagId": "342417"
}Response
Updated driver object, with ID.
Example response
{
"data": {
"attributes": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"name": "License Certifications"
}
],
"carrierSettings": {
"carrierName": "Acme Inc.",
"dotNumber": 98231,
"homeTerminalAddress": "1234 Pear St., Scranton, PA 62814",
"homeTerminalName": "Acme Inc.",
"mainOfficeAddress": "1234 Pear St., Scranton, PA 62814"
},
"createdAtTime": "2019-05-18T20:27:35Z",
"currentIdCardCode": "941767043",
"dateOfBirth": "1985-07-21",
"eldExemptReason": "Bad driver",
"eldSettings": {
"rulesets": [
{
"break": "Property (off-duty/sleeper)",
"cycle": "USA 60 hour / 7 day",
"jurisdiction": "AR",
"restart": "Default",
"shift": "US Interstate Property"
}
]
},
"email": "susan.jones@example.com",
"externalIds": {
"maintenanceId": "250020",
"payrollId": "ABFS18600"
},
"hasDrivingFeaturesHidden": true,
"hasVehicleUnpinningEnabled": true,
"id": "123",
"licenseNumber": "E1234567",
"licenseState": "CA",
"name": "Susan Jones",
"notes": "Also goes by the nickname Furious Fred.",
"peerGroupTag": {
"id": "3914",
"name": "East Coast",
"parentTagId": "4815"
},
"phone": "5558234327",
"profileImageUrl": "https://example.com/images/driver-profile.jpg",
"staticAssignedVehicle": {
"id": "123456789",
"name": "Midwest Truck #4"
},
"tachographCardNumber": "1000000492436002",
"tags": [
{
"id": "3914",
"name": "East Coast",
"parentTagId": "4815"
}
],
"timezone": "America/Los_Angeles",
"trailerGroupTag": {
"id": "3914",
"name": "West Coast",
"parentTagId": "4815"
},
"updatedAtTime": "2019-06-13T19:08:25Z",
"usDriverRulesetOverride": {
"cycle": "TX 70 hour / 7 day",
"restart": "34-hour Restart",
"restbreak": "None",
"usStateToOverride": "TX"
},
"username": "SusanJones",
"vehicleGroupTag": {
"id": "3914",
"name": "East Coast",
"parentTagId": "4815"
}
}
}Changes
No recorded changes to this operation across all 1 revision of this API.