curl --request PUT \
--url https://api.botpress.cloud/v1/tables/{table}/column \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-bot-id: <x-bot-id>' \
--data '
{
"name": "<string>",
"newName": "<string>"
}
'{
"table": {
"id": "<string>",
"name": "<string>",
"schema": {
"properties": {},
"additionalProperties": true,
"type": "object",
"$schema": "<string>",
"required": [
"<string>"
]
},
"factor": 1,
"frozen": true,
"tags": {},
"isComputeEnabled": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}Renames an existing column within a table to better reflect its content or usage. The operation targets a specific table and requires the current and new column names.
curl --request PUT \
--url https://api.botpress.cloud/v1/tables/{table}/column \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-bot-id: <x-bot-id>' \
--data '
{
"name": "<string>",
"newName": "<string>"
}
'{
"table": {
"id": "<string>",
"name": "<string>",
"schema": {
"properties": {},
"additionalProperties": true,
"type": "object",
"$schema": "<string>",
"required": [
"<string>"
]
},
"factor": 1,
"frozen": true,
"tags": {},
"isComputeEnabled": true,
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z"
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bot id
Integration id
Integration alias
Integration name
User Id
User Role
The table's name or unique identifier for targeting specific table operations.
Details of the column to be renamed, including its current name and the desired new name.
Confirmation of the column rename operation, including the updated table schema.
Show child attributes
Was this page helpful?