Save Reference Serving Size
Saves a serving size category the calling member opened, so it is listed in their Saved list. Saving a category that is already saved changes nothing and keeps its original saved_at.
category_id*Category IdIdentifier of the serving size category.
Successful Response
application/json- response
A serving size category the member opened, with its Saved and Recent state.
category_id*Category IdIdentifier of the serving size category, as the serving size category endpoints return it.
name*NameThe category's name, e.g. Cookies.
reference_amount*Reference AmountThe reference amount customarily eaten at one time, in reference_unit, e.g. 30.
reference_unit*ReferenceAmountUnitg for grams, or mL for millilitres: the categories whose reference amount is a volume (beverages, juices, milk, cream, shakes, syrups and cooking wine).
"g""mL"amount_kind*ServingSizeAmountKinddiscrete for products eaten in units (cookies, bagels), bulk for products measured out (flour, juice).
"discrete""bulk"audience*ServingSizeAudiencegeneral or infant_toddler: who the reference amount is set for.
"general""infant_toddler"data_version*Data VersionVersion of the regulatory data the values above come from.
saved*SavedWhether the member saved this category.
saved_at*|When the member saved it; null while it is not saved.
first_viewed_at*First Viewed AtWhen the member first opened it.
date-timelast_viewed_at*Last Viewed AtWhen the member last opened it.
date-timeview_count*View CountHow many times the member opened it.
curl -X PUT 'https://api.bettermenu.live/studio/reference/serving-sizes/saved/string'{ "category_id": "string", "name": "string", "reference_amount": 0, "reference_unit": "g", "amount_kind": "discrete", "audience": "general", "data_version": "string", "saved": true, "saved_at": "2019-08-24T14:15:22Z", "first_viewed_at": "2019-08-24T14:15:22Z", "last_viewed_at": "2019-08-24T14:15:22Z", "view_count": 0}