# Update vector store Update a vector store's name, description, access mode, or move it to a different knowledge slice. Partially updates a vector store. Only the provided fields will be modified. Requires the `MANAGE_KNOWLEDGE_SLICES` capability. #### Path Parameters **`organization_id`** string required The unique identifier of the organization (format: `org_*`). **`store_id`** string required The unique identifier of the vector store (format: `vs_*`). #### Request Body **`name`** string optional The updated name of the vector store (1-255 characters). **`description`** string optional The updated description of the vector store. **`access_mode`** string optional The updated access level. Allowed values: `public`, `organization`, `department`, `private`. **`slice_id`** string optional The ID of the knowledge slice to move this store to. The target slice must exist, not be archived, and not be a composite slice. When provided, the store is reassigned from its current slice to the specified one. ## Returns The updated vector store object. Request ```bash cURL curl -X PATCH https://api.aitronos.com/v1/organizations/org_xyz789/knowledge/stores/vs_store123 \ -H "Authorization: Bearer $ACCESS_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "name": "Updated API Docs Store", "access_mode": "department", "slice_id": "kslice_newslice456" }' ``` ```python Python SDK from aitronos import Aitronos client = Aitronos(api_key="your-api-key") result = client.knowledge.update_store( organization_id="org_xyz789", store_id="vs_store123", name="Updated API Docs Store", access_mode="department", slice_id="kslice_newslice456", # optional: move to another slice ) print(result) ``` ```python Python import requests org_id = "org_xyz789" store_id = "vs_store123" url = f"https://api.aitronos.com/v1/organizations/{org_id}/knowledge/stores/{store_id}" headers = { "Authorization": "Bearer YOUR_ACCESS_TOKEN", "Content-Type": "application/json", } data = { "name": "Updated API Docs Store", "access_mode": "department", "slice_id": "kslice_newslice456", # optional: move to another slice } response = requests.patch(url, headers=headers, json=data) print(response.json()) ``` ```javascript JavaScript const orgId = "org_xyz789"; const storeId = "vs_store123"; const response = await fetch( `https://api.aitronos.com/v1/organizations/${orgId}/knowledge/stores/${storeId}`, { method: "PATCH", headers: { "Authorization": `Bearer ${accessToken}`, "Content-Type": "application/json", }, body: JSON.stringify({ name: "Updated API Docs Store", access_mode: "department", slice_id: "kslice_newslice456", // optional: move to another slice }), } ); const data = await response.json(); console.log(data); ``` Response ```json 200 OK { "id": "vs_store123", "name": "Updated API Docs Store", "description": "Vector store for API docs", "slice_id": "kslice_newslice456", "organization_id": "org_xyz789", "created_by": "usr_owner1", "is_active": true, "access_mode": "department", "file_count": 15, "data_size": 1048576, "created_at": "2025-06-15T10:00:00Z", "updated_at": "2025-06-20T14:30:00Z" } ``` ```json 404 Error { "success": false, "error": { "code": "VECTOR_STORE_NOT_FOUND", "message": "The requested vector store could not be found.", "system_message": "Vector store not found", "type": "client_error", "status": 404, "details": { "store_id": "vs_invalid" }, "trace_id": "abc-123-def", "timestamp": "2025-11-02T08:21:45Z" } } ``` ## Related Resources - [List All Stores](/docs/api-reference/knowledge/list-stores) - [List Stores by Slice](/docs/api-reference/knowledge/list-stores-by-slice) - [Get Store](/docs/api-reference/knowledge/get-store) - [Create Store in Slice](/docs/api-reference/knowledge/create-store) - [Delete Store](/docs/api-reference/knowledge/delete-store)