šŸ”“šŸ”µ 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. 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 custom name for the intake/meal. Required if logging a dish from scratch without an ID.

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