Workouts

Create a new workout

post/v1/workouts

Request

  • Base URL: https://api.hevyapp.com (the document declares no server; this is the origin it was published from)
  • URL: https://api.hevyapp.com/v1/workouts
  • Auth: none declared. Required headers: api-key

Headers

api-keystring uuid required

Request body

Example request

{
  "workout": {
    "title": "Friday Leg Day 🔥",
    "description": "Medium intensity leg day focusing on quads.",
    "start_time": "2024-08-14T12:00:00Z",
    "end_time": "2024-08-14T12:30:00Z",
    "exercises": [
      {
        "exercise_template_id": "D04AC939",
        "notes": "Felt good today. Form was on point.",
        "sets": [
          {
            "type": "normal",
            "weight_kg": 100,
            "reps": 10
          }
        ]
      }
    ]
  }
}

Response

The workout was successfully created

Example response

{
  "workout": [
    {
      "id": "b459cba5-cd6d-463c-abd6-54f8eafcadcb",
      "title": "Morning Workout 💪",
      "routine_id": "b459cba5-cd6d-463c-abd6-54f8eafcadcb",
      "description": "Pushed myself to the limit today!",
      "start_time": "2021-09-14T12:00:00Z",
      "end_time": "2021-09-14T12:00:00Z",
      "updated_at": "2021-09-14T12:00:00Z",
      "created_at": "2021-09-14T12:00:00Z",
      "exercises": [
        {
          "title": "Bench Press (Barbell)",
          "notes": "Paid closer attention to form today. Felt great!",
          "exercise_template_id": "05293BCA",
          "sets": [
            {
              "type": "normal",
              "weight_kg": 100,
              "reps": 10,
              "rpe": 9.5,
              "custom_metric": 50
            }
          ]
        }
      ]
    }
  ]
}

Changes

No recorded changes to this operation across all 1 revision of this API.