Create PUT request resonsible for updating a workout. Remember to check if the person trying to update the workout is the owner of the workout. [user field with user id sending the request will be automatically added to the request body]
Example request
PUT API_URL/workouts/fj8190j8sa0jf802
Body
Required:
at least one field from the optional
Optional:
workout name
date of workout (with starting time)
duration
description / notes
exercises
equipment
company (people with whom the workout was with)
favourite (if added to favourites, set favourite to true)
access (people who should have access to this training data)
Create PUT request resonsible for updating a workout. Remember to check if the person trying to update the workout is the owner of the workout. [user field with user id sending the request will be automatically added to the request body]
Example request
PUT API_URL/workouts/fj8190j8sa0jf802
Body
Required:
Optional:
Path parameter
Response
Response should contain workoutID.