Skip to main content

food

/v2/private/healthAndCare/food

Available Methods​

  • POST

POST /v2/private/healthAndCare/food​

Saves the User's "chip" selections and custom selections for food.

Params​

ParamTypeDescription
selectionsArrayAn array of objects for each "chip" selected by the User
customSelectionsArrayAn array of objects for each custom "chip" provided by the User
Example request body
body: {
{ selections: [
{ id: 0, title: "Organic" },
{ id: 13, title: "Soup" }
],
customSelections: [
{ title: "Carne Asada Tacos" },
{ title: "Tide Pods" }
]
}
}

Returns​

The entire user object, with healthAndCare.food updated.

Example return object of just user.healthAndCare
user: {
...,
healthAndCare: {
...,
food: {
customSelections: [
{
title: "Carne Asada Tacos"
},
{
title: "Tide Pods"
}
],
selections: [
{
id: 0,
title: "Organic"
},
{
id: 13,
title: "Soup"
}
]
},
lastScreen: {
screen: "food",
date: "2022-03-22T19:07:00.892Z"
},
}
}
info

For more detailed information about each value in healthAndCare, please refer to the user model docs.