Deletes a health profile from the system.
Endpoint
Authentication
This endpoint requires a valid JWT token.
Authorization: Bearer YOUR_JWT_TOKEN
Path Parameters
The unique identifier of the health profile to delete
Response
Returns a success message or the deleted health profile object.
Example Request
curl -X DELETE http://localhost:3000/salud/1 \
-H "Authorization: Bearer YOUR_JWT_TOKEN"
Example Response
{
"message": "Health profile deleted successfully"
}
Error Responses
Not Found
{
"statusCode": 404,
"message": "Health profile not found"
}
Invalid ID
{
"statusCode": 400,
"message": "Validation failed (numeric string is expected)",
"error": "Bad Request"
}
This operation cannot be undone. Make sure you want to permanently delete this health profile before proceeding.