Create PUT request resonsible for updating a tournament. Remember to check if the person trying to update the tournament is the owner of the tournament or an admin (is on an admin list).
Example request
PUT API_URL/tournaments/fj8190j8sa0jf802
Body
Required:
userID
at least one field from the optional
Optional:
tournament name
start date
duration
list of contestants
list of admins
determinant (not yet decided how it's going to work, but it will be required)
Create PUT request resonsible for updating a tournament. Remember to check if the person trying to update the tournament is the owner of the tournament or an admin (is on an admin list).
Example request
PUT API_URL/tournaments/fj8190j8sa0jf802
Body
Required:
Optional:
Path parameter
Response
Response should contain tournamentID.