Reorder questions
curl --request PATCH \
--url https://{your-subdomain}.neetoform.com/api/external/v2/forms/{form_id}/questions/reorder \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <x-api-key>' \
--data '
{
"question_ids": [
"<string>"
]
}
'const options = {
method: 'PATCH',
headers: {'X-Api-Key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({question_ids: ['<string>']})
};
fetch('https://{your-subdomain}.neetoform.com/api/external/v2/forms/{form_id}/questions/reorder', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{your-subdomain}.neetoform.com/api/external/v2/forms/{form_id}/questions/reorder"
payload = { "question_ids": ["<string>"] }
headers = {
"X-Api-Key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"question_ids": [
"<string>"
]
}{
"error": "Form does not exist."
}{
"error": "The order was not applied. List every question id of the form exactly once, keep the logo first, and put only the logo and banners above the welcome screen"
}Questions
Reorder questions
Set the order of all elements of a form. Pass the ID of every element exactly once, including the logo, welcome screen and submit button. Keep the logo first. Only the logo and banners can come before the welcome screen.
PATCH
/
forms
/
{form_id}
/
questions
/
reorder
Reorder questions
curl --request PATCH \
--url https://{your-subdomain}.neetoform.com/api/external/v2/forms/{form_id}/questions/reorder \
--header 'Content-Type: application/json' \
--header 'X-Api-Key: <x-api-key>' \
--data '
{
"question_ids": [
"<string>"
]
}
'const options = {
method: 'PATCH',
headers: {'X-Api-Key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({question_ids: ['<string>']})
};
fetch('https://{your-subdomain}.neetoform.com/api/external/v2/forms/{form_id}/questions/reorder', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{your-subdomain}.neetoform.com/api/external/v2/forms/{form_id}/questions/reorder"
payload = { "question_ids": ["<string>"] }
headers = {
"X-Api-Key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text){
"question_ids": [
"<string>"
]
}{
"error": "Form does not exist."
}{
"error": "The order was not applied. List every question id of the form exactly once, keep the logo first, and put only the logo and banners above the welcome screen"
}Replace
Learn how to find your subdomain in Workspace subdomain.
{your-subdomain} with your workspace’s subdomain. Learn how to find your subdomain in Workspace subdomain.
Headers
Use the X-Api-Key header to provide your workspace API key. Refer to Authentication for more information.
Path Parameters
Unique ID of the form. Refer to Getting the Form ID for detailed instructions.
Body
application/json
IDs of every element of the form, in the new order.
Response
OK - Order applied
IDs of all elements of the form, in the new order.