ServicesVector IndexesHTTP APIUnknown

Revise_definition

POST
/api/vector-indexes/{vector_index_id}/definition-versions

Create an immutable definition successor without inherited build state.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Path Parameters

vector_index_id*string
Formatuuid

Request Body

application/json
  1. body
baseVersionId*string
Formatuuid
definition*

Response Body

Success

application/json
  1. response
definition*
rootUri*string
version*
curl -X POST 'https://api.spiraldb.dev/api/vector-indexes/497f6eca-6276-4993-bfeb-53cbbbba6f08/definition-versions' \  -H 'Content-Type: application/json' \  -d '{  "baseVersionId": "238d56e0-9ec7-4ebf-bfb2-e487b4bc769c",  "definition": {    "dimensions": 0,    "engineId": "string",    "engineOptions": {      "property1": "string",      "property2": "string"    },    "metric": "cosine",    "sourceFieldId": "a9906e98-5dea-42b3-9be1-dd6538f17102",    "sourceResourceId": "string",    "sourceTableId": "723cf4fb-8dc0-42ce-a8e4-0a5e5fe04bea"  }}'
{  "definition": {    "dimensions": 0,    "engineId": "string",    "engineOptions": {      "property1": "string",      "property2": "string"    },    "metric": "cosine",    "sourceFieldId": "a9906e98-5dea-42b3-9be1-dd6538f17102",    "sourceResourceId": "string",    "sourceTableId": "723cf4fb-8dc0-42ce-a8e4-0a5e5fe04bea"  },  "rootUri": "string",  "version": {    "createdAtMicros": "string",    "parentVersionId": "abf80970-9686-419e-bc00-5ddcccc33ba6",    "physical": {      "codec": "string",      "codecVersion": 0,      "indexedRows": "string",      "manifestPath": "string",      "metadata": "string",      "partitions": 0    },    "sealedAtMicros": "string",    "sourceVersionId": "string",    "vectorIndexId": "efd98a5b-8276-4ea9-9647-bb38eecf169b",    "versionId": "14707576-2549-4848-82ed-f68f8a1b47c7"  }}