table
Insert Records
Inserts the records in the input body into a table in a specified schema.
Parameters
- table_name: str
- records: list[dict] The list of key-value pairs to be inserted to the table
- schema : str, default “public” The schema to retrieve the tables from. If no parameter is provided, defaults to “public”.
- on_conflict: str, default “fail”
What to do in case (an) inserted value(s) generate(s) a conflict due to the target table’s
unique constraint. Available options:
- “fail” -> gives an error, insertion is only possible if unique constraint(s) is(are) not violated
- ”skip” -> does nothing on conflicted record, doesn’t perform the insertion for that particular record but doesn’t cancel the entire insertion process
- if user inputs anything other than these two, the server will throw an exception
Returns
A Table Pydantic object.
POST
/
api
/
v1
/
table
/
{table_name}
/
records
Authorizations
Authorization
string
headerrequiredEnter: 'Bearer <JWT>', where JWT is the access token. Example: Bearer access_token_comes_here
Path Parameters
table_name
string
requiredQuery Parameters
schema
string
default: publicon_conflict
string
default: failBody
application/json · object[]
The body is of type object[]
.
Response
200 - application/json
table
object
required