Create a schema section

POST /api/v1/fact-find/schema/{factFindSchema_uuid}/section

Headers

Path parameters

application/json

Body Required

  • name string Required

    The name of the fact-find schema section. Must be unique.

  • front_end_section string Required

    The reference to the Plannr front-end. Must be unique. Available options:basic_details, contact_details, debt, dependants, employment, employment_and_income, estate, expenses, fixed_assets, goals, health, income, investments, personal_details, plans, property, protection, state_pension, vulnerability

  • The HTML that should be displayed on the section.

Responses

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

      The UUID of the resource.

    • The timestamp of when the resource was created.

    • The timestamp of when the resource was updated.

    • name string

      The name of the fact-find schema section.

    • The reference to the Plannr front-end. Available options:basic_details, contact_details, debt, dependants, employment, employment_and_income, estate, expenses, fixed_assets, goals, health, income, investments, personal_details, plans, property, protection, state_pension, vulnerability

    • The HTML that should be displayed on the section.

    • position integer

      The position/order of the section

POST /api/v1/fact-find/schema/{factFindSchema_uuid}/section
curl \
 -X POST https://api.plannrcrm.com/api/v1/fact-find/schema/factFindSchema_uuid/section \
 -H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
 -H "Content-Type: application/json" \
 -H "Accept: application/json" \
 -H "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}" \
 -d '{"name":"Basic Details","front_end_section":"basic_details","introduction_html":"\u003cp\u003ePlease tell us your \u003cb\u003ebasic details.\u003c/b\u003e\u003c/p\u003e"}'
Request examples
# Headers
Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}
Content-Type: application/json
Accept: application/json
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}

# Payload
{
  "name": "Basic Details",
  "front_end_section": "basic_details",
  "introduction_html": "<p>Please tell us your <b>basic details.</b></p>"
}
Response examples (201)
{
  "name": "Basic Details",
  "uuid": "44836f97-4584-43bc-bb98-423b9debb30b",
  "position": 1,
  "created_at": "2024-11-20T13:24:03+00:00",
  "updated_at": "2024-11-20T13:24:03+00:00",
  "front_end_section": "basic_details",
  "introduction_html": "<p>Please tell us your <b>basic details.</b></p>"
}