postWorkoutsRequestBody.json•2.13 kB
{"type":"object","properties":{"workout":{"type":"object","properties":{"title":{"type":"string","description":"The title of the workout.","example":"Friday Leg Day 🔥"},"description":{"type":"string","nullable":true,"description":"A description for the workout workout.","example":"Medium intensity leg day focusing on quads."},"start_time":{"type":"string","description":"The time the workout started.","example":"2024-08-14T12:00:00Z"},"end_time":{"type":"string","description":"The time the workout ended.","example":"2024-08-14T12:30:00Z"},"is_private":{"type":"boolean","description":"A boolean indicating if the workout is private.","example":false},"exercises":{"type":"array","items":{"type":"object","properties":{"exercise_template_id":{"type":"string","description":"The ID of the exercise template.","example":"D04AC939"},"superset_id":{"type":"integer","nullable":true,"description":"The ID of the superset.","example":null},"notes":{"type":"string","nullable":true,"description":"Additional notes for the exercise.","example":"Felt good today. Form was on point."},"sets":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","description":"The type of the set.","enum":["warmup","normal","failure","dropset"],"example":"normal"},"weight_kg":{"type":"number","nullable":true,"description":"The weight in kilograms.","example":100},"reps":{"type":"integer","nullable":true,"description":"The number of repetitions.","example":10},"distance_meters":{"type":"integer","nullable":true,"description":"The distance in meters.","example":null},"duration_seconds":{"type":"integer","nullable":true,"description":"The duration in seconds.","example":null},"custom_metric":{"type":"number","nullable":true,"description":"A custom metric for the set. Currently used for steps and floors.","example":null},"rpe":{"type":"number","nullable":true,"description":"The Rating of Perceived Exertion (RPE).","enum":[6,7,7.5,8,8.5,9,9.5,10],"example":null}},"x-readme-ref-name":"PostWorkoutsRequestSet"}}},"x-readme-ref-name":"PostWorkoutsRequestExercise"}}}}},"x-readme-ref-name":"PostWorkoutsRequestBody"}