Tables

Check a formula before saving it

Compile a formula (source) or a Lookup / Rollup / Count (preset) against the workspace schema WITHOUT saving it, and evaluate it against up to three real rows. Answers 200 either way: ok: false with issues IS the answer to "is this valid?". Same evaluator the write runs, so a preview cannot disagree with the field it produces.

post/v1/tables/{tableId}/fields/preview

Request

  • Base URL
    https://api.banksync.io
  • Auth
    • API key in header X-API-Key
    • or HTTP bearer

Path parameters

tableId, string required

Table ID

Request body

object required
source, string
preset, union
fieldId, string
sampleRows, integer

Response

Compilation result, with a sampled evaluation when the formula is valid

object required
success, true required
ok, boolean required
resultKind, object
volatile, boolean
depth, integer
issues, object[] required
rows, object[] required

Changes

No recorded changes to this operation across all 6 revisions of this API.