Hello,
I'm attempting to use the proxy web api (via connect.garmin.com/.../workout) to send the following payload to create a new workout. I get a success back from the API and I am able to see the new workout in the Garmin-Connect UI, however regardless if I attempt to populate the "exerciseName" field, it doesn't appear.
Should I attempt to populate the exercise name in a patch/update call? Or is there some mysticism in how to get the API to take the value?
Thank you,
(Screenshot of missing Exercise Name)
(JSON Payload)
{
"sportType": {
"sportTypeId": 5,
"sportTypeKey": "strength_training"
},
"workoutName": "LEG_DAY",
"workoutSegments": [
{
"segmentOrder": 1,
"sportType": {
"sportTypeId": 5,
"sportTypeKey": "strength_training"
},
"workoutSteps": [
{
"type": "ExecutableStepDTO",
"stepId": null,
"stepOrder": 1,
"childStepId": null,
"description": null,
"stepType": {
"stepTypeId": 3,
"stepTypeKey": "interval"
},
"endCondition": {
"conditionTypeId": 10,
"conditionTypeKey": "reps"
},
"endConditionValue": 10,
"endConditionCompare": null,
"endConditionZone": null,
"targetType": {
"workoutTargetTypeId": 1,
"workoutTargetTypeKey": "no.target"
},
"targetValueOne": null,
"targetValueTwo": null,
"zoneNumber": null,
"exerciseName": "BARBELL_BENCH_PRESS"
}
]
}
],
"description": "noddahl-workout"
}