Update a section's question
Headers
-
Content-Type
string -
Accept
string -
X-PLANNR-ACCOUNT-UUID
string
Body
Required
-
type
string The type of the question
-
required
boolean Whether the question is required or not
-
title
string The title of the question
-
help_text
string Input placeholder
-
caption
string Field description
-
position
integer The position of the question in the section.
-
selection_options
array[string] The selection options for the question IF the question is of type selection.
-
section_uuid
string Required The uuid of the section to move the question to.
PUT
/api/v1/form/{form_uuid}/question/{uuid}
curl \
--request PUT 'https://api.plannrcrm.com/api/v1/form/form_uuid/question/uuid' \
--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 '{"type":"string","required":"true","title":"What is your name?","help_text":"Gareth","caption":"Enter your full legal name","position":2,"selection_options":["apple","orange"],"section_uuid":"6b6bb459-f4c0-48d9-b239-0f5b166afc2e"}'
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
{
"type": "string",
"required": "true",
"title": "What is your name?",
"help_text": "Gareth",
"caption": "Enter your full legal name",
"position": 2,
"selection_options": [
"apple",
"orange"
],
"section_uuid": "6b6bb459-f4c0-48d9-b239-0f5b166afc2e"
}
Response examples (200)
{
"key": "what_is_your_name",
"type": "string",
"uuid": "98f73727-bd13-4a12-83e7-4dbfb14f0fd8",
"title": "What is your name?",
"caption": "Your full legal name",
"section": {
"form": "App\\Http\\Resources\\FormResource",
"uuid": "baf22075-80c3-4fdf-92ac-19b4371ce520",
"title": "Personal Details",
"position": 1,
"questions": "App\\Http\\Resources\\FormQuestionResource",
"created_at": "2025-05-14T18:27:13+01:00",
"updated_at": "2025-05-14T18:27:13+01:00"
},
"position": 1,
"required": true,
"help_text": "Gareth",
"created_at": "2025-05-14T18:27:13+01:00",
"updated_at": "2025-05-14T18:27:13+01:00",
"target_field": "name",
"linked_primary": true,
"linked_question": {
"type": "selection",
"field": "gender",
"label": "Gender",
"caption": "Your drink preference",
"forced_required": false,
"formatted_field": "Gender",
"is_custom_field": false,
"selection_options": [
"male",
"female",
"non-binary",
"transgender",
"intersex",
"other",
"unknown"
]
},
"selection_options": [
"option 1",
"option 2"
]
}