Skip to main content
POST
/
driver-trailer-assignments
Create a new driver-trailer assignment
curl --request POST \
  --url https://api.samsara.com/driver-trailer-assignments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "driverId": "494123",
  "trailerId": "12345",
  "startTime": "2019-06-13T19:08:25Z"
}
'
{
  "data": {
    "createdAtTime": "2019-06-13T19:08:25Z",
    "driverId": "0987",
    "id": "08b3aeada5f4ab3010c0b4efa28d2d1890dbf8d48d2d6",
    "startTime": "2019-06-13T19:08:25Z",
    "trailerId": "494123",
    "updatedAtTime": "2019-06-13T19:08:25Z"
  }
}

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.

Body

application/json

Create a new driver-trailer assignment

driverId
string
required

ID of the driver. This can be either a unique Samsara ID or an external ID for the driver.

Example:

"494123"

trailerId
string
required

ID of the trailer. This can be either a unique Samsara ID or an external ID for the trailer.

Example:

"12345"

startTime
string

The start time in RFC 3339 format. The time needs to be current or within the past 7 days. Defaults to now if not provided

Example:

"2019-06-13T19:08:25Z"

Response

OK response.

data
object
required

Response after successfully submitting a Driver Trailer Assignment