curl --location --request PUT 'https://v1.api.partnerpage.io/api/directory/private/v1alpha/directories//forms/contact-request/' \
--header 'Content-Type: application/json' \
--header 'Authorization;' \
--data-raw '{
"title": "string",
"groups": [
{
"key": "string",
"title": "string",
"description": "string",
"disabled": false
}
],
"fields": [
{
"type": "string",
"groups": [
"string"
],
"attributes": {
"label": "string",
"placeholder": "string",
"exportLabel": "string",
"required": true,
"order": 0,
"hidden": true,
"systemKey": "string",
"minLength": 0,
"maxLength": 0,
"minValue": "string",
"maxValue": "string",
"precision": 0,
"decimals": 0,
"currencySymbol": "string",
"currencyCode": "string",
"minChoices": 0,
"maxChoices": 0
},
"key": "string",
"options": [
{
"value": "string",
"order": 0,
"systemKey": "string"
}
],
"overrides": {
"attributes": [
{
"attribute": "string",
"value": true
}
],
"conditions": [
{
"key": "string",
"operator": "equals",
"value": "string"
}
]
},
"inputType": "radiogroup"
}
],
"isCustom": true
}'
{
"title": "Updated Contact Request Form",
"fields": [
{
"type": "TextField",
"attributes": {
"label": "First Name",
"system_key": "first_name",
"export_label": "first_name",
"required": true,
"order": 0
}
},
{
"type": "TextField",
"attributes": {
"label": "Company",
"required": false,
"order": 1
}
}
]
}