cURL
curl --request POST \ --url https://api.botpress.cloud/v1/tables/{sourceTableId}/duplicate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'x-bot-id: <api-key>' \ --data '{ "tableName": "<string>", "schemaOnly": true, "factor": 123 }'
{ "table": { "id": "<string>", "name": "<string>", "factor": 1, "frozen": true, "schema": { "$schema": "<string>", "properties": {}, "additionalProperties": true, "required": [ "<string>" ], "type": "object" }, "tags": {}, "isComputeEnabled": true, "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" }, "rows": 123 }
Duplicates the table schema & content
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Your bot ID.
The table's unique identifier
Parameters for the duplication operation.
Only duplicate the schema, not the content
Use a different factor for the table. Leave empty to use the same as the duplicated table.
The created table object.
Show child attributes
The total number of rows present in the table.
Was this page helpful?