Apache CouchDB · Schema

DocumentInput

Input for creating or updating a CouchDB document

ApacheDatabaseDocument StoreJSONNoSQLOpen SourceReplicationREST

Properties

Name Type Description
_id string Optional document ID (auto-generated if omitted for POST)
_rev string Required for updates — current revision ID
View JSON Schema on GitHub

JSON Schema

apache-couchdb-document-input-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/apache-couchdb/refs/heads/main/json-schema/apache-couchdb-document-input-schema.json",
  "title": "DocumentInput",
  "description": "Input for creating or updating a CouchDB document",
  "type": "object",
  "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"
    }
  }
}