An index is a basic unit for organizing and storing video data consisting of video embeddings and metadata. Indexes facilitate information retrieval and processing. The IndexesClient class provides methods to manage your indexes.
Description: This method creates a new index based on the provided parameters.
Function signature and example:
The IndexesCreateRequestModelsItem class defines the model configuration for your index:
You cannot change the model configuration after creating the index.
Returns an IndexesCreateResponse object containing a field named id representing the unique identifier of the newly created index.
Description: This method retrieves details of a specific index.
Function signature and example:
Returns an IndexSchema object representing the retrieved index.
The IndexSchema class contains the following properties:
The IndexModelsItem class contains the following properties:
Description: This method retrieves a paginated list of indexes based on the provided parameters. By default, the platform returns your indexes sorted by creation date, with the newest at the top of the list.
Function signature and example:
Returns a SyncPager[IndexSchema] object containing a paginated list of IndexSchema objects, representing the indexes that match the specified criteria. See the Retrieve an index section above for complete property details.
The SyncPager[T] class contains the following properties and methods:
Description: This method updates the name of an existing index.
Function signature and example:
None. This method doesn’t return any data upon successful completion.
Description: This method deletes an existing index.
Function signature and example:
None. This method doesn’t return any data upon successful completion.
This section lists the most common error messages you may encounter while managing indexes.
index_option_cannot_be_changed
index_engine_cannot_be_changed
index_name_already_exists
{index_name} already exists. Please use another unique name and try again.For a list of general errors that apply to all endpoints, see the Error codes page.