curl --request PUT \
--url https://app.azalt.co/api/v1/form-elements \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"formId": "<string>",
"elements": [
{
"id": "<string>",
"key": "<string>",
"label": "<string>",
"required": true,
"options": [
{
"label": "<string>",
"value": "<string>",
"description": "<string>"
}
],
"conditions": [
{
"id": "<string>",
"type": "CONDITION",
"field": "<string>",
"operator": "equals",
"value": "<string>",
"aggregator": "SINGLE"
}
],
"config": {
"type": "SHORT_TEXT",
"description": "<string>",
"tooltip": "<string>",
"inlineChoiceDisplay": true,
"placeholder": "<string>",
"minLength": 123,
"maxLength": 123,
"pattern": "<string>"
},
"type": "NUMBER",
"unitId": "<string>",
"parentElementId": "<string>",
"period": "MONTHLY",
"activityDefinitionId": "<string>",
"distributionMode": "total",
"metadata": {}
}
],
"periodChangeHandling": {
"action": "delete"
}
}
'