This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Unable to set exercise name

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"
}

  • For further reference, I see there's a properties pairing map that is returned via :

    https://connect.garmin.com/web-translations/exercise_types/exercise_types.properties?bust=4.53.3.0

    But I'm specifying the workout name via the file returned from the /web-data/exercises/Exercises.json as all upper-case, separated by an underscore...