POST /api/database/tables/database/{database_id}/
Creates synchronously a new table for the database related to the provided database_id
parameter if the authorized user has access to the database's workspace.
As an alternative you can use the create_async_database_table
for better performances and importing bigger files.
Servers
- /
Path parameters
Name | Type | Required | Description |
---|---|---|---|
database_id |
Integer | Yes |
Creates a table for the database related to the provided value. |
Request headers
Name | Type | Required | Description |
---|---|---|---|
ClientSessionId |
String | No |
An optional header that marks the action performed by this request as having occurred in a particular client session. Then using the undo/redo endpoints with the same ClientSessionId header this action can be undone/redone. |
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
ClientUndoRedoActionGroupId |
String | No |
An optional header that marks the action performed by this request as having occurred in a particular action group.Then calling the undo/redo endpoint with the same ClientSessionId header, all the actions belonging to the same action group can be undone/redone together in a single API call. |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
data[] |
Array | No |
A list of rows that needs to be created as initial table data. Each row is a list of values that are going to be added in the new table in the same order as provided. Ex:
for creating a two rows table with two fields. If not provided, some example data is going to be created. |
name |
String | Yes | |
first_row_header |
Boolean | No |
Indicates if the first provided row is the header. If true the field names are going to be the values of the first row. Otherwise they will be called "Field N" Default value: false |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.