hobbies
- base
- localhost
- dev
- prod
/v2/private/healthAndCare/hobbies
http://localhost:1350/v2/private/healthAndCare/hobbies
https://dev.everdays.com/v2/private/healthAndCare/hobbies
https://everdays.com/v2/private/healthAndCare/hobbies
Available Methods​
- POST
POST /v2/private/healthAndCare/hobbies​
Saves the User's "chip" selections and custom selections for hobbies.
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: 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.