Skip to main content
PATCH
Update an entry

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

entry:write

Path Parameters

form_token
string
required

Form token

serial_number
integer
required

Per-form serial number of the entry

Body

application/json
field_values
object
required

Map keyed by field api_code; only the submitted fields change. Keys and values are checked as on create. For an attachment value, list the ids of stored files to keep plus any new upload_ids; files left out are removed from the entry.

Example:

Response

Updated

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.