Reorder Questions
curl --request PATCH \
--url https://geniusforms.ai/api/v1/forms/{id}/fields/reorder \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"fieldIds": [
3,
1,
2,
4
]
}
'import requests
url = "https://geniusforms.ai/api/v1/forms/{id}/fields/reorder"
payload = { "fieldIds": [3, 1, 2, 4] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({fieldIds: [3, 1, 2, 4]})
};
fetch('https://geniusforms.ai/api/v1/forms/{id}/fields/reorder', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"fields": [
{
"id": 123,
"order": 123
}
]
}Questions
Reorder Questions
Reorder all questions in a form. Must include all question IDs.
PATCH
/
forms
/
{id}
/
fields
/
reorder
Reorder Questions
curl --request PATCH \
--url https://geniusforms.ai/api/v1/forms/{id}/fields/reorder \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"fieldIds": [
3,
1,
2,
4
]
}
'import requests
url = "https://geniusforms.ai/api/v1/forms/{id}/fields/reorder"
payload = { "fieldIds": [3, 1, 2, 4] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({fieldIds: [3, 1, 2, 4]})
};
fetch('https://geniusforms.ai/api/v1/forms/{id}/fields/reorder', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"fields": [
{
"id": 123,
"order": 123
}
]
}Authorizations
API key obtained from your GeniusForms dashboard
Path Parameters
Body
application/json
All question IDs in the desired order
Example:
[3, 1, 2, 4]
Response
200 - application/json
Questions reordered
Show child attributes
Show child attributes