BETTERMENU
Studio

Save Reference Food

Saves a food the calling member opened, so it is listed in their Saved list. Saving a food that is already saved changes nothing and keeps its original saved_at.

PUT
/studio/reference/foods/saved/{food_id}

Path Parameters

food_id*Food Id

Identifier of the food in the food database.

Response Body

application/json

application/json

application/json

curl -X PUT "https://api.bettermenu.live/studio/reference/foods/saved/string"
{
  "food_id": "string",
  "name": "string",
  "brand": "string",
  "source": "generic",
  "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,
  "last_portion": {
    "label": "string",
    "grams": 0.001
  },
  "per_100g": {
    "calories": 100000,
    "total_fat": 100000,
    "total_carbohydrate": 100000,
    "protein": 100000
  },
  "data_version": "string"
}
{
  "type": "https://api.bettermenu.live/errors/recipe_not_found",
  "title": "Recipe Not Found",
  "status": 400,
  "detail": "Recipe rcpe_abc123 does not exist",
  "code": "recipe_not_found",
  "retryable": true,
  "instance": "/api/v1/recipes/rcpe_abc123",
  "trace_id": "req_xyz789",
  "errors": [
    {}
  ],
  "invalid_ids": [
    "f_abc123",
    "f_xyz789"
  ]
}
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string",
      "input": null,
      "ctx": {}
    }
  ]
}
BETTERMENU

FDA-compliant nutrition labels from a recipe, in minutes.

Visit bettermenu.live