Skip to main content
POST
Submit an entry to a published form

Authorizations

Authorization
string
header
required

Personal Access Token prefixed with fh_. Sent as Authorization: Bearer fh_xxx. The scope required by each endpoint is listed in that endpoint's description.

Scopes

form:respond

Headers

X-Form-Access-Password
string

Access password, when the form is password-protected

Path Parameters

form_token
string
required

Token of a published form

Body

application/json
field_values
object
required

Map keyed by field api_code. May be empty (e.g. a form without fields); required fields are still enforced. A key that is not a public writable field of the form, or a value of the wrong shape, is rejected with 422 (see GET /api/v1/f/{form_token}/entry_schema). Fields with private: true cannot be submitted here; the server fills each private field's predefined_value, if any.

Example:

Response

Submitted

data
object
required

A submitted entry. In addition to the fixed fields below, every field of the parent form appears as a top-level key on the entry under its api_code. The JSON value type for each such key is determined by the corresponding field's type.

Field value shapes

Each field of the parent form appears as a top-level key on the entry, keyed by its api_code. The JSON shape of the value depends on the field's type. On write, a key that is not a writable field of the form is rejected, while read-only values (computed or recorded), server-derived keys and the entry's own keys (serial_number, token, created_at, info_*, ...) are accepted and ignored, so an entry as read can be written back whole; null clears a value ([] for attachment, product and booking). The exact shape every field of a given form accepts is served as a JSON Schema by GET /api/v1/forms/{form_token}/entry_schema (and GET /api/v1/f/{form_token}/entry_schema for a published form):

The write shape of each field type is also given as a schema: EntryValueInputShortText, EntryValueInputLongText, EntryValueInputRadio, EntryValueInputCheckbox, EntryValueInputImageRadio, EntryValueInputImageCheckbox, EntryValueInputDropdown, EntryValueInputNumber, EntryValueInputEmail, EntryValueInputPhone, EntryValueInputDate, EntryValueInputName, EntryValueInputUrl, EntryValueInputAddress, EntryValueInputRating, EntryValueInputNps, EntryValueInputAttachment, EntryValueInputAudio, EntryValueInputCascade, EntryValueInputRanking, EntryValueInputMatrix, EntryValueInputLikert, EntryValueInputTime, EntryValueInputLocation, EntryValueInputSignature, EntryValueInputMatrixRating, EntryValueInputTable, EntryValueInputProduct, EntryValueInputBooking, EntryValueInputLinkedForm, EntryValueInputFormula.