{
"opencollection": "1.0.0",
"info": {
"name": "Samsara Trailer API",
"version": "2024-11-18"
},
"request": {
"auth": {
"type": "bearer",
"token": "{{bearerToken}}"
}
},
"items": [
{
"info": {
"name": "Trailer",
"type": "folder"
},
"items": [
{
"info": {
"name": "[beta] Get Currently Active Driver-trailer Assignments for Driver.",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://api.samsara.com/driver-trailer-assignments",
"params": [
{
"name": "driverIds",
"value": "",
"type": "query",
"description": " A filter on the data based on this comma-separated list of driver IDs and externalIds. Example: `driverIds=1234,5678,payroll:4841`"
},
{
"name": "after",
"value": "",
"type": "query",
"description": " If specified, this should be the endCursor value from the previous page of results. When present, this request will return the next page of results that occur immediately after the previous page of results."
},
{
"name": "includeExternalIds",
"value": "",
"type": "query",
"description": "Optional boolean indicating whether to return external IDs on supported entities"
}
]
},
"docs": "Get currently active driver-trailer assignments for driver.\n\n Rate limit: 5 requests/sec (learn more about rate limits here).\n\nTo use this endpoint, select **Read Assignments** under the Assignments category when creating or editing an API token. Learn More.\n \n\n **Submit Feedback**: Likes, dislikes, and API fea"
},
{
"info": {
"name": "[beta] Create a New Driver-trailer Assignment",
"type": "http"
},
"http": {
"method": "POST",
"url": "https://api.samsara.com/driver-trailer-assignments",
"body": {
"type": "json",
"data": "{}"
}
},
"docs": "Create a new driver-trailer assignment\n\n Rate limit: 5 requests/sec (learn more about rate limits here).\n\nTo use this endpoint, select **Write Assignments** under the Assignments category when creating or editing an API token. Learn More.\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should"
},
{
"info": {
"name": "[beta] Update an Existing Driver-trailer Assignment.",
"type": "http"
},
"http": {
"method": "PATCH",
"url": "https://api.samsara.com/driver-trailer-assignments",
"params": [
{
"name": "id",
"value": "",
"type": "query",
"description": "Samsara ID for the assignment."
}
],
"body": {
"type": "json",
"data": "{}"
}
},
"docs": "Update an existing driver-trailer assignment.\n\n Rate limit: 5 requests/sec (learn more about rate limits here).\n\nTo use this endpoint, select **Write Assignments** under the Assignments category when creating or editing an API token. Learn More.\n \n\n **Submit Feedback**: Likes, dislikes, and API feature requests"
}
]
}
],
"bundled": true
}