šŸ”“ Confirm dishes and quantities after applying food waste intake detection.

With this endpoint, the user has the option to confirm which of the recognized leftover dishes are correct and which are the quantities left.

Ā 

By default, the source must be set to 'logmeal' and an ID corresponding to an existent dish is expected. You also have to provide a food item identifier for each of the confirmed dishes. This implies adding the extra parameter 'food_item_position'. This parameter consists of a list of elements, one per each confirmed dish, and it must include an integer identifying the segmented region it corresponds to (see 'food_item_position' in returned json for /waste/detection endpoints).

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Query Params
string
enum

Desired language for the response. It must be a three-letter ISO 639-2/T code. Defaults to the APIUser's assigned language or english.

Body Params

Parameters sent in data, in json format

integer

ID of the waste image which will have it's dishes confirmed.

confirmedClass
array
required

Classes to be confirmed for the provided imageId. This variable is a list of integers containing all the confirmed classes. Note that whenever the source is set to 'logmeal' an integer corresponding to an existent dish must be provided in the list. If the source is other than 'logmeal', than a string can be provided in the list along with the integer ids as the name of that particular confirmed class.

confirmedClass*
enum
required

Source(s) of the 'confirmedClass' being confirmed. If a list of 'confirmedClass' are provided, the source provided can also be a list containing each source relative to the 'confirmedClass' list.

food_item_position
array of integers
required

Integer identifiers pointing to one of the detected regions in /segmentation endpoints or string unique identifier if the confirmed dish does not correspond to any of the detected food regions/segments.

food_item_position*
quantity
object

Object with the quantity of the intake for any regions defined as key-value pairs.

Responses

401

Unauthorized, invalid token

403

You are not allowed to this method.

404

The specified URL was not found or couldn’t be retrieved

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