curl --request PUT \
--url https://api.example.com/api/route-calls/:id \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"description": "<string>",
"image": "<string>",
"dateRoute": "<string>",
"pace": "<string>"
}
'{
"success": true,
"data": {},
"message": "<string>",
"400 Bad Request": {},
"401 Unauthorized": {},
"403 Forbidden": {},
"404 Not Found": {}
}Update an existing route call (organizer only)
curl --request PUT \
--url https://api.example.com/api/route-calls/:id \
--header 'Content-Type: application/json' \
--data '
{
"title": "<string>",
"description": "<string>",
"image": "<string>",
"dateRoute": "<string>",
"pace": "<string>"
}
'{
"success": true,
"data": {},
"message": "<string>",
"400 Bad Request": {},
"401 Unauthorized": {},
"403 Forbidden": {},
"404 Not Found": {}
}Authorization: Bearer <your_token>
123e4567-e89b-12d3-a456-426614174000"2026-02-16T11:00:00Z"ROCA - Very slow pace (like a rock)CARACOL - Slow pace (like a snail)GUSANO - Moderate pace (like a worm)MARIPOSA - Fast pace (like a butterfly)EXPERIMENTADO - Very fast/experienced paceLOCURA_TOTAL - Extreme pace (total madness)MIAUCORNIA - Special/fun pace (meow-corn){
"success": false,
"error": "Unauthorized"
}
{
"success": false,
"error": "Only the organizer can update this route call"
}
{
"success": false,
"error": "Route call not found"
}
curl -X PUT "https://api.losinmaduros.com/api/route-calls/123e4567-e89b-12d3-a456-426614174000" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"title": "Ruta Actualizada Casa de Campo",
"description": "Nueva descripción con más detalles...",
"dateRoute": "2026-02-16T11:00:00Z",
"pace": "GUSANO"
}'
{
"success": true,
"data": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"routeId": "987e6543-e21b-12d3-a456-426614174000",
"organizerId": "user_2abc123def456",
"title": "Ruta Actualizada Casa de Campo",
"description": "Nueva descripción con más detalles...",
"image": "https://example.com/route-call.jpg",
"dateRoute": "2026-02-16T11:00:00Z",
"pace": "GUSANO",
"status": "SCHEDULED",
"createdAt": "2026-02-10T10:00:00Z",
"updatedAt": "2026-02-11T14:30:00Z",
"route": {
"id": "987e6543-e21b-12d3-a456-426614174000",
"name": "Casa de Campo",
"slug": "casa-de-campo",
"image": "https://example.com/route.jpg",
"approximateDistance": "15 km",
"level": ["INTERMEDIATE"]
},
"organizer": {
"id": "user_2abc123def456",
"name": "John",
"imageUrl": "https://example.com/avatar.jpg"
},
"meetingPoints": [
{
"id": "abc12345-e89b-12d3-a456-426614174000",
"type": "PRIMARY",
"name": "Explanada",
"customName": null,
"location": "https://maps.app.goo.gl/gCJfpLSoy3D454Y19",
"time": null,
"createdAt": "2026-02-10T10:00:00Z"
}
],
"_count": {
"attendances": 12
}
},
"message": "Route call updated successfully"
}
updatedAt timestamp will be automatically updatedrouteId cannot be changed after creation