Create
POSThttps://api.envizage.me/scenarios/:scenarioId/goals/have-a-child
Creates a new Have A Child goal in the given scenario identified by {scenarioId}.
Request
Path Parameters
The scenario's id
- application/json
Body
required
The currency in which the goal's value is specified. Valid currency code ISO-4217 from the list of supported currencies.
Description of the resource.
The desired value of the goal.
Toggle inclusion of the goal in the simulation.
End date of the goal. Valid date string in simplified extended ISO-8601 format (YYYY-MM-DDTHH:mm:ss.sssZ). Will be respected only in conjuction with endsOn
equals to USER_DEFINED
.
Possible values: [USER_DEFINED
, ON_RETIREMENT
, ON_DEATH
]
Can be any of USER_DEFINED, ON_RETIREMENT, ON_DEATH.
Possible values: [UNSPECIFIED
, ONE_OFF
, DAILY
, WEEKLY
, MONTHLY
, QUARTERLY
, SEMI_ANNUALLY
, ANNUALLY
]
The frequency of the goal.
fundingSources object[]
Possible values: [CALCULATED
, NONE
, CPI
, MEDIAN_WAGE_GROWTH
, PROPERTY_GROWTH
]
Can be either of CALCULATED, NONE, CPI, MEDIAN_WAGE_GROWTH, PROPERTY_GROWTH.
The id of the resource.
Possible values: <= 1
Maximum absolute spread added to growth rate allowed.
The minimum value of the goal.
The name of the resource.
The priority of the goal (1 = lowest, 10 = highest).
properties object
Possible values: <= 1
Define the additional spread over the defined growthRate.
Start date of the goal. Valid date string in simplified extended ISO-8601 format (YYYY-MM-DDTHH:mm:ss.sssZ). Will be respected only in conjuction with startsOn
equals to USER_DEFINED
.
Possible values: [USER_DEFINED
, ON_RETIREMENT
, ON_DEATH
]
Can be any of USER_DEFINED, ON_RETIREMENT, ON_DEATH.
Responses
- 201
- 404
- 500
Created
- application/json
- Schema
- Example (from schema)
Schema
The currency in which the goal's value is specified. Valid currency code ISO-4217 from the list of supported currencies.
Description of the resource.
The desired value of the goal.
Toggle inclusion of the goal in the simulation.
End date of the goal. Valid date string in simplified extended ISO-8601 format (YYYY-MM-DDTHH:mm:ss.sssZ). Will be respected only in conjuction with endsOn
equals to USER_DEFINED
.
Possible values: [USER_DEFINED
, ON_RETIREMENT
, ON_DEATH
]
Can be any of USER_DEFINED, ON_RETIREMENT, ON_DEATH.
Possible values: [UNSPECIFIED
, ONE_OFF
, DAILY
, WEEKLY
, MONTHLY
, QUARTERLY
, SEMI_ANNUALLY
, ANNUALLY
]
The frequency of the goal.
fundingSources object[]
Possible values: [CALCULATED
, NONE
, CPI
, MEDIAN_WAGE_GROWTH
, PROPERTY_GROWTH
]
Can be either of CALCULATED, NONE, CPI, MEDIAN_WAGE_GROWTH, PROPERTY_GROWTH.
The id of the resource.
Possible values: <= 1
Maximum absolute spread added to growth rate allowed.
The minimum value of the goal.
The name of the resource.
The priority of the goal (1 = lowest, 10 = highest).
properties object
Possible values: <= 1
Define the additional spread over the defined growthRate.
Start date of the goal. Valid date string in simplified extended ISO-8601 format (YYYY-MM-DDTHH:mm:ss.sssZ). Will be respected only in conjuction with startsOn
equals to USER_DEFINED
.
Possible values: [USER_DEFINED
, ON_RETIREMENT
, ON_DEATH
]
Can be any of USER_DEFINED, ON_RETIREMENT, ON_DEATH.
{
"currency": "GBP",
"description": "My resource's description",
"desiredAmount": 10000,
"enabled": true,
"endDate": "2026-01-01T00:00:00.000Z",
"endsOn": "USER_DEFINED",
"frequency": "ONE_OFF",
"fundingSources": [
{
"class": "LiquidAssetsFundingSource",
"description": "Liquid assets funding source",
"name": "Liquid assets",
"wrappers": [
"GENERAL_INVESTMENT_ACCOUNT",
"TAX_ADVANTAGED",
"PENSION"
]
}
],
"growthRate": "CALCULATED",
"id": "1",
"maximumAbsoluteSpreadAllowed": 0,
"minimumAmount": 10000,
"name": "My resource",
"priority": 1,
"properties": {
"property_1": "Value of property 1",
"property_2": "Value of property 2"
},
"spreadOverGrowthRate": 0,
"startDate": "2025-01-01T00:00:00.000Z",
"startsOn": "USER_DEFINED"
}
Not Found
Internal Server Error
Authorization: openIdConnect
name: authenticationtype: openIdConnectscopes: scenarios:full,scenarios:write
bearerFormat: JWTopenIdConnectUrl: https://id.production.envizage.me/realms/:realmId/protocol/openid-connectscheme: Bearer
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X POST 'https://api.envizage.me/scenarios/:scenarioId/goals/have-a-child' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
--data-raw '{
"currency": "GBP",
"description": "My resource'\''s description",
"desiredAmount": 10000,
"enabled": true,
"endDate": "2026-01-01T00:00:00.000Z",
"endsOn": "USER_DEFINED",
"frequency": "ONE_OFF",
"fundingSources": [
{
"class": "LiquidAssetsFundingSource",
"description": "Liquid assets funding source",
"name": "Liquid assets",
"wrappers": [
"GENERAL_INVESTMENT_ACCOUNT",
"TAX_ADVANTAGED",
"PENSION"
]
}
],
"growthRate": "CALCULATED",
"id": "1",
"maximumAbsoluteSpreadAllowed": 0,
"minimumAmount": 10000,
"name": "My resource",
"priority": 1,
"properties": {
"property_1": "Value of property 1",
"property_2": "Value of property 2"
},
"spreadOverGrowthRate": 0,
"startDate": "2025-01-01T00:00:00.000Z",
"startsOn": "USER_DEFINED"
}'