šŸ”“šŸ”µ Create a manual intake (without image-based prediction).

Creates an intake for the specified APIUser without using an image-based prediction. This is an alternative to the recognition endpoints.

Each food item must provide either:

  1. A valid dish id obtained from /dataset/dishes; and/or
  2. A non-empty ingredients list containing valid ingredientId values obtained from /dataset/ingredients.

Optionally, quantity, levels, and ingredients can be specified for each food item. Ingredient-only items (items without an id) may also include a non-empty name. This user-provided item label is preserved as submitted and is returned in the corresponding foodName and recipe_per_item[].name positions. A supplied name never overrides the catalog name of an item with a valid id.

The root-level intake_name is an independent optional label for the complete intake. If both a dish id and ingredients are provided, the supplied ingredients replace the default recipe for that dish. The parameters are applied in the following order:

  1. Ingredients: Define or replace the food item's recipe.
  2. Levels: Scale the level of salt, sugar, and oil. Ingredient weights may be altered when this parameter is included.
  3. Quantity: Scale ingredient quantities proportionally so that their total matches the provided quantity.
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
integer
required

ID of the APIUser.

Body Params

A JSON object containing the information required to create an intake manually.

string

Optional user-provided label for the complete intake/meal. This is independent from the optional dishes[].name label used for an individual ingredient-only item.

dishes
array of objects
required

List of food items to insert. Each item must provide a valid dish id and/or a non-empty ingredients list.

dishes*
string

Timestamp that will be assigned to the image. It will take into account the user's timezone. Following the format '%Y/%m/%d, %H:%M:%S'. If this is not provided it will be set to the current time as default.

Responses

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json