Skip to main content
Inserts rows in one transaction. Either every row is inserted or none are.

Parameters

string
required
Project id from list_projects. You need write access.
string
required
Table name.
object[]
required
One to 100 row objects keyed by column name. Omit a column to use its default, or NULL when it has none. Pass null to store NULL explicitly. Values must fit their column types. See Data types.

Result

The inserted rows, including their generated id and created_at.

Example

Arguments
Result

Errors

Notes

  • You can supply your own id (a UUID) and created_at values. Otherwise they are generated.
  • All rows in a call are inserted together, so a single invalid row rejects the whole batch. The error message names the problem column.
  • Rows inserted in the same call share the same created_at value.