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

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