Create or update a document by filename. If a document with the given filename exists in the space, updates it. Otherwise creates a new document. Embeddings are generated synchronously - the document is immediately queryable.
Upsert document request
The ID of the space
"space_123"
Filename to create or update
1 - 255"my-notes.md"
The document content (max 10MB)
1 - 10000000"# My Notes\n\nSome content..."
Optional metadata to attach to the document