Skip to main content
POST
/
v1
/
fleet
/
drivers
/
{driver_id}
/
hos
/
duty_status
Set a duty status for a specific driver
curl --request POST \
  --url https://api.samsara.com/v1/fleet/drivers/{driver_id}/hos/duty_status \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "duty_status": "ON_DUTY",
  "location": "Loading dock",
  "remark": "Beginning On Duty Shift",
  "status_change_at_ms": 1580834793568,
  "vehicle_id": 1234
}
'
This response has no body data.

Documentation Index

Fetch the complete documentation index at: https://samsara-showcase.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

driver_id
integer<int64>
required

ID of the driver for whom the duty status is being set.

Body

application/json
duty_status
string
required

Duty status to set the driver to. The only supported values are 'ON_DUTY' and 'OFF_DUTY'.

Example:

"ON_DUTY"

location
string

Location to associate the duty status change with.

Example:

"Loading dock"

remark
string

Remark to associate the duty status change with.

Example:

"Beginning On Duty Shift"

status_change_at_ms
number<int64>

Timestamp that the duty status will begin at specified in milliseconds UNIX time. Defaults to the current time if left blank. This can only be set to up to 8 hours in the past.

Example:

1580834793568

vehicle_id
number<int64>

Vehicle ID to associate the duty status change with.

Example:

1234

Response