Replace form variables

Replace the form’s variables. Send an empty array to clear them.


PATCH/api/v1/forms/{formId}/variables

Authorization

Authorization required string · header
Send Bearer <token> with an account API key that has the forms:write scope.

Path parameters

formId required string
Form ID. See FormModel.

Request body

application/json

variables required Variable[]
Up to 200 objects with id, name, kind, and value. IDs must be unique and contain 1–128 letters, digits, underscores, or hyphens. Names contain 1–100 characters after trimming. Set kind to string or number and supply a value of that type. See Variable.

Response

200 · application/json

Source model: FormModel.

FieldTypeDescription
idstringID returned by the operation.
variablesarrayVariables associated with the resource. See Variable.