Athlete Post Nutrition - TrainingPeaks/PartnersAPI GitHub Wiki
Endpoint:
- /v1/athletes/{athleteId}/nutrition
- HTTP Method: POST
- Required Scope: nutrition:write
- Input:
- Athlete Id. Required.
- Nutrition object (see below)
Example:
Testing:
https://api.sandbox.trainingpeaks.com/v1/athletes/123456/nutrition
Production:
https://api.trainingpeaks.com/v1/athletes/123456/nutrition
Request body
{
"NutritionDate": "2025-10-01T00:00:00",
"Calories": 2200.0,
"Carbohydrates": 105.15,
"Fat": 22.5,
"Protein": 75.0
}
| Property | Type | Required |
|---|---|---|
| NutritionDate | datetime | Y |
| Calories | float | N |
| Carbohydrates | float | N |
| Fat | float | N |
| Protein | float | N |
Response
Returns: The athlete’s newly created nutrition card summary
{
"NutritionId": 111,
"AthleteId": 123456,
"NutritionDate": "2025-10-01T00:00:00",
"Calories": 2200.0,
"Carbohydrates": 105.15,
"Fat": 22.5,
"Protein": 75.0
}