v1

latestOpenAPI 3.0.22026-07-173834119.9 KB
Vectorization

Create Opensearch Index

Endpoint to Create an Index

This endpoint creates an index in the specified vector store.


Request Body

FieldTypeDescription
store_idstrThe ID of the vector store.
index_namestrThe name of the index to create.

Example Request Body

```json

{
    "store_id": "b1c2b4c5-6d7e-8f9g-0h1i-2j3k4l5m6n7",
    "index_name": "my_index"
}

```

Response Body

FieldTypeDescription
index_namestrThe name of the created index.
index_idstrThe ID of the created index.
store_idstrThe ID of the vector store.
store_typestrThe type of the vector store.
messagestrA message indicating the status of the operation.

Errors

  • 400 Bad Request: If the store type is not supported.
  • 500 Internal Server Error: If there is an unexpected error during the creation of the vector store.
post/vector/store/index/create

Request body

store_idstring required
index_namestring required

Response

Successful Response

index_namestring required
index_idstring required
store_idstring required
store_typestring required
messagestring required