Nutrition Menus

PATCH /api/public/nutrition-menus/{menuId}

Changed on

Partially update a nutrition menu. Does not cascade: copies duplicated from this menu are left untouched, unlike the dashboard which offers to push the edit down to them.

Request

  • Base URL
    https://api.coach-platform.com
  • Auth
    HTTP bearer

Path parameters

menuIdstring required

Headers

Idempotency-Keystring

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

namestring
descriptionstring
goal'Weight Loss' | 'Muscle Gain' | 'Weight Maintenance' | 'Other'
type'Vegetarian' | 'Vegan' | 'Keto' | 'Paleo' | 'Low Carbs' | 'Gluten Free' | 'Mediterranean'
totalCaloriesnumber
totalProteinnumber
totalCarbsnumber
totalFatnumber
applyToAllSharedTraineesboolean

Required (true) to edit a menu shared by multiple trainees; the change then applies to all of them. Without it, a shared menu returns 409.

Response

Successful response

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