Skip to main content

Remove driver from team

DELETE 

/management/drivers/:id/teams/:team_id

RemoveFromTeam handles the HTTP request to remove a driver from a team. It expects the driver Id and team Id as URL parameters ("id" and "team_id"). The method parses these parameters, validates them, and calls the driverService to perform the removal. Returns a 200 OK status with a success message if the operation is successful. Returns a 422 Unprocessable Entity status with an error message if the Ids are invalid or if the removal fails.

Request

Responses

Driver removed from team