Workout Configuration
Parameters for configuring workout behavior and progression.
| Parameter | Type | Description | Effect |
| planC | string | Plan configuration identifier | Specifies which workout plan to load |
| exercises | string[] | Array of exercise identifiers | Defines the specific exercises to include in a session |
| currentExercise | string | Current exercise identifier | Sets the active exercise for camera component |
| completed_exercises | string[] | Previously completed exercises | Allows resuming a workout from a specific point |
| start_from_exercise | string | Exercise to start from | Skips to a specific exercise in the workout |
| start_from_rest | boolean | Start from rest period | If true, begins at rest screen before the specified exercise |
| resetPlanProgress | boolean | Reset all plan progress | Clears all saved progress for the user's plans |
| on_start_url | string | URL to call on workout start | Webhook URL triggered when workout begins |
Note: Exercise IDs can be retrieved from the Content API.
Workout Configuration
1// Direct support for some, customParams for others
2kinestex.createCameraView(
3 exercises: ["Squats", "Lunges", "Pushups"], // direct
4 currentExercise: $currentExercise, // direct
5 customParams: [
6 "start_from_exercise": "Lunges",
7 "start_from_rest": true,
8 "resetPlanProgress": false
9 ]
10)