Skip to main content

Create training with the API

Written by Étienne

There are 2 ways to create programs in Hexfit,

A training

A Training that contains workout (call sessions in the API).

The training cannot contain progression on the load or anything.


Or standalone sessions

Standalone sessions are workout that you can then place in the calendar, thus making progression.

https://docs.hexfit.com/#tag/trainings/POST/sessions/create/standalone

Once the session is created, you can add exercises using an AI prompt:

You can add the "trainings" parameter with the ID of the session created in the previous step.

1 session = 1 day of training.

The session has a title, but also an event. If you want to modify the content of a session, create a new one and call the update of an event.

Did this answer your question?