Collection Schema
Sync Collection Schema
Sample documents from the vector store and automatically discover new fields to add to the collection's output_schema.
This endpoint:
- Samples N documents from the collection (default: 1000)
- Discovers all fields present in actual documents
- Merges discovered fields into the collection's output_schema (additive only)
- Optionally cascades schema updates to downstream collections
- Respects debounce window (max once per 5 minutes, unless force=true)
The sync operation is additive only - it never removes or changes existing field types.
Use this endpoint to:
- Manually trigger schema discovery after data ingestion
- Force an immediate schema sync (bypassing debounce)
- Update schemas with new fields discovered in documents
post/v1/collections/{collection_id}/sync-schema
Path parameters
collection_idstring required
Collection ID to sync schema for
Collection ID to sync schema for
Request body
Response
Successful Response
Changes
Changed in 1 of the 34 revisions of this API.1
- ○
the endpoint scheme security
BearerAuth AND NamespaceHeaderwas added to the APIapi-security-added
This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○