Skip to main content
PUT
/
form-elements
Update form elements
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"
  }
}
'
{
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
formId
string
required
elements
object[]
required
periodChangeHandling
object

Response

Successful response

success
boolean
required