POST
/
v1
/
tables
/
{table}
curl --request POST \
  --url https://api.botpress.cloud/v1/tables/{table} \
  --header 'Content-Type: application/json' \
  --data '{
  "factor": 1,
  "frozen": true,
  "schema": {},
  "tags": {},
  "isComputeEnabled": true
}'
{
  "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"
  },
  "created": true,
  "rows": 123,
  "stale": 123,
  "indexing": 123
}

Path Parameters

table
string
required

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

Body

application/json

Schema defining the structure of the table

The body is of type object.

Response

200
application/json

The retrieved or created table object.

The response is of type object.