Food List
Use-case request examples
Get foodlist including deleted (i.e. consumed) items
curl -X GET "https://api.whisk.com/foodlist/v2?filters.presence=PRESENCE_FILTER_EXISTING&filters.presence=PRESENCE_FILTER_CONSUMED&sorting.by=SORT_BY_CREATED_AT&sorting.direction=SORT_DIRECTION_DESC" \
-H "accept: application/json" \
-H "Authorization: Bearer %USER_TOKEN%" \
-H "Content-Type: application/json"Add wine into the Wine Fridge location
curl -X POST "https://api.whisk.com/foodlist/v2/action" -H "accept: application/json" -H "Authorization: Bearer %USER TOKEN%" -H "Content-Type: application/json" -d '{
"add":{
"items":[
{
"name":"test on qa-2",
"quantity":10,
"unit":"l",
"expiry_date":{
"year":2023,
"month":11,
"day":2
},
"location":"FOOD_ITEM_LOCATION_WINE_FRIDGE",
"location_zone_place":{
"wine_fridge_placing":{
"zone":"WINE_FRIDGE_LOCATION_ZONE_BOTTOM",
"place":785
}
},
"image":{
"url":"https://image-cdn.whisk.com/image/upload/v1629877880/v3/user-recipes/nlddh9ajshcbgwxcawcg.jpg"
},
"display_name":"first test",
"food_item_type":{
"wine_item":{
"wine_type":"WINE_TYPE_RED",
"grape_type":"grape",
"vintage":1,
"winery":"winery",
"country_of_origin":"UK",
"region_of_origin":"UK",
"body":1,
"acidity":2,
"tannin":1,
"dryness":1,
"manufacturer":"s",
"alcohol":12,
"score":1,
"review_wine_graph":"string"
}
},
"price":{
"currency_code":"USD",
"cents":"5"
},
"memo":"memo"
}
]
}
}'Get wine items only from foodlist
Add meat specifying storage mode
Update or remove certain fields
Mark an item as consumed (soft-delete)
Get recently added items
Hide items from recently added history
Add an item directly as consumed into the Food List specifying it was AI autogenerated
Mark items as consumed by external_id
Get all items added within a certain period
Get items consumed within a certain period
Unmark the item as consumed (i.e. return to existing)
Add item as temporary out
Mark item as temporary out
Mark item as presented in food list (back from temporary out)
Request temporary out items
Last updated
Was this helpful?