table
Create Table
Creates the table in the database using the BaseTableObjects object provided in the request body, the table_name, and schema.
Note: When adding Column objects to the list of columns, there is no need to specify the id since the id just refers to the ordinal position of the column. Additionally if the table is created with an empty body, an empty table will be created. If no table_name is specified, the table will be created with a random uuid string.
Parameters
- table_name: str
- schema : str, default “public” The schema to retrieve the tables from. If no parameter is provided, defaults to “public”.
- if_not_exists: bool, default False Whether to throw an error if a table of the same name already exists. When set to False, an error will be shown. When True, the table will only be created if it does not exist already. Otherwise, do nothing.
- body: CreateTableRequest, default None Returns
A Table Pydantic object.
POST
/
api
/
v1
/
table
/
{table_name}
Authorizations
Enter: 'Bearer <JWT>', where JWT is the access token. Example: Bearer access_token_comes_here
Path Parameters
Body
application/json
Response
200 - application/json