Create a section for a form

POST /api/v1/form/{form_uuid}/section

Headers

  • X-PLANNR-ACCOUNT-UUID string

Path parameters

  • form_uuid string Required
application/json

Body Required

  • title string Required

    The title of the section

Responses

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

      The UUID of the resource.

    • created_at string

      The timestamp of when the resource was created.

    • updated_at string

      The timestamp of when the resource was updated.

    • form object

      The form this section belongs to

      Hide form attributes Show form attributes object
      • uuid string
      • created_at string
      • updated_at string
      • title string
      • description string
      • live boolean
      • visibility string
      • sections string
      • allowed_hosts array[string]
      • draft_submissions_count integer
      • submitted_submissions_count integer
      • create_client boolean
      • client_type string
    • title string

      The title of the section

    • position integer

      The position of the section

    • questions object

      The questions in the section

      Hide questions attributes Show questions attributes object
      • uuid string
      • created_at string
      • updated_at string
      • section string
      • title string
      • help_text string
      • caption string
      • type string
      • required boolean
      • position integer
      • selection_options array[string]
      • target_field string
      • key string
      • linked_question string
      • linked_primary boolean
POST /api/v1/form/{form_uuid}/section
curl \
 --request POST 'https://api.plannrcrm.com/api/v1/form/6ff8f7f6-1eb3-3525-be4a-3932c805afed/section' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --header "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}" \
 --data '{"title":"Section 1.1"}'
Request examples
# Headers
X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}

# Payload
{
  "title": "Section 1.1"
}
Response examples (200)
{
  "form": {
    "live": true,
    "uuid": "60cf600e-8d4a-4a66-99fa-699bc00f8952",
    "title": "Annual Catchup 2022",
    "sections": "App\\Http\\Resources\\FormQuestionResource",
    "created_at": "2025-06-26T11:37:05+01:00",
    "updated_at": "2025-06-26T11:37:05+01:00",
    "visibility": "public",
    "client_type": "client",
    "description": "This is the annual catchup form for 2022",
    "allowed_hosts": [
      "domain.com",
      "subdomain.domain.com"
    ],
    "create_client": true,
    "draft_submissions_count": 5,
    "submitted_submissions_count": 5
  },
  "uuid": "98191fe1-bf74-46f0-bbff-6c9fd8ce3399",
  "title": "Personal Details",
  "position": 1,
  "questions": {
    "key": "what_is_your_name",
    "type": "string",
    "uuid": "f4470d0e-1142-4163-82de-4025b301641d",
    "title": "What is your name?",
    "caption": "Your full legal name",
    "section": "App\\Http\\Resources\\FormSectionResource",
    "position": 1,
    "required": true,
    "help_text": "Gareth",
    "created_at": "2025-06-26T11:37:05+01:00",
    "updated_at": "2025-06-26T11:37:05+01:00",
    "target_field": "name",
    "linked_primary": true,
    "linked_question": "App\\Http\\Resources\\FormBuilder\\LinkedFormQuestionResource",
    "selection_options": [
      "option 1",
      "option 2"
    ]
  },
  "created_at": "2025-06-26T11:37:05+01:00",
  "updated_at": "2025-06-26T11:37:05+01:00"
}