Apache CouchDB · JSON Structure

Apache Couchdb Bulk Docs Request Structure

Request body for _bulk_docs

Type: object Properties: 2
ApacheDatabaseDocument StoreJSONNoSQLOpen SourceReplicationREST

BulkDocsRequest is a JSON Structure definition published by Apache CouchDB, describing 2 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

docs new_edits

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-couchdb/refs/heads/main/json-structure/apache-couchdb-bulk-docs-request-structure.json",
  "name": "BulkDocsRequest",
  "description": "Request body for _bulk_docs",
  "type": "object",
  "properties": {
    "docs": {
      "type": "array",
      "items": {
        "name": "DocumentInput",
        "type": "object",
        "description": "Input for creating or updating a CouchDB document",
        "properties": {
          "_id": {
            "type": "string",
            "description": "Optional document ID (auto-generated if omitted for POST)",
            "example": "doc001"
          },
          "_rev": {
            "type": "string",
            "description": "Required for updates \u2014 current revision ID",
            "example": "1-abc123def456"
          }
        }
      },
      "description": "Array of documents to create, update, or delete"
    },
    "new_edits": {
      "type": "boolean",
      "description": "If false, allow insertion of conflicting revisions (for replication)",
      "default": true,
      "example": true
    }
  }
}