Skip to main content
DELETE
/
api
/
routes
/
:routeId
/
favorites
Remove Route from Favorites
curl --request DELETE \
  --url https://api.example.com/api/routes/:routeId/favorites
{
  "success": true,
  "message": "<string>"
}
Remove a route from the authenticated user’s favorites. Users can favorite multiple routes and remove them individually.

Authentication

This endpoint requires authentication. Include a valid Bearer token in the Authorization header.

Path Parameters

routeId
string
required
UUID of the route to remove from favoritesExample: 987e6543-e21b-12d3-a456-426614174000

Response

success
boolean
required
Indicates if the request was successful
message
string
required
Success message confirming the route was removed from favorites

Example Request

curl -X DELETE https://api.losinmaduros.com/api/routes/987e6543-e21b-12d3-a456-426614174000/favorites \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Example Response

{
  "success": true,
  "message": "Route removed from favorites successfully"
}

Error Responses

401 Unauthorized
Invalid or missing authentication token
{
  "success": false,
  "error": "Unauthorized"
}
404 Not Found
The specified route is not in the user’s favorites
{
  "success": false,
  "error": "Favorite not found"
}

Build docs developers (and LLMs) love