Update a Life Stage for a Firm

PUT /api/v1/life-stage/{lifeStage_uuid}

Path parameters

  • lifeStage_uuid string Required

    The uuid of the life stage.

application/json

Body Required

  • name string Required

    The name of the Expenditure 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.

    • start_age string

      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.

      Hide sections attributes Show sections attributes object
      • uuid string
      • name string
      • position string
      • fields string
      • created_at string
      • updated_at string
    • created_at string

      timestamp of when the Expenditure Life Stage was created

    • updated_at string

      timestamp of when the Expenditure Life Stage was updated

PUT /api/v1/life-stage/{lifeStage_uuid}
curl \
 --request PUT 'https://api.plannrcrm.com/api/v1/life-stage/dcf0-484e-a0c5-08590fe89a84-f6aa1670' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"name":"Current Lifestyle","start_age":21,"end_age":28}'
Request examples
{
  "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\\Expenditure\\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"
}