To avoid duplicated records being created, Whisk supports external_id. The external id is uniquely maintained within the user. Trying to add another record with already existing external id will result in 400 Bad Request response.
External id is a an arbitrary non empty string up to 128 chars length. External Id is optional. Whisk will generate it's own food log record identifier anyway.
Food type
food_type field is used to reference the source of nutritional information for a food item. It's a one of field featuring the following options
Measure
measure field is opaque for Whisk and is used only to indicate the number of serving a person has eaten. We expect the total nutrition (not per 100g) of the food to be passed in the food log.
Source
source field is used internally to track the origin of logged food data. It may take the following values