Update Corpus
Replace every mutable field on a corpus in a single request.
Overview
Replace all mutable corpus fields in a single request. This is a full replacement operation - any field not provided will be reset to its default value.Authentication
Requires valid JWT token or session authentication. You must own the target corpus.Path Parameters
8d0f0a5d-4b5e-4c09-9db6-0e9d2aa8a9fdRequest Body
400 Bad Request if another of your corpora has the same normalized name.true to make the corpus discoverable by other users.Default: false (private) if omitted.VSI- Vector Store Index (best for semantic search)SMI- Summary IndexDSI- Document Summary Index
PND, PRS, IND, ERRExample request
Example response
Response Structure
false if omitted).VSI if omitted).PRS if index_type was changed and re-indexing started.Best Practices
PUT vs PATCH - When to Use Each
PUT vs PATCH - When to Use Each
- Renaming a corpus along with other changes
- You want to explicitly reset fields to defaults
- You have a complete corpus object to replace
- Updating a single field (e.g., toggling
is_published) - Making incremental changes without affecting other fields
- You don’t want to risk accidentally resetting fields
Handling Name Collisions
Handling Name Collisions
GET /api/check_corpora_name/?corpora_name=new_name before attempting the update.Index Type Migration
Index Type Migration
index_type triggers background re-indexing:Atomic Updates with Verification
Atomic Updates with Verification
400 Bad Request indicates either a name collision or attempt to modify read-only fields like creator, id, or created_at.Client examples
- Python
- TypeScript / JavaScript
- Java
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
A UUID string identifying this Corpora.
Body
Name of the corpora
100Description of the corpora
Is the corpora Visible to all users?
Type of index to be used for the corpora
VSI- VectorStoreIndexSMI- SummaryIndexDSI- DocumentSummaryIndex
VSI, SMI, DSI Status of the corpora processing
PND- PendingIQE- In QueuePRS- ProcessingDEX- Data Extracted SuccessfullyDER- Data Extraction ErrorIND- IndexedCMP- CompletedERR- Error
PND, IQE, PRS, DEX, DER, IND, CMP, ERR Response
The date and time the organization was created
Last updated time
Name of the corpora
100Size of the corpora on disk (in bytes)
Location of the index on Remote Storage
Description of the corpora
Is the corpora Visible to all users?
Type of index to be used for the corpora
VSI- VectorStoreIndexSMI- SummaryIndexDSI- DocumentSummaryIndex
VSI, SMI, DSI Status of the corpora processing
PND- PendingIQE- In QueuePRS- ProcessingDEX- Data Extracted SuccessfullyDER- Data Extraction ErrorIND- IndexedCMP- CompletedERR- Error
PND, IQE, PRS, DEX, DER, IND, CMP, ERR 
