Body
Required
-
The type of the question
-
Whether the question is required or not
-
The title of the question
-
Input placeholder
-
User friendly description of what should be input
-
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.
-
The field to update if the question is filled in
-
Create a question from a linked field, with this, the type and selection options can be ignored
-
If this is a contact detail or address field, should it be made primary?
POST
/api/v1/form/{form_uuid}/question
curl \
--request POST 'https://api.plannrcrm.com/api/v1/form/6ff8f7f6-1eb3-3525-be4a-3932c805afed/question' \
--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":0,"selection_options":["apple","orange"],"section_uuid":"da088dc6-9e71-430b-8a60-540e40cf6684","target_field":"client.first_name","linked_question_field":"first_name","linked_primary":false}'
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": 0,
"selection_options": [
"apple",
"orange"
],
"section_uuid": "da088dc6-9e71-430b-8a60-540e40cf6684",
"target_field": "client.first_name",
"linked_question_field": "first_name",
"linked_primary": false
}
Response examples (200)
{
"key": "what_is_your_name",
"type": "string",
"uuid": "e0173afc-592e-407a-96f0-a115945304f8",
"title": "What is your name?",
"caption": "Your full legal name",
"section": {
"form": "App\\Http\\Resources\\FormResource",
"uuid": "50adb7be-abfb-41f8-8b1f-67da27d6046f",
"title": "Personal Details",
"position": 1,
"questions": "App\\Http\\Resources\\FormQuestionResource",
"created_at": "2025-06-26T11:37:05+01:00",
"updated_at": "2025-06-26T11:37:05+01:00"
},
"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": {
"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"
]
}