Tables
Create a relation
Link this table to another. A relation and its reciprocal are ONE schema mutation: a half-created relation is a shape the model says cannot exist, and every reader would have to defend against it forever.
post/v1/tables/{tableId}/relations
Request
- Base URLhttps://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
label, string required
targetTableId, string required
cardinality, 'one' | 'many' required
icon, string
description, string
previewFieldIds, string[]
pickerCondition, union
A filter tree shared by tables, dashboards and widgets. A clause names a field by key (or one hop through a relation as relation.field), an operator, and a value; groups combine clauses with and / or / not.
reciprocal, object
expectedSchemaVersion, integer required
Response
Relation created
object required
success, true required
data, object required
Changes
No recorded changes to this operation across all 6 revisions of this API.