Update a section's question Run in API Explorer
Ask AI
Body
Required
-
The type of the question
-
Whether the question is required or not
-
The title of the question
-
Input placeholder
-
Field description
-
The position of the question in the section.
-
The selection options for the question IF the question is of type selection.
-
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/6ff8f7f6-1eb3-3525-be4a-3932c805afed/question/6ff8f7f6-1eb3-3525-be4a-3932c805afed' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: 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":"6d895ed9-d200-4d6a-b3d2-be9af0020ba4"}'
Request examples
# Headers
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": "6d895ed9-d200-4d6a-b3d2-be9af0020ba4"
}
Response examples (200)
{
"key": "what_is_your_name",
"type": "string",
"uuid": "d7946d92-6dad-4cb4-a672-f8ba92b32674",
"title": "What is your name?",
"caption": "Your full legal name",
"section": {
"form": "App\\Http\\Resources\\FormResource",
"uuid": "ac6dfaaa-e512-4911-8dd7-b06992b39e75",
"title": "Personal Details",
"position": 1,
"questions": "App\\Http\\Resources\\FormQuestionResource",
"created_at": "2025-12-04T22:09:16+00:00",
"updated_at": "2025-12-04T22:09:16+00:00"
},
"position": 1,
"required": true,
"help_text": "Gareth",
"created_at": "2025-12-04T22:09:16+00:00",
"updated_at": "2025-12-04T22:09:16+00: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"
]
}