This endpoint creates an open exercise workout
Unique identifier for this exercise. The machine should generate a unique id for each exercise submitted.
The start of the exercise in milliseconds since the epoch time. It can not be older than seven days.
The average heart rate of this workout in beats/min (bpm).
Training Plan ID. When the user selects an exercise from the training plan, this field should contain the training plan id from that exercise when submitting the workout.
Training Plan Exercise ID. When the user selects an exercise from the training plan, this field should contain the training plan exercise id from that exercise when submitting the workout.
Order number of the exercise in the session of the training plan. This can be used for sorting.
- Mock serverhttps://developer.egym.com/_mock/equipment/partner-api/api/v1/open-exercises/workouts
- Test (ext-1)https://partner-api.ext-1.test.co.egym.coffee/api/v1/open-exercises/workouts
- Productionhttps://partner-api.api.egym.com/api/v1/open-exercises/workouts
curl -i -X POST \
https://developer.egym.com/_mock/equipment/partner-api/api/v1/open-exercises/workouts \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"uniqueExerciseId": "string",
"startTimestamp": 1672531200000,
"exerciseName": "string",
"kiloCalories": 100,
"averageHeartRate": 150,
"trainingPlanId": 7189234126347912000,
"trainingPlanExerciseId": -767612783462,
"orderNumber": 1,
"intervals": [
{
"duration": 60000
}
]
}'