Skip to main content

rest

/v2/private/healthAndCare/rest

Available Methods​

  • POST

POST /v2/private/healthAndCare/rest​

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

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: 2, title: "Flowers" },
{ id: 5, title: "Fresh Air" }
],
customSelections: [
{ title: "Chillin'" },
]
}
}

Returns​

The entire user object, with healthAndCare.rest updated.

Example return object of just user.healthAndCare
user: {
...,
healthAndCare: {
...,
rest: {
customSelections: [
{
title: "Chillin'"
}
],
selections: [
{
id: 2,
title: "Flowers"
},
{
id: 5,
title: "Fresh Air"
}
]
},
lastScreen: {
screen: "rest",
date: "2022-03-22T19:07:00.892Z"
},
}
}
info

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