PUT
/
v1
/
tables
/
{table}
/
column
cURL
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: <api-key>' \
  --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"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

x-bot-id
string
header
required

Your bot ID.

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