Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Your bot ID.
Path Parameters
The table's unique identifier
Body
application/json
Parameters for the duplication operation.
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
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
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Your bot ID.
The table's unique identifier
Parameters for the duplication operation.
Was this page helpful?