Exercise API

Updating an specific exercise

Updates a new exercise requires an admin user to be logged in

Parameters

Name Description
name Exercise name
user_id Admin User id

Request

Route

PUT /v1/exercises/1

cURL

curl "http://extracker-api.herokuapp.com/v1/exercises/1" -d '' -X PUT \
	-H "Content-Type: application/json" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

204

Request

Route

PUT /v1/exercises/1

Body

cURL

curl "http://extracker-api.herokuapp.com/v1/exercises/1" -d '{"name":"Push-ups","user_id":"1"}' -X PUT \
	-H "Content-Type: application/json" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

204