Add an exercise
POST {{base_url}}/exercises
A POST
to the /exercises
endpoint allows your application to create a new exercise. A successful response will contain an object with the exercise_id
.
Request Body
{"name"=>"snacks", "description"=>"intake a light meal, eaten in between regular meals", "muscles_worked"=>["biceps", "abs"], "difficulty"=>"advanced"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Authorization | string | ||
Content-Type | string |
RESPONSES
status: Created
[{"exercise_id":"403829","status":"created"}]