Skip to main content
POST
Insert rows into a table

Authorizations

Authorization
string
header
required

A member credential in the Authorization: Bearer header: a member session JWT, a portal JWT whose login is linked to a membership in that company, an opaque member token, or a verified One Auth identity access token. The credential alone identifies the member and company. Member session JWTs, and portal JWTs the server minted read-only, are refused with 403 on every write.

Path Parameters

site_id
string<uuid>
required

Public id of one of the member's sites.

table
string
required

The name of a table of the site's database, letters, digits and underscores, starting with a letter or underscore, at most 63 characters. A table that is not in the database's public schema is 404.

Pattern: ^[A-Za-z_][A-Za-z0-9_]{0,62}$

Body

application/json

The rows to insert.

rows
object[]
required

One to 100 rows, each an object whose keys are column names. All rows carry the same columns. An object or array value is stored as JSON text, which suits json and jsonb columns.

Required array length: 1 - 100 elements

Response

The inserted rows.

The rows that were inserted.

status
integer
required

HTTP status code (mirrors the response status line).

data
object[]
required

The inserted rows, with the columns the database filled in.

meta
object
required

Envelope metadata present on every response.