Apache CouchDB · JSON Structure

Apache Couchdb Changes Response Structure

Database changes feed response

Type: object Properties: 3
ApacheDatabaseDocument StoreJSONNoSQLOpen SourceReplicationREST

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

Properties

last_seq pending results

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-changes-response-structure.json",
  "name": "ChangesResponse",
  "description": "Database changes feed response",
  "type": "object",
  "properties": {
    "last_seq": {
      "type": "string",
      "description": "Last sequence number in this response",
      "example": "5000-abc123"
    },
    "pending": {
      "type": "int32",
      "description": "Number of changes still pending",
      "example": 0
    },
    "results": {
      "type": "array",
      "items": {
        "name": "ChangeRow",
        "type": "object",
        "description": "A single change record in the changes feed",
        "properties": {
          "seq": {
            "type": "string",
            "description": "Update sequence number",
            "example": "5000-abc123"
          },
          "id": {
            "type": "string",
            "description": "Document ID that was changed",
            "example": "doc001"
          },
          "changes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "rev": {
                  "type": "string",
                  "example": "2-def456"
                }
              }
            }
          },
          "deleted": {
            "type": "boolean",
            "description": "True if this change is a deletion",
            "example": false
          },
          "doc": {
            "$ref": "#/components/schemas/Document"
          }
        }
      }
    }
  }
}