Driver-Trailer Assignments

Create a new driver-trailer assignment

Create a new driver-trailer assignment

<b>Rate limit:</b> 5 requests/sec (learn more about rate limits <a href="https://developers.samsara.com/docs/rate-limits" target="_blank">here</a>).

To use this endpoint, select Write Assignments under the Assignments 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>

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.

post/driver-trailer-assignments

Request

  • Base URL
    https://api.samsara.com
  • Auth
    HTTP bearer

Request body

driverIdstring required

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

startTimestring

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

trailerIdstring required

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

Example request

{
  "driverId": "494123",
  "startTime": "2019-06-13T19:08:25Z",
  "trailerId": "12345"
}

Response

OK response.

Example response

{
  "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"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.