Skip to main content
POST
Insert database data.

Authorizations

Authorization
string
header
required

Bearer JWT token or API Key (sk-*).

Path Parameters

databaseId
string
required

Provide databaseId.

Body

application/json
upsert
boolean
required

Specify if you want to update on conflict.

return
boolean
required

Return inserted or updated rows. Defaults to true for low-code calls.

data
object[]
required

Data limited to 32mb and 100,000 rows.

onlyKeys
boolean

When rows are returned, return only primary keys.

patch
boolean

For upserts, update only properties supplied by each conflicting row. Defaults to true. Set false for the legacy full replacement behavior.

skipUnchanged

Upsert only: skip existing rows when compared supplied non-primary-key fields are unchanged. Defaults to false. include and exclude are mutually exclusive. A changed compared field writes every supplied PATCH field.

filter
object

Upsert only: structured field/op/value filter with and/or/not on the current target row. Controls updates, not inserts. Evaluated atomically together with skipUnchanged. No joins or incoming-field references.

Response

OK.