lostInsurance
- base
- localhost
- dev
- prod
/v2/private/engine/lostInsurance
http://localhost:1350/v2/private/engine/lostInsurance
https://dev.everdays.com/v2/private/engine/lostInsurance
https://everdays.com/v2/private/engine/lostInsurance
Available Methods​
- POST
POST /v2/private/engine/lostInsurance​
This endpoint is used to save lost insurance data on user.insurance.lostInsurance.
Note
This endpoint is for editing insurance.lostInsurance data only, so it may not be used depending how the frontend looks.
Params​
| Param | Type | Description |
|---|---|---|
| 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: {
"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: 100,
monthlyExpenses: 100,
totalAssets: 10000
},
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.