@camunda8/sdk
    Preparing search index...

    Interface UploadDocumentRequest

    interface UploadDocumentRequest {
        documentId?: string;
        file: ReadStream;
        metadata?: UploadDocumentMetadata;
        storeId?: string;
    }
    Index

    Properties

    documentId?: string

    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.

    file: ReadStream

    A file ReadStream created with fs.createReadStream()

    storeId?: string

    The ID of the document store to upload the document to.