Overview
Update a collection’s display name or sync configuration. The readable_id cannot be changed after creation to maintain stable API endpoints.
Path Parameters
The unique readable identifier of the collection to update
Request Body
All fields are optional. Only include fields you want to change.
Updated display name for the collection (4-64 characters)
Default sync configuration for all syncs in this collection
Enable vector database handlers
Enable PostgreSQL metadata handlers
Response
Returns the updated collection object.
Unique UUID identifier for the collection
URL-safe identifier (unchanged)
ISO 8601 timestamp when last modified
Email of the user who made this update
Example Request
curl -X PATCH https://api.airweave.ai/v1/collections/finance-data-ab123 \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "Updated Finance Data"}'
Example Response
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Updated Finance Data",
"readable_id": "finance-data-ab123",
"vector_size": 3072,
"embedding_model_name": "text-embedding-3-large",
"sync_config": null,
"created_at": "2024-01-15T09:30:00Z",
"modified_at": "2024-01-15T16:45:00Z",
"organization_id": "org12345-6789-abcd-ef01-234567890abc",
"created_by_email": "admin@company.com",
"modified_by_email": "admin@company.com",
"status": "ACTIVE"
}
Error Responses
Collection with the specified readable_id does not exist
Invalid request body (e.g., name too short)