Skip to main content

lostInsurance

/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​

ParamTypeDescription
healthBooleanIf the user has lost health insurance
visionBooleanIf the user has lost vision insurance
dentalBooleanIf the user has lost dental insurance
lifeBooleanIf the user has lost life insurance
otherArray<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.