curl --location --request POST 'https://rocket.test/wp-json/gf/v2/forms' \
--user 'ck_5f86565df60696c43af25f9194e106800770b8e9:cs_be0190310fefc061c564168670d0a96d68873c29' \
--header 'Content-Type: application/json' \
--data $'{
"title": "Inquiry Form",
"fields": [
{
"errorMessage": "",
"layoutGridColumnSpan": "",
"id": 1,
"adminLabel": "",
"nameFormat": "advanced",
"inputs": [
{
"isHidden": true,
"id": "1.2",
"choices": [
{
"value": "Dr.",
"text": "Dr."
},
{
"value": "Miss",
"text": "Miss"
},
{
"value": "Mr.",
"text": "Mr."
},
{
"value": "Mrs.",
"text": "Mrs."
},
{
"value": "Ms.",
"text": "Ms."
},
{
"value": "Mx.",
"text": "Mx."
},
{
"value": "Prof.",
"text": "Prof."
},
{
"value": "Rev.",
"text": "Rev."
}
],
"label": "Prefix",
"autocompleteAttribute": "honorific-prefix",
"inputType": "radio",
"name": ""
},
{
"id": "1.3",
"label": "First",
"name": "",
"autocompleteAttribute": "given-name"
},
{
"id": "1.4",
"label": "Middle",
"isHidden": true,
"name": "",
"autocompleteAttribute": "additional-name"
},
{
"id": "1.6",
"label": "Last",
"name": "",
"autocompleteAttribute": "family-name"
},
{
"id": "1.8",
"label": "Suffix",
"isHidden": true,
"name": "",
"autocompleteAttribute": "honorific-suffix"
}
],
"labelPlacement": "",
"productField": "",
"label": "Name A",
"description": "",
"formId": 2634,
"inputMask": false,
"layoutGroupId": "dc68cb94",
"type": "name",
"inputMaskValue": "",
"isRequired": false,
"maxLength": "",
"subLabelPlacement": "",
"cssClass": "",
"choices": "",
"enableAutocomplete": false,
"defaultValue": "",
"descriptionPlacement": "",
"inputType": "",
"fields": "",
"allowsPrepopulate": false,
"size": "large",
"conditionalLogic": "",
"inputName": "",
"autocompleteAttribute": "",
"visibility": "visible",
"inputMaskIsCustom": "",
"noDuplicates": false,
"enableEnhancedUI": 0,
"placeholder": ""
},
{
"errorMessage": "",
"layoutGridColumnSpan": "",
"id": 3,
"adminLabel": "",
"inputs": null,
"labelPlacement": "",
"calculationFormula": "",
"productField": "",
"errors": [],
"label": "How did you hear about us?",
"description": "",
"formId": 2634,
"inputMask": false,
"layoutGroupId": "bc999d5b",
"type": "select",
"useRichTextEditor": false,
"inputMaskValue": "",
"validateState": true,
"isRequired": false,
"choices": [
{
"isSelected": false,
"value": "Online",
"price": "",
"text": "Online"
},
{
"isSelected": false,
"value": "Friend",
"price": "",
"text": "Friend"
},
{
"isSelected": false,
"value": "Newspaper",
"price": "",
"text": "Newspaper"
}
],
"maxLength": "",
"subLabelPlacement": "",
"cssClass": "",
"calculationRounding": "",
"multipleFiles": false,
"displayAllCategories": false,
"enableAutocomplete": false,
"defaultValue": "",
"enablePrice": "",
"descriptionPlacement": "",
"maxFiles": "",
"inputType": "",
"fields": "",
"allowsPrepopulate": false,
"size": "large",
"conditionalLogic": "",
"enableCalculation": "",
"inputName": "",
"autocompleteAttribute": "",
"visibility": "visible",
"inputMaskIsCustom": false,
"noDuplicates": false,
"disableQuantity": false,
"enableEnhancedUI": 0,
"placeholder": ""
}
]
}'