Skip to main content
PATCH
/
forms
/
{id}
/
fields
/
reorder
Reorder Fields
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
  ]
}
'
{
  "fields": [
    {
      "id": 123,
      "order": 123
    }
  ]
}

Authorizations

X-API-Key
string
header
required

API key obtained from your GeniusForms dashboard

Path Parameters

id
integer
required

Body

application/json
fieldIds
integer[]
required

All field IDs in the desired order

Example:
[3, 1, 2, 4]

Response

200 - application/json

Fields reordered

fields
object[]