Skip to main content
POST
/
api
/
vector-db
/
tables
Create a new table in the vector database
curl --request POST \
  --url https://api.example.com/api/vector-db/tables \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "schema": {
    "columns": [
      {
        "name": "<string>",
        "type": "<string>",
        "constraints": [
          "<string>"
        ]
      }
    ]
  },
  "data": [
    {}
  ]
}
'
{
  "data": {
    "name": "<string>",
    "schema": {
      "columns": [
        {
          "name": "<string>",
          "type": "<string>",
          "constraints": [
            "<string>"
          ]
        }
      ]
    },
    "numRows": 123
  }
}

Authorizations

Authorization
string
header
required

Enter your API key here

Body

application/json
name
string
required

Name of the table to create

schema
object

Schema definition for the table

data
object[]

Initial data to insert into the table

Response

Table created successfully

data
object