POST /api/public/nutrition-menus
Changed onCreate a nutrition menu. Provide traineeId (or escortId) to attach it to a coaching period, or omit both to leave it unassigned. Set isTemplate to save it as a reusable template. The daily macro totals (totalCalories/totalProtein/totalCarbs/totalFat) are required. Optionally add a meals breakdown: each meal has a title and a foodItems array, and each food carries per-100g macros so the app can scale by quantity.
Request
- Base URLhttps://api.coach-platform.com
- AuthHTTP bearer
Headers
Optional. Send a unique key (e.g. a UUID) to make this POST safe to retry. The same key within 24h returns the original result instead of creating a duplicate.
Request body
Response
Created
Changes
- info
added the new optional request property
//// - info
added the new optional request property
// - info
added the optional property
/////to the response with the status
1 more change in this revision
- info