Create a Life Stage for a Firm
Headers
-
Content-Type string
-
Accept string
Body Required
-
The name of the Life Stage.
-
start_age integer
The expected age of the client as they enter the Expenditure Life Stage. This field is not required and may be null, but is required with
end_age
. -
end_age integer
The expected age of the client as they mature beyond this Expenditure Life Stage. This field is not required and may be null, but is required with
start_age
.
POST /api/v1/life-stage
curl \
-X POST https://api.plannrcrm.com/api/v1/life-stage \
-H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"name":"Current Lifestyle","start_age":21,"end_age":28}'
Request examples
# Headers
Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}
Content-Type: application/json
Accept: application/json
# Payload
{
"name": "Current Lifestyle",
"start_age": 21,
"end_age": 28
}
Response examples (200)
{
"name": "Current Lifestyle",
"uuid": "\"c538220f-6bcd-4112-834b-632a0e82fe33",
"end_age": "28",
"position": "1",
"sections": {
"name": "House Keeping",
"uuid": "be37c8cd-d751-4592-bbe9-88d1b8db0e6a",
"fields": "App\\Http\\Resources\\LifeStageFieldResource",
"position": "1",
"created_at": "2023-06-16T15:25:06+01:00",
"updated_at": "2023-06-16T15:25:06+01:00"
},
"start_age": "21",
"created_at": "2023-06-16T15:25:06+01:00",
"updated_at": "2023-06-16T15:25:06+01:00"
}