Skip to main content

hobbies

/v2/private/healthAndCare/hobbies

Available Methods​

  • POST

POST /v2/private/healthAndCare/hobbies​

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

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: 1, title: "Sew" },
{ id: 4, title: "Yoga" }
],
customSelections: [
{ title: "Surfing" },
{ title: "LARPing" }
]
}
}

Returns​

The entire user object, with healthAndCare.hobbies updated.

Example return object of just user.healthAndCare
user: {
...,
healthAndCare: {
...,
hobbies: {
customSelections: [
{
title: "Surfing"
},
{
title: "LARPing"
}
],
selections: [
{
id: 1,
title: "Sew"
},
{
id: 4,
title: "Yoga"
}
]
},
lastScreen: {
screen: "hobbies",
date: "2022-03-22T19:07:00.892Z"
},
}
}
info

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