Measurement API

Updating an specific user measurement

Edits a measurement from the login user

Parameters

Name Description
description Measurement description
amount Amount of exercise done by the user
user_id Login User
exercise_id Exercise done by the user

Request

Route

PUT /v1/users/1/measurements/1

cURL

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

Response

Status

204

Request

Route

PUT /v1/users/1/measurements/1

Body

cURL

curl "http://extracker-api.herokuapp.com/v1/users/1/measurements/1" -d '{"description":"Seconds","amount":"60","exercise_id":"1"}' -X PUT \
	-H "Content-Type: application/json" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

204