Skip to main content
PUT

Authorizations

Authorization
string
header
required

Admin JWT or access token for authenticating requests to VectorAI DB.

Path Parameters

collection_name
string
required

The name of the new collection.

Example:

"my_collection"

Query Parameters

timeout
integer

The maximum time to wait for the operation to complete, in seconds.

Example:

30

Body

application/json
vectors
object
required
hnsw_config
object

Response

200 - application/json

Collection created successfully

usage
object
time
number<double>

Time spent to process this request, in seconds.

Example:

0.06091602

status
string

Operation status.

Example:

"ok"

result
boolean

Whether the operation completed successfully.

Example:

true