PUT
/
v1
/
tables
/
{table}
/
column
curl --request PUT \
  --url https://api.botpress.cloud/v1/tables/{table}/column \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "newName": "<string>"
}'
{
  "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"
  }
}

Path Parameters

table
string
required

The table's name or unique identifier for targeting specific table operations.

Body

application/json
Details of the column to be renamed, including its current name and the desired new name.
name
string
required

The existing name of the column.

newName
string
required

The new name to assign to the column.

Required string length: 1 - 30

Response

200
application/json
Confirmation of the column rename operation, including the updated table schema.
table
object
required