Delete Route
Delete an existing route from Samsara by its ID.
Operation
Section titled “Operation”deleteRoute
Resource
Section titled “Resource”route
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| Route ID | string | Yes | - | The ID of the route to delete |
Response
Section titled “Response”Success
Section titled “Success”{ "success": true, "routeId": "route_123", "message": "Route deleted successfully"}{ "success": false, "error": "Route not found", "routeId": "invalid_id"}Error Handling
Section titled “Error Handling”- Missing API Token: Samsara credential is missing apiToken
- Route Not Found: Route with specified ID does not exist
- Permission Denied: API token lacks permission for this operation