resources
- base
- localhost
- dev
- prod
/v2/private/engine/resources
http://localhost:1350/v2/private/engine/resources
https://dev.everdays.com/v2/private/engine/resources
https://everdays.com/v2/private/engine/resources
Available Methods​
- POST
POST /v2/private/engine/resources​
This endpoint is used to save information on the resources step in the engine flow.
Note
This endpoint is a combination of /finances and /lostInsurance to be used on a specific engine step.
Params​
| Param | Type | Description |
|---|---|---|
| monthlyExpenses | Number | The user's monthly expenses |
| monthlyAllowance | Number | The user's monthly allowance |
| totalAssets | Number | The user's total assets |
| health | Boolean | If the user has lost health insurance |
| vision | Boolean | If the user has lost vision insurance |
| dental | Boolean | If the user has lost dental insurance |
| life | Boolean | If the user has lost life insurance |
| other | Array<String> | An array of strings describing other lost insurances |
Example request body
body: {
"monthlyExpenses": 6000,
"monthlyAllowance": 6000,
"totalAssets": 500000,
"health": false,
"vision": false,
"dental": false,
"life": false,
"other": ["some insurance"]
}
Returns​
The entire user object.
Example return object of just user.insurance
user: {
insurance: {
lostInsurance: {
other: ["some insurance"],
dental: false,
health: false,
life: false,
vision: false
},
finances: {
monthlyAllowance: 6000,
monthlyExpenses: 6000,
totalAssets: 500000
},
health: {
bmi: 24,
drinker: true,
exerciser: true,
height: 91,
inCare: false,
practiceSelfCare: false,
seriousIllness: false,
sleepWell: false,
smoker: false,
weight: 177
},
objectives: {
coverCareCosts: 1,
coverFinalExpenses: 3,
coveragePermanence: 2,
enoughIncomeToRetire: 6,
policySize: 3,
settlePosthumousBills: 5,
willingnessToAnswerMoreQuestions: false
}
}
}
info
For more detailed information about each value in insurance, please refer to the user model docs.