Upsert a RAG document
Upsert a RAG document
Create a new project RAG document record or update an existing one by ID.
POST
Upsert a RAG document
Authorizations
Use a JWT bearer token or a Veryfront API key in the Authorization header.
Path Parameters
Project ID or slug.
Body
application/json
Document title shown to operators and AI agents.
Minimum string length:
1Existing document ID to update. Omit to create a new document.
Optional upstream source reference such as a file path or URL.
Optional document type label used for retrieval metadata.
Optional structured metadata to persist alongside the document.
Response
Created or updated RAG document.
Created or updated RAG document.