@ibm-cloud/cloudant - v0.12.5
    Preparing search index...

    Interface PostDocumentParams

    Parameters for the postDocument operation.

    interface PostDocumentParams {
        batch?: string;
        contentType?: string;
        db: string;
        document: Buffer<ArrayBufferLike> | ReadableStream | CloudantV1.Document;
        headers?: OutgoingHttpHeaders;
        signal?: GenericAbortSignal;
    }

    Hierarchy

    • DefaultParams
      • PostDocumentParams
    Index

    Properties

    batch?: string

    Query parameter to specify whether to store in batch mode. The server will respond with a HTTP 202 Accepted response code immediately.

    contentType?: string

    The type of the input.

    db: string

    Path parameter to specify the database name.

    document: Buffer<ArrayBufferLike> | ReadableStream | CloudantV1.Document

    HTTP request body for Document operations.

    headers?: OutgoingHttpHeaders
    signal?: GenericAbortSignal