Create a Life Stage for a Firm

POST /api/v1/life-stage

Headers

application/json

Body Required

  • name string 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.

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • uuid string

      uuid of the Expenditure Life Stage

    • name string

      The name of the Expenditure Life Stage. This is the name that will be displayed to the client. Example: "Survivor’s Lifestyle"

    • position string

      The expected position of the Expenditure Life Stage in any listing of the Expenditure Life Stages. The first Expenditure Life Stage should have a position of 1, the second 2, etc.

    • The expected age of the client as they enter the Expenditure Life Stage. This field is not required and may be null.

    • end_age string

      The expected age of the client as they mature beyond this Expenditure Life Stage. This field is not required and may be null.

    • sections object

      Array containing the Expenditure Life Stage Sections that will be displayed to the client. Including any Expenditure Life Stage fields associated with the section.

      Additional properties are allowed.

    • timestamp of when the Expenditure Life Stage was created

    • timestamp of when the Expenditure Life Stage was updated

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"
}