Type Alias: CreateDocumentData
type CreateDocumentData = object;
Properties
body
body: object;
file
file: Blob | File;
metadata?
optional metadata?: DocumentMetadata;
path?
optional path?: never;
query?
optional query?: object;
documentId?
optional documentId?: DocumentId;
The ID of the document to upload. If not provided, a new ID will be generated. Specifying an existing ID will result in an error if the document already exists.
storeId?
optional storeId?: string;
The ID of the document store to upload the documents to. Currently, only a single document store is supported per cluster. However, this attribute is included to allow for potential future support of multiple document stores.
url
url: "/documents";