Repository navigation
Workout Update
alexandre edited this page Apr 1, 2026
·
3 revisions
Update training
- /update/training/
- HTTP Method: POST
Example:
Production:
https://www.nolio.io/api/update/training/
Parameters :
- id_partner: integer, required.
- sport_id: integer, required. The id of the Nolio sport
- name: string, optional.
- date_start: string, optional. date of the metric. YYYY-MM-DD format
- description: string, optional.
- duration: integer, optional. Duration of training in seconds.
- feeling : integer, optional. Nolio feeling
- rpe : integer, optional. Nolio rpe
- distance : integer, optional. distance in km
- elevation_gain : integer, optional. elevation gain in m
- athlete_id: integer, optional. If provided, the training will be updated 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": 1,
"name": "my manual training",
"date_start": "2020-08-01 14:54:33",
"description": "A recovery workout"
"duration": 36000,
"feeling": 2,
"rpe": 5,
"distance": 50,
"elevation_gain": 150
}A JSON containing the training data that was updated
-
400 Bad request
- Training doesn’t exist