Headers
-
Content-Type string
-
Accept string
-
X-PLANNR-ACCOUNT-UUID string
POST
/api/v1/form/{form_uuid}/section
curl \
--request POST https://api.plannrcrm.com/api/v1/form/form_uuid/section \
--header "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
--header "Content-Type: application/json" \
--header "Accept: application/json" \
--header "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}" \
--data '{"title":"Section 1.1"}'
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
{
"title": "Section 1.1"
}
Response examples (200)
{
"form": {
"live": true,
"uuid": "590504ee-46f5-4faa-9187-4508c66cc93c",
"title": "Annual Catchup 2022",
"sections": "App\\Http\\Resources\\FormQuestionResource",
"created_at": "2025-02-20T10:13:02+00:00",
"updated_at": "2025-02-20T10:13:02+00: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": "9211c14c-cbd8-4c2d-acba-594f5bc80f3b",
"title": "Personal Details",
"position": 1,
"questions": {
"key": "what_is_your_name",
"type": "string",
"uuid": "f1edb041-b164-4b36-abef-4380d9897cd6",
"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-02-20T10:13:02+00:00",
"updated_at": "2025-02-20T10:13:02+00:00",
"target_field": "name",
"linked_primary": true,
"linked_question": "App\\Http\\Resources\\FormBuilder\\LinkedFormQuestionResource",
"selection_options": [
"option 1",
"option 2"
]
},
"created_at": "2025-02-20T10:13:02+00:00",
"updated_at": "2025-02-20T10:13:02+00:00"
}