# Update a vector store div strong 🔨 In Development — This section is still being developed and may change. Modify the name, description, or access settings of a vector store. Update vector store metadata and access control settings. #### Path Parameters **`organization_id`** string required The unique identifier of the organization. **`vector_store_id`** string required The unique identifier of the vector store to update. #### Request Body **`name`** string optional New name for the vector store. **`description`** string optional New description for the vector store. **`accessMode`** string optional New access control level: `public`, `organization`, `department`, or `private`. **`accessDepartments`** array optional Updated list of department IDs with access. **`accessUsers`** array optional Updated list of user IDs with access. ## Returns The updated [Vector Store object](/docs/api-reference/objects/vector-store-object). Request ```bash curl -X PATCH "https://api.freddy.aitronos.com/v1/organizations/org_abc123/vector-stores/vs_abc123" \ -H "X-API-Key: $FREDDY_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "description": "Updated product documentation", "accessMode": "department", "accessDepartments": ["dept_engineering", "dept_support"] }' ``` ```python from freddy import FreddyClient with FreddyClient(api_key="your-api-key") as client: store = client.vector_stores.update( organization_id="org_abc123", vector_store_id="vs_abc123", description="Updated product documentation" ) print(f"Updated: {store.name}") ``` ```python import requests response = requests.patch( "https://api.freddy.aitronos.com/v1/organizations/org_abc123/vector-stores/vs_abc123", headers={ "X-API-Key": api_key, "Content-Type": "application/json" }, json={"description": "Updated product documentation"} ) store = response.json() ``` ## Response 200 OK ```json { "id": "vs_abc123", "name": "Product Documentation", "description": "Updated product documentation", "organizationId": "org_abc123", "isActive": true, "createdAt": "2025-01-15T10:30:00Z", "updatedAt": "2025-01-20T16:00:00Z", "createdBy": "uid_user123", "accessMode": "department", "accessDepartments": ["dept_engineering", "dept_support"], "accessUsers": null, "fileCount": 42, "dataSize": 15728640 } ``` Errors **404 Not Found** ```json { "error": { "message": "Vector store not found", "type": "not_found_error", "code": "vector_store_not_found" } } ``` **403 Forbidden** ```json { "error": { "message": "Cannot modify vector store - insufficient permissions", "type": "permission_error", "code": "insufficient_permissions" } } ``` ## Related Resources - [Create Vector Store](/docs/api-reference/vector-stores/create) - [Retrieve Vector Store](/docs/api-reference/vector-stores/retrieve) - [Delete Vector Store](/docs/api-reference/vector-stores/delete) - [Vector Store Object](/docs/api-reference/objects/vector-store-object)