food
- base
- localhost
- dev
- prod
/v2/private/healthAndCare/food
http://localhost:1350/v2/private/healthAndCare/food
https://dev.everdays.com/v2/private/healthAndCare/food
https://everdays.com/v2/private/healthAndCare/food
Available Methods​
- POST
POST /v2/private/healthAndCare/food​
Saves the User's "chip" selections and custom selections for food.
Params​
| Param | Type | Description |
|---|---|---|
| selections | Array | An array of objects for each "chip" selected by the User |
| customSelections | Array | An 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.