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.

The body is of type object.

Response

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

The response is of type object.