Athlete Put Nutrition - TrainingPeaks/PartnersAPI GitHub Wiki
Endpoint:
- /v1/athletes/{athleteId}/nutrition/{nutritionId}
- HTTP Method: PUT
- Required Scope: nutrition:write
- Input:
- Athlete Id. Required.
- Nutrition Id. Required
- Nutrition object (see below)
Example:
Testing:
https://api.sandbox.trainingpeaks.com/v1/athletes/123456/nutrition/111
Production:
https://api.trainingpeaks.com/v1/athletes/123456/nutrition/111
Request body
{
"NutritionDate": "2025-10-01T00:00:00",
"Calories": 2500.0,
"Carbohydrates": 85.25,
"Fat": 18.5,
"Protein": 55.0
}
| Property | Type | Required |
|---|---|---|
| NutritionDate | datetime | Y |
| Calories | float | N |
| Carbohydrates | float | N |
| Fat | float | N |
| Protein | float | N |
Note: Nutrition date must match the existing nutrition date or be on a new date where there is no other nutrition card.
Response
Returns: The athlete’s updated nutrition card summary
{
"NutritionId": 111,
"AthleteId": 123456,
"NutritionDate": "2025-10-01T00:00:00",
"Calories": 2500.0,
"Carbohydrates": 85.25,
"Fat": 18.5,
"Protein": 55.0
}