Form Fields

Create a new Form Field

OAuth Scope

This endpoint requires the following OAuth scope manage_forms.

Record UUID

UUID is optional for record creation. If no UUID is supplied, a UUID will be automatically generated for the new record and returned in the x-record-uuid response header.

post/formfield.json

Request body

form_uuidstring uuid

The UUID of the form this field belongs to.

namestring

The name of the form field.

field_data_jsonstring

JSON configuration for this question, including type, mandatory, choices and conditions.

sort_orderinteger

The sort order of the form field.

uuidstring uuid

Unique identifier for this record

Example request

{
  "form_uuid": "123e4567-3800-415d-9d28-234821435d7b",
  "uuid": "123e4567-24ac-45c7-81af-23482467f28b"
}

Response

Success

errorCodenumber
messagestring

Example response

{
  "message": "OK"
}

Changes