{
"opencollection": "1.0.0",
"info": {
"name": "Samsara Routes API",
"version": "2024-11-18"
},
"request": {
"auth": {
"type": "bearer",
"token": "{{bearerToken}}"
}
},
"items": [
{
"info": {
"name": "Routes",
"type": "folder"
},
"items": [
{
"info": {
"name": "Fetch All Routes",
"type": "http"
},
"http": {
"method": "GET",
"url": "https://api.samsara.com/fleet/routes",
"params": [
{
"name": "startTime",
"value": "",
"type": "query",
"description": " A start time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00)."
},
{
"name": "endTime",
"value": "",
"type": "query",
"description": " An end time in RFC 3339 format. Defaults to now if not provided. Millisecond precision and timezones are supported. (Examples: 2019-06-13T19:08:25Z, 2019-06-13T19:08:25.455Z, OR 2015-09-15T14:00:12-04:00)."
},
{
"name": "limit",
"value": "",
"type": "query",
"description": "The limit for how many objects will be in the response. Default and max for this value is 512 objects."
},
{
"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."
}
]
},
"docs": "Returns multiple routes. The legacy version of this endpoint can be found at [samsara.com/api-legacy](https://www.samsara.com/api-legacy#operation/fetchAllDispatchRoutes).\n\n Rate limit: 5 requests/sec (learn more about rate limits here).\n\nTo use this endpoint, select **Read Routes** under the Driver Workflow category when creating or editing an API token. Rate limit: 100 requests/min (learn more about rate limits here).\n\nTo use this endpoint, select **Write Routes** under the Driver Workflow category when creating or editing an API token. Rate limit: 5 requests/sec (learn more about rate limits Rate limit: 25 requests/sec (learn more about rate limits here).\n\nTo use this endpoint, select **Read Routes** under the Driver Workflow category when creating or editing an API token. Rate limit: 100 requests/min (learn more about rate limits here).\n\nTo use this endpoint, select **Write Routes** under the Driver Workflow category when creating or editing an API token. Learn More.\n \n\n **Submit Feedback**: Likes, dislikes, and API feature req"
},
{
"info": {
"name": "Delete a Route",
"type": "http"
},
"http": {
"method": "DELETE",
"url": "https://api.samsara.com/v1/fleet/dispatch/routes/:route_id_or_external_id",
"params": [
{
"name": "route_id_or_external_id",
"value": "",
"type": "path",
"description": "ID of the route. 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`"
}
],
"body": {
"type": "json",
"data": "{}"
}
},
"docs": "\n\n\nThis endpoint is still on our legacy API.\n\n\n\nDelete a dispatch route and its associated jobs. \n\n **Submit Feedback**: Likes, dislikes, and API feature requests should be filed as feedback in our API feedback form. If you encountered an issue or noticed inaccuracies in the API documentation, please submi"
}
]
}
],
"bundled": true
}