-
Notifications
You must be signed in to change notification settings - Fork 1
Planned workout create
alexandre edited this page Apr 1, 2026
·
4 revisions
Create planned training
- /create/planned/training/
- HTTP Method: POST
Example:
Production:
https://www.nolio.io/api/create/planned/training/
Parameters :
- id_partner: integer, required.
- sport_id: integer, required. The id of the Nolio sport
- name: string, required.
- date_start: string, required. date of the workout. YYYY-MM-DD format
- description: string, optional. additional comment to understand what to do during this workout
- duration: integer, optional. Duration of training in seconds.
- rpe : integer, optional. Nolio rpe
- distance : integer, optional. distance in km
- elevation_gain : integer, optional. elevation gain in m
- structured_workout : Array, optional. see Structured workout
- athlete_id: integer, optional. If provided, the planned training will be created for the specified athlete (you must be their coach). You can retrieve athlete ids with the Get Athletes route.
Example:
{
"id_partner": 1,
"sport_id": 23,
"name": "my planned training",
"date_start": "2022-08-01",
"duration": 36000,
"rpe": 5,
"distance": 50,
"elevation_gain": 150
}A JSON containing the training data that was created
-
400 Bad request
- Training already exists