Chat API
- Introduction
- Endpoints
Admin API
- Getting started
- Concepts
- Endpoints
Files API
Tables API
Runtime API
- Getting Started
- Concepts
- Endpoints
duplicateTable
Duplicates the table schema & content
POST
/
v1
/
tables
/
{sourceTableId}
/
duplicate
curl --request POST \
--url https://api.botpress.cloud/v1/tables/{sourceTableId}/duplicate \
--header 'Content-Type: application/json' \
--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
}
Path Parameters
The table's unique identifier
Body
application/json
Parameters for the duplication operation.
The body is of type object
.
Response
200
application/json
The created table object.
The response is of type object
.
Was this page helpful?
curl --request POST \
--url https://api.botpress.cloud/v1/tables/{sourceTableId}/duplicate \
--header 'Content-Type: application/json' \
--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
}