duplicateTable

Duplicates the table schema & content

POST/v1/tables/{sourceTableId}/duplicate

Authorization

AuthorizationBearer
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Header parameters

x-bot-idstring
Bot id
x-integration-id?string
Integration id
x-integration-alias?string
Integration alias
x-integration-name?string
Integration name
x-user-id?string
User Id
x-user-role?string
User Role

Path parameters

sourceTableIdstring
The table's unique identifier

Request body

Parameters for the duplication operation.

tableName?string
schemaOnly?boolean
Only duplicate the schema, not the content
factor?number
Override the factor for the duplicated table. If not provided, the new table will use the same factor as the source table.(>= 1, <= 30)

Response

The created table object. For large tables, rows are copied asynchronously and a job object is returned to track progress.

tableobject
rowsnumber
The total number of rows present in the source table.
job?object