{
  "components": {
    "examples": {
      "ActiveTasks": {
        "description": "Example ActiveTasks response.",
        "value": [
          {
            "changes_done": 64438,
            "database": "products",
            "node": "nonode@nohost",
            "pid": "<0.12986.1>",
            "progress": 84,
            "started_on": 1376116576,
            "total_changes": 76215,
            "type": "database_compaction",
            "updated_on": 1376116619
          },
          {
            "changes_done": 14443,
            "database": "users",
            "design_document": "_design/c9753817b3ba7c674d92361f24f59b9f",
            "node": "nonode@nohost",
            "pid": "<0.10461.3>",
            "progress": 18,
            "started_on": 1376116621,
            "total_changes": 76215,
            "type": "indexer",
            "updated_on": 1376116650
          }
        ]
      },
      "ActivityTrackerEvents": {
        "description": "Example ActivityTrackerEvents request and response.",
        "value": {
          "types": [
            "management",
            "data"
          ]
        }
      },
      "AllDbsResult": {
        "description": "Example AllDbs response.",
        "value": [
          "events",
          "orders",
          "products",
          "stores",
          "users"
        ]
      },
      "AllDocsQueriesQuery": {
        "description": "Example AllDocsQueriesQuery request.",
        "value": {
          "queries": [
            {
              "keys": [
                "small-appliances:1000042",
                "small-appliances:1000043"
              ]
            },
            {
              "limit": 3,
              "skip": 2
            }
          ]
        }
      },
      "AllDocsQueriesResult": {
        "description": "Example AllDocsQueriesResult response.",
        "value": {
          "results": [
            {
              "offset": 0,
              "rows": [
                {
                  "id": "exampleid",
                  "key": "exampleid",
                  "value": {
                    "rev": "1-5005d65514fe9e90f8eccf174af5dd64"
                  }
                },
                {
                  "id": "exampleid2",
                  "key": "exampleid2",
                  "value": {
                    "rev": "1-2d7810b054babeda4812b3924428d6d6"
                  }
                }
              ],
              "total_rows": 5
            },
            {
              "offset": 2,
              "rows": [
                {
                  "id": "exampleid3",
                  "key": "exampleid3",
                  "value": {
                    "rev": "1-5005d65514fe9e90f8eccf174af5dd64"
                  }
                },
                {
                  "id": "exampleid4",
                  "key": "exampleid4",
                  "value": {
                    "rev": "1-2d7810b054babeda4812b3924428d6d6"
                  }
                }
              ],
              "total_rows": 5
            }
          ]
        }
      },
      "AllDocsQuery": {
        "description": "Example AllDocs request.",
        "value": {
          "limit": 10,
          "start_key": "0007741142412418284"
        }
      },
      "AllDocsResult": {
        "description": "Example AllDocsResult response.",
        "value": {
          "offset": 0,
          "rows": [
            {
              "doc": {
                "_id": "exampleid",
                "_rev": "1-967a00dff5e02add41819138abb3284d"
              },
              "id": "exampleid",
              "key": "exampleid",
              "value": {
                "rev": "1-967a00dff5e02add41819138abb3284d"
              }
            }
          ],
          "total_rows": 1
        }
      },
      "AllDocsResultDesignDocs": {
        "description": "Example AllDocsResult response for design documents.",
        "value": {
          "offset": 0,
          "rows": [
            {
              "id": "_design/ddoc01",
              "key": "_design/ddoc01",
              "value": {
                "rev": "1-7407569d54af5bc94c266e70cbf8a180"
              }
            },
            {
              "id": "_design/ddoc02",
              "key": "_design/ddoc02",
              "value": {
                "rev": "1-d942f0ce01647aa0f46518b213b5628e"
              }
            },
            {
              "id": "_design/ddoc03",
              "key": "_design/ddoc03",
              "value": {
                "rev": "1-721fead6e6c8d811a225d5a62d08dfd0"
              }
            },
            {
              "id": "_design/ddoc04",
              "key": "_design/ddoc04",
              "value": {
                "rev": "1-32c76b46ca61351c75a84fbcbceece2f"
              }
            },
            {
              "id": "_design/ddoc05",
              "key": "_design/ddoc05",
              "value": {
                "rev": "1-af856babf9cf746b48ae999645f9541e"
              }
            }
          ],
          "total_rows": 5
        }
      },
      "AllDocsResultLocalDocs": {
        "description": "Example AllDocsResult response for local documents.",
        "value": {
          "offset": null,
          "rows": [
            {
              "id": "_local/0011a1cdda315e7dce2978ee157e4f5d",
              "key": "_local/0011a1cdda315e7dce2978ee157e4f5d",
              "value": {
                "rev": "0-1"
              }
            }
          ],
          "total_rows": null
        }
      },
      "AllDocsResultPartition": {
        "description": "Example AllDocsResult response for a database partition.",
        "value": {
          "offset": 0,
          "rows": [
            {
              "id": "small-appliances:1000042",
              "key": "small-appliances:1000042",
              "value": {
                "rev": "1-5005d65514fe9e90f8eccf174af5dd64"
              }
            },
            {
              "id": "small-appliances:1000043",
              "key": "small-appliances:1000043",
              "value": {
                "rev": "1-2d7810b054babeda4812b3924428d6d6"
              }
            }
          ],
          "total_rows": 2
        }
      },
      "ApiKeysResult": {
        "description": "Example ApiKeysResult response.",
        "value": {
          "key": "apikey-examplegeneratedapikeyidentifier",
          "ok": true,
          "password": "abcdefABCDEFabcdefABCDEF"
        }
      },
      "AttachmentContent": {
        "description": "Example AttachmentContent request and response.",
        "value": "This appliance includes..."
      },
      "BulkDocs": {
        "description": "Example BulkDocs request: create and update documents",
        "value": {
          "docs": [
            {
              "_id": "0007241142412418284",
              "date": "2019-01-28T10:44:22.000Z",
              "eventType": "addedToBasket",
              "productId": "1000042",
              "type": "event",
              "userid": "abc123"
            },
            {
              "_id": "0008001142412418285",
              "date": "2019-01-28T12:30:00.000Z",
              "eventType": "addedToBasket",
              "productId": "1000043",
              "type": "event",
              "userid": "def456"
            }
          ]
        }
      },
      "BulkDocsDelete": {
        "description": "Example BulkDocs request: delete documents",
        "value": {
          "docs": [
            {
              "_deleted": true,
              "_id": "0007241142412418284",
              "_rev": "1-5005d65514fe9e90f8eccf174af5dd64"
            },
            {
              "_deleted": true,
              "_id": "0008001142412418285",
              "_rev": "1-2d7810b054babeda4812b3924428d6d6"
            }
          ]
        }
      },
      "BulkDocsResult": {
        "description": "Example BulkDocsResult response.",
        "value": [
          {
            "id": "0007241142412418284",
            "ok": true,
            "rev": "1-5005d65514fe9e90f8eccf174af5dd64"
          },
          {
            "id": "0008001142412418285",
            "ok": true,
            "rev": "1-2d7810b054babeda4812b3924428d6d6"
          }
        ]
      },
      "BulkGetQuery": {
        "description": "Example BulkGetQuery request.",
        "value": {
          "docs": [
            {
              "id": "order00067",
              "rev": "3-917fa2381192822767f010b95b45325b"
            },
            {
              "id": "order00067",
              "rev": "4-a5be949eeb7296747cc271766e9a498b"
            }
          ]
        }
      },
      "BulkGetResult": {
        "description": "Example BulkGetResult response.",
        "value": {
          "results": [
            {
              "docs": [
                {
                  "ok": {
                    "_id": "order00067",
                    "_rev": "3-917fa2381192822767f010b95b45325b",
                    "basket": [
                      {
                        "name": "Salter - Digital Kitchen Scales",
                        "price": 14.99
                      }
                    ],
                    "date": "2019-01-21T10:10:12.000Z",
                    "delivered": false,
                    "deliveryAddress": {
                      "postcode": "DL5 1TY",
                      "street": "19 Front St",
                      "town": "Darlington"
                    },
                    "orderid": "00067",
                    "total": 14.99,
                    "type": "order",
                    "user": "Bob Smith",
                    "userid": "abc123"
                  }
                }
              ],
              "id": "order00067"
            },
            {
              "docs": [
                {
                  "ok": {
                    "_id": "order00067",
                    "_rev": "4-a5be949eeb7296747cc271766e9a498b",
                    "basket": [
                      {
                        "name": "Salter - Digital Kitchen Scales",
                        "price": 14.99
                      },
                      {
                        "name": "Kenwood - Stand Mixer",
                        "price": 199.99
                      }
                    ],
                    "courier": "UPS",
                    "courierid": "15125425151261289",
                    "date": "2019-01-28T10:44:22.000Z",
                    "delivered": true,
                    "deliveryAddress": {
                      "postcode": "DL5 1TY",
                      "street": "19 Front St",
                      "town": "Darlington"
                    },
                    "orderid": "00067",
                    "total": 214.98,
                    "type": "order",
                    "user": "Bob Smith",
                    "userid": "abc123"
                  }
                }
              ],
              "id": "order00067"
            }
          ]
        }
      },
      "BulkGetResultAttsSince": {
        "description": "Example BulkGetResult response for the `atts_since` alternative request.",
        "summary": "Response for the `atts_since` alternative request",
        "value": {
          "results": [
            {
              "docs": [
                {
                  "ok": {
                    "_attachments": {
                      "att": {
                        "content_type": "application/json",
                        "digest": "md5-cCkGbCesb17xjWYNV0GXmg==",
                        "length": 0,
                        "revpos": 1,
                        "stub": true
                      }
                    },
                    "_id": "order00058",
                    "_rev": "1-99b02e08da151943c2dcb40090160bb8"
                  }
                }
              ],
              "id": "order00058"
            }
          ]
        }
      },
      "BulkGetResultMultipart": {
        "description": "Example multipart response for bulk get.",
        "value": {
          "results": [
            {
              "document": {
                "_attachments": {
                  "recipe.txt": {
                    "content_type": "text/plain",
                    "digest": "md5-HV9aXJdEnu0xnMQYTKgOFA==",
                    "follows": true,
                    "length": 86,
                    "revpos": 2
                  }
                },
                "_id": "secret",
                "_rev": "2-c1c6c44c4bc3c9344b037c8690468605",
                "_revisions": {
                  "ids": [
                    "c1c6c44c4bc3c9344b037c8690468605",
                    "967a00dff5e02add41819138abb3284d"
                  ],
                  "start": 2
                }
              },
              "documentAttachments": [
                "1. Take R\n2. Take E\n3. Mix with L\n4. Add some A\n5. Serve with X"
              ]
            },
            {
              "error": "not_found",
              "reason": "missing",
              "rev": "6-cf874ee0892013c7e10c1c3692a5afe2"
            }
          ]
        },
        "x-raw-multipart": {
          "notes": "Raw multipart representation of the example",
          "value": "Content-Type: multipart/related; \\\nboundary=\"--65275f24d4e39d8a7c67fce95bebd740\"\n----65275f24d4e39d8a7c67fce95bebd740\nX-Doc-Id: secret\nX-Rev-Id: 2-c1c6c44c4bc3c9344b037c8690468605\nContent-Type: multipart/related; \\\nboundary=--04c914b11118c75ba14c3a76d4f334d2\n\n----04c914b11118c75ba14c3a76d4f334d2\nContent-Type: application/json\n\n{\n\"_id\":\"secret\",\n\"_rev\":\"2-c1c6c44c4bc3c9344b037c8690468605\",\n\"_attachments\":{\n  \"recipe.txt\":{\n    \"content_type\":\"text/plain\",\n    \"revpos\":2,\n    \"digest\":\"md5-HV9aXJdEnu0xnMQYTKgOFA==\",\n    \"length\":86,\n    \"follows\":true}\n  }\n\"_revisions\":{\n  \"start\":2,\n  \"ids\":[\n    \"c1c6c44c4bc3c9344b037c8690468605\",\n    \"967a00dff5e02add41819138abb3284d\"]\n  }\n}\n\n----04c914b11118c75ba14c3a76d4f334d2\nContent-Disposition: attachment; filename=\"recipe.txt\"\nContent-Type: text/plain\nContent-Length: 86\n\n1. Take R\n2. Take E\n3. Mix with L\n4. Add some A\n5. Serve with X\n\n----04c914b11118c75ba14c3a76d4f334d2--\n\n----65275f24d4e39d8a7c67fce95bebd740\nContent-Type: application/json; error=\"true\"\n\n{\n  \"rev\":\"6-cf874ee0892013c7e10c1c3692a5afe2\",\n  \"error\":\"not_found\",\n  \"reason\":\"missing\"\n}\n----65275f24d4e39d8a7c67fce95bebd740--"
        }
      },
      "BulkGetResultOpenRevs": {
        "description": "Example BulkGetResult response for the `open_revs=all` alternative request.",
        "summary": "Response for the `open_revs=all` alternative request",
        "value": {
          "results": [
            {
              "docs": [
                {
                  "ok": {
                    "_id": "order00067",
                    "_rev": "3-917fa2381192822767f010b95b45325b",
                    "basket": [
                      {
                        "name": "Salter - Digital Kitchen Scales",
                        "price": 14.99
                      }
                    ],
                    "date": "2019-01-21T10:10:12.000Z",
                    "delivered": false,
                    "deliveryAddress": {
                      "postcode": "DL5 1TY",
                      "street": "19 Front St",
                      "town": "Darlington"
                    },
                    "orderid": "00067",
                    "total": 14.99,
                    "type": "order",
                    "user": "Bob Smith",
                    "userid": "abc123"
                  }
                },
                {
                  "ok": {
                    "_id": "order00067",
                    "_rev": "4-a5be949eeb7296747cc271766e9a498b",
                    "basket": [
                      {
                        "name": "Salter - Digital Kitchen Scales",
                        "price": 14.99
                      },
                      {
                        "name": "Kenwood - Stand Mixer",
                        "price": 199.99
                      }
                    ],
                    "courier": "UPS",
                    "courierid": "15125425151261289",
                    "date": "2019-01-28T10:44:22.000Z",
                    "delivered": true,
                    "deliveryAddress": {
                      "postcode": "DL5 1TY",
                      "street": "19 Front St",
                      "town": "Darlington"
                    },
                    "orderid": "00067",
                    "total": 214.98,
                    "type": "order",
                    "user": "Bob Smith",
                    "userid": "abc123"
                  }
                }
              ],
              "id": "order00067"
            }
          ]
        }
      },
      "CapacityDatabasesInformation": {
        "value": {
          "current": {
            "databases": {
              "total": 200
            }
          }
        }
      },
      "CapacityThroughputConfiguration": {
        "description": "Example CapacityThroughputConfiguration request.",
        "value": {
          "blocks": 10
        }
      },
      "CapacityThroughputInformation": {
        "description": "Example CapacityThroughputInformation response.",
        "value": {
          "current": {
            "throughput": {
              "blocks": 5,
              "query": 25,
              "read": 500,
              "write": 250
            }
          },
          "target": {
            "throughput": {
              "blocks": 10,
              "query": 50,
              "read": 1000,
              "write": 500
            }
          }
        }
      },
      "CcmDiagnostics": {
        "description": "Example getCcmDiagnostics response.",
        "value": {
          "account": "5lll032-dd12-536e-09b3-432fg9f07e78-bluemix",
          "deny429History": [
            {
              "lookup": 0,
              "query": 0,
              "ts": 1688993801,
              "write": 0
            }
          ],
          "lookup": 0,
          "operationHistory": [
            {
              "lookup": 0,
              "query": 0,
              "ts": 1688993801,
              "write": 0
            }
          ],
          "query": 0,
          "ts": 1688993805,
          "write": 0
        }
      },
      "ChangesQueryFilterDocIds": {
        "description": "Example ChangesQuery request if `?filter=_doc_ids` is used.",
        "value": {
          "doc_ids": [
            "0007741142412418284"
          ]
        }
      },
      "ChangesQueryFilterSelector": {
        "description": "Example ChangesQuery request if `?filter=_selector` is used.",
        "value": {
          "fields": [
            "type",
            "user"
          ],
          "selector": {
            "_id": {
              "$regex": "^0+7741142412418284"
            }
          }
        }
      },
      "ChangesResult": {
        "description": "Example ChangesResult response.",
        "value": {
          "last_seq": "7-g1AAAAPveJy1kk9OAjEYxSuYGBO3nsCdC9LOP5yVXkGhB-jXdoKTsSQG1p7CKyj0Ep6CS3AGob5hwYSNMJOwek3T971fXr-KMXYz6Rt2Z0hP3-2ToWygq-ncKDfjXOzPA2dnFR73FKNbKcelYoe2-H9bbZJ07_2ynPTVxRvurjTPhU6i06YcpkVH0hDk6TGEbWtOmAKBddRwUpw-iKE4ByeCxlR6v2jNCdOSPkLY1JxsxykyLlKuDLueO2OLV2dNq6-tx23dJXuR8rMtD2wj2CDfqL5m6u2Ycp1HQ5N26e4ILaIWiIL8hvDTgXcDG-RZylXDm8V5IbLkPLwodgX58n7dgRfFriHYz9DsZpqQtQWdNqn8A1TdTOE",
          "pending": 3,
          "results": [
            {
              "changes": [
                {
                  "rev": "7-7a5191bfeb2f6eed6b3b6fa83f4810f5"
                }
              ],
              "deleted": true,
              "id": "0007741142412418284",
              "seq": "1-g1AAAAMFeJydkcENgjAUhquYePHqBN48EEBj4klXUOgAbSExDUJi8OwUrqDQJZyCJZhBqD8XE0Iiwulvmvf1e68vJITMToZPFj4X8SXY-3xjijC--ixKLMv-ns0oSEIUjxnhc0o9yUgTW_3GaojypVKZPBlsdMbdVFhbW6yd_15p2pwOG0SK77SuevcJSHP06rbILicgj0ul0t5OQBm_aV22yI5l1FAVTciR0ntfKzAXGOKJz-prBpYCQ7y1fg1wl8AQB0rzAW4MnCMeShUD3Bi4QGDTGrT8AMkPBk0"
            }
          ]
        }
      },
      "CloudantSecurityConfiguration": {
        "description": "Example Cloudant Security document.",
        "value": {
          "cloudant": {
            "antsellseadespecteposene": [
              "_reader",
              "_writer",
              "_admin"
            ],
            "garbados": [
              "_reader",
              "_writer"
            ],
            "nobody": [
              "_reader"
            ]
          }
        }
      },
      "CorsConfiguration": {
        "description": "Example CorsConfiguration request.",
        "value": {
          "allow_credentials": true,
          "enable_cors": true,
          "origins": [
            "https://example.com",
            "https://www.example.com"
          ]
        }
      },
      "CurrentDatabasesInformation": {
        "value": {
          "databases": {
            "total": 42
          }
        }
      },
      "CurrentThroughputInformation": {
        "description": "Example CurrentThroughputInformation response.",
        "value": {
          "throughput": {
            "query": 13,
            "read": 133,
            "write": 42
          }
        }
      },
      "DatabaseInformation": {
        "description": "Example DatabaseInformation response.",
        "value": {
          "cluster": {
            "n": 3,
            "q": 8,
            "r": 2,
            "w": 2
          },
          "compact_running": false,
          "db_name": "products",
          "disk_format_version": 8,
          "doc_count": 5,
          "doc_del_count": 1,
          "instance_start_time": "0",
          "partitioned_indexes": {
            "count": 4,
            "indexes": {
              "search": 2,
              "view": 2
            },
            "limit": 10
          },
          "props": {
            "partitioned": true
          },
          "purge_seq": "8-g1AAAALReJyd0T8OgjAUBvCKjq6ewM2BQPyz6hUUeoAWSExDIDE4ewqvoNBLeAouwRmE58diQprY4PR16C9f-17KGJufpzFbxjLKL8khljs3SvNrLLLC8_zv2c2SIsVlRzC54DxUwhmyzW_WIy5XWldKTEYV9kjLPVFnSFsnEEn0Bob0LRIolErrUgk2lGuLBKrkjag1pK0TqMtm7MT53XivpRUsAEM8MSxjN5YJg5VgiDfRa-xmwVowxJHz-o9ufLhGPLRujJltrRofbhDYNGFq6gOYofZj",
          "sizes": {
            "active": 8887,
            "external": 1872,
            "file": 685680
          },
          "update_seq": "89-g1AAAAIjeJzLYWBg4MhgTmHQTklKzi9KdUhJMtbLzCtJTS9KLMnMzysuSS0uMTAw1EvOyS9NScwr0ctLLckBamLKYwGSDA-A1H8gyErkRDXFkBRTDkBMuY9hihEppiyAmLI_K1GQAh81QEyZn5XIRZaPkhKAZFI9tjAh0jdJDiAT4rGZQKRPkhRAJtiDTRAkyxeJDEnyEAdkAQCgLLsf"
        }
      },
      "DbUpdates": {
        "description": "Example DbUpdates response.",
        "value": {
          "last_seq": "1-g1AAAAMFeJydkcENgjAUhquYePHqBN48EEBj4klXUOgAbSExDUJi8OwUrqDQJZyCJZhBqD8XE0Iiwulvmvf1e68vJITMToZPFj4X8SXY-3xjijC--ixKLMv-ns0oSEIUjxnhc0o9yUgTW_3GaojypVKZPBlsdMbdVFhbW6yd_15p2pwOG0SK77SuevcJSHP06rbILicgj0ul0t5OQBm_aV22yI5l1FAVTciR0ntfKzAXGOKJz-prBpYCQ7y1fg1wl8AQB0rzAW4MnCMeShUD3Bi4QGDTGrT8AMkPBk0",
          "results": [
            {
              "db_name": "events",
              "seq": "1-g1AAAAMFeJydkcENgjAUhquYePHqBN48EEBj4klXUOgAbSExDUJi8OwUrqDQJZyCJZhBqD8XE0Iiwulvmvf1e68vJITMToZPFj4X8SXY-3xjijC--ixKLMv-ns0oSEIUjxnhc0o9yUgTW_3GaojypVKZPBlsdMbdVFhbW6yd_15p2pwOG0SK77SuevcJSHP06rbILicgj0ul0t5OQBm_aV22yI5l1FAVTciR0ntfKzAXGOKJz-prBpYCQ7y1fg1wl8AQB0rzAW4MnCMeShUD3Bi4QGDTGrT8AMkPBk0",
              "type": "created"
            }
          ]
        }
      },
      "DbsInfoQuery": {
        "description": "Example DbsInfoQuery request.",
        "value": {
          "keys": [
            "products",
            "users",
            "orders"
          ]
        }
      },
      "DbsInfoResults": {
        "description": "Example DbsInfoResults response.",
        "value": [
          {
            "info": {
              "cluster": {
                "n": 3,
                "q": 1,
                "r": 1,
                "w": 1
              },
              "compact_running": false,
              "db_name": "products",
              "disk_format_version": 8,
              "doc_count": 5,
              "doc_del_count": 1,
              "instance_start_time": "0",
              "partitioned_indexes": {
                "count": 4,
                "indexes": {
                  "search": 2,
                  "view": 2
                },
                "limit": 10
              },
              "props": {
                "partitioned": true
              },
              "purge_seq": "8-g1AAAALReJyd0T8OgjAUBvCKjq6ewM2BQPyz6hUUeoAWSExDIDE4ewqvoNBLeAouwRmE58diQprY4PR16C9f-17KGJufpzFbxjLKL8khljs3SvNrLLLC8_zv2c2SIsVlRzC54DxUwhmyzW_WIy5XWldKTEYV9kjLPVFnSFsnEEn0Bob0LRIolErrUgk2lGuLBKrkjag1pK0TqMtm7MT53XivpRUsAEM8MSxjN5YJg5VgiDfRa-xmwVowxJHz-o9ufLhGPLRujJltrRofbhDYNGFq6gOYofZj",
              "sizes": {
                "active": 8887,
                "external": 1872,
                "file": 685680
              },
              "update_seq": "89-g1AAAALReJyd0T8OgjAUBvCKjq6ewM2BQPyz6hUUeoAWSExDIDE4ewqvoNBLeAouwRmE58diQprY4PR16C9f-17KGJufpzFbxjLKL8khljs3SvNrLLLC8_zv2c2SIsVlRzC54DxUwhmyzW_WIy5XWldKTEYV9kjLPVFnSFsnEEn0Bob0LRIolErrUgk2lGuLBKrkjag1pK0TqMtm7MT53XivpRUsAEM8MSxjN5YJg5VgiDfRa-xmwVowxJHz-o9ufLhGPLRujJltrRofbhDYNGFq6gOYofZj"
            },
            "key": "products"
          },
          {
            "info": {
              "cluster": {
                "n": 3,
                "q": 8,
                "r": 2,
                "w": 2
              },
              "compact_running": false,
              "db_name": "users",
              "disk_format_version": 8,
              "doc_count": 11,
              "doc_del_count": 0,
              "instance_start_time": "0",
              "props": {},
              "purge_seq": "8-g1AAAALReJyd0T8OgjAUBvCKjq6ewM2BQPyz6hUUeoAWSExDIDE4ewqvoNBLeAouwRmE58diQprY4PR16C9f-17KGJufpzFbxjLKL8khljs3SvNrLLLC8_zv2c2SIsVlRzC54DxUwhmyzW_WIy5XWldKTEYV9kjLPVFnSFsnEEn0Bob0LRIolErrUgk2lGuLBKrkjag1pK0TqMtm7MT53XivpRUsAEM8MSxjN5YJg5VgiDfRa-xmwVowxJHz-o9ufLhGPLRujJltrRofbhDYNGFq6gOYofZj",
              "sizes": {
                "active": 67475,
                "external": 2339,
                "file": 3872387
              },
              "update_seq": "13-g1AAAALReJyd0T8OgjAUBvCKjq6ewM2BQPyz6hUUeoAWSExDIDE4ewqvoNBLeAouwRmE58diQprY4PR16C9f-17KGJufpzFbxjLKL8khljs3SvNrLLLC8_zv2c2SIsVlRzC54DxUwhmyzW_WIy5XWldKTEYV9kjLPVFnSFsnEEn0Bob0LRIolErrUgk2lGuLBKrkjag1pK0TqMtm7MT53XivpRUsAEM8MSxjN5YJg5VgiDfRa-xmwVowxJHz-o9ufLhGPLRujJltrRofbhDYNGFq6gOYofZj"
            },
            "key": "users"
          },
          {
            "info": {
              "cluster": {
                "n": 3,
                "q": 8,
                "r": 2,
                "w": 2
              },
              "compact_running": false,
              "db_name": "orders",
              "disk_format_version": 8,
              "doc_count": 5,
              "doc_del_count": 0,
              "instance_start_time": "0",
              "props": {},
              "purge_seq": "8-g1AAAALReJyd0T8OgjAUBvCKjq6ewM2BQPyz6hUUeoAWSExDIDE4ewqvoNBLeAouwRmE58diQprY4PR16C9f-17KGJufpzFbxjLKL8khljs3SvNrLLLC8_zv2c2SIsVlRzC54DxUwhmyzW_WIy5XWldKTEYV9kjLPVFnSFsnEEn0Bob0LRIolErrUgk2lGuLBKrkjag1pK0TqMtm7MT53XivpRUsAEM8MSxjN5YJg5VgiDfRa-xmwVowxJHz-o9ufLhGPLRujJltrRofbhDYNGFq6gOYofZj",
              "sizes": {
                "active": 44475,
                "external": 1339,
                "file": 133970
              },
              "update_seq": "13-g1AAAALReJyd0T8OgjAUBvCKjq6ewM2BQPyz6hUUeoAWSExDIDE4ewqvoNBLeAouwRmE58diQprY4PR16C9f-17KGJufpzFbxjLKL8khljs3SvNrLLLC8_zv2c2SIsVlRzC54DxUwhmyzW_WIy5XWldKTEYV9kjLPVFnSFsnEEn0Bob0LRIolErrUgk2lGuLBKrkjag1pK0TqMtm7MT53XivpRUsAEM8MSxjN5YJg5VgiDfRa-xmwVowxJHz-o9ufLhGPLRujJltrRofbhDYNGFq6gOYofZj"
            },
            "key": "orders"
          }
        ]
      },
      "DesignDocument": {
        "description": "Example DesignDocument.",
        "value": {
          "_id": "_design/appliances",
          "_rev": "8-7e2537e5989294471061e0cfd7292725",
          "indexes": {
            "findByPrice": {
              "analyzer": {
                "name": "standard"
              },
              "index": "function (doc) {\n  index(\"price\", doc.price);\n}"
            }
          },
          "views": {
            "byApplianceProdId": {
              "map": "function(doc) {\n  emit(doc.productId, [doc.brand, doc.name, doc.description])\n}"
            }
          }
        }
      },
      "DesignDocumentInformation": {
        "description": "Example DesignDocumentInformation response.",
        "value": {
          "name": "appliances",
          "view_index": {
            "collator_versions": [
              "153.72"
            ],
            "compact_running": false,
            "language": "javascript",
            "purge_seq": 0,
            "signature": "a85901c6c0c027ab8f319f9995b6d951",
            "sizes": {
              "active": 593,
              "external": 703,
              "file": 70340
            },
            "update_seq": 47,
            "updater_running": false,
            "updates_pending": {
              "minimum": 42,
              "preferred": 42,
              "total": 42
            },
            "waiting_clients": 0,
            "waiting_commit": false
          }
        }
      },
      "DesignDocumentPartition": {
        "description": "Example DesignDocument for a database partition.",
        "value": {
          "_id": "_design/partitioned_appliances",
          "_rev": "8-7e2537e5989294471061e0cfd7292725",
          "indexes": {
            "findByBrand": {
              "analyzer": {
                "name": "standard"
              },
              "index": "function (doc) {\n  index(\"brand\", doc.brand);\n}"
            }
          },
          "language": "javascript",
          "options": {
            "partitioned": true
          }
        }
      },
      "Document": {
        "description": "Example Document.",
        "value": {
          "_id": "exampleid",
          "brand": "Foo",
          "colours": [
            "red",
            "green",
            "black",
            "blue"
          ],
          "description": "Slim Colourful Design Electronic Cooking Appliance for ...",
          "image": "assets/img/0gmsnghhew.jpg",
          "keywords": [
            "Foo",
            "Scales",
            "Weight",
            "Digital",
            "Kitchen"
          ],
          "name": "Digital Kitchen Scales",
          "price": 14.99,
          "productId": "1000042",
          "taxonomy": [
            "Home",
            "Kitchen",
            "Small Appliances"
          ],
          "type": "product"
        }
      },
      "DocumentMultipartRequest": {
        "description": "Example multipart request of document with attachments.",
        "value": {
          "document": {
            "_attachments": {
              "bar.txt": {
                "content_type": "text/plain",
                "follows": true,
                "length": 20
              },
              "foo.txt": {
                "content_type": "text/plain",
                "follows": true,
                "length": 21
              }
            },
            "body": "This is a body"
          },
          "documentAttachments": [
            "this is 21 chars long",
            "this is 20 chars lon"
          ]
        },
        "x-raw-multipart": {
          "notes": "Raw multipart representation of the example",
          "value": "Content-Type: multipart/related;boundary=\"abc123\"\n\n--abc123\nContent-Type: application/json\n\n{\n    \"body\": \"This is a body.\",\n    \"_attachments\": {\n        \"foo.txt\": {\n            \"follows\": true,\n            \"content_type\": \"text/plain\",\n            \"length\": 21\n        },\n        \"bar.txt\": {\n            \"follows\": true,\n            \"content_type\": \"text/plain\",\n            \"length\": 20\n        }\n    }\n}\n\n--abc123\n\nthis is 21 chars long\n--abc123\n\nthis is 20 chars lon\n--abc123--"
        }
      },
      "DocumentMultipartResponse": {
        "description": "Example multipart response of document with attachments.",
        "value": {
          "document": {
            "_attachments": {
              "recipe.txt": {
                "content_type": "text/plain",
                "digest": "md5-HV9aXJdEnu0xnMQYTKgOFA==",
                "follows": true,
                "length": 86,
                "revpos": 2
              }
            },
            "_id": "secret",
            "_rev": "2-c1c6c44c4bc3c9344b037c8690468605"
          },
          "documentAttachments": [
            "1. Take R\n2. Take E\n3. Mix with L\n4. Add some A\n5. Serve with X"
          ]
        },
        "x-raw-multipart": {
          "notes": "Raw multipart representation of the example",
          "value": "Content-Type: multipart/related; \\\nboundary=\"e89b3e29388aef23453450d10e5aaed0\"\n\n--e89b3e29388aef23453450d10e5aaed0\nContent-Type: application/json\n\n{\n\"_id\":\"secret\",\n\"_rev\":\"2-c1c6c44c4bc3c9344b037c8690468605\",\n\"_attachments\":{\n  \"recipe.txt\":{\n    \"content_type\":\"text/plain\",\n    \"revpos\":2,\n    \"digest\":\"md5-HV9aXJdEnu0xnMQYTKgOFA==\",\n    \"length\":86,\n    \"follows\":true}\n  }\n}\n--e89b3e29388aef23453450d10e5aaed0\nContent-Disposition: attachment; filename=\"recipe.txt\"\nContent-Type: text/plain\nContent-Length: 86\n\n1. Take R\n2. Take E\n3. Mix with L\n4. Add some A\n5. Serve with X\n\n--e89b3e29388aef23453450d10e5aaed0--"
        }
      },
      "DocumentResult": {
        "description": "Example DocumentResult for a creation.",
        "value": {
          "id": "exampleid",
          "ok": true,
          "rev": "2-056f5f44046ecafc08a2bc2b9c229e20"
        }
      },
      "DocumentResultDeleted": {
        "description": "Example DocumentResult for a deletion.",
        "value": {
          "id": "exampleid",
          "ok": true,
          "rev": "3-056f5f44046ecafc08a2bc2b9c229e20"
        }
      },
      "DocumentResultUpdated": {
        "description": "Example DocumentResult for an update.",
        "value": {
          "id": "exampleid",
          "ok": true,
          "rev": "2-9c65296036141e575d32ba9c034dd3ee"
        }
      },
      "DocumentRevisions": {
        "description": "Example DocumentRevisions request.",
        "value": {
          "order00077": [
            "3-b06fcd1c1c9e0ec7c480ee8aa467bf3b",
            "3-0e871ef78849b0c206091f1a7af6ec41"
          ]
        }
      },
      "DocumentShardInfo": {
        "description": "Example document shard information response.",
        "value": {
          "nodes": [
            "dbcore@db1.example",
            "dbcore@db2.example",
            "dbcore@db3.example"
          ],
          "range": "d0000000-dfffffff"
        }
      },
      "EnsureFullCommitInformation": {
        "description": "Example EnsureFullCommitInformation response.",
        "value": {
          "instance_start_time": "0",
          "ok": true
        }
      },
      "Error400AuthHeaderInvalid": {
        "description": "Example error response for an invalid base64 header value.",
        "summary": "Authorization header is invalid",
        "value": {
          "error": "bad_request",
          "reason": "Authorization header has invalid base64 value"
        }
      },
      "Error400BadRequest": {
        "description": "Example error response for a bad request.",
        "summary": "Invalid request structure",
        "value": {
          "error": "bad_request",
          "reason": "Bad request."
        }
      },
      "Error400CountParameterTooLarge": {
        "description": "Example error response for a bad request for too many UUIDs.",
        "summary": "Too many UUIDs requested",
        "value": {
          "error": "bad_request",
          "reason": "count parameter too large"
        }
      },
      "Error400DatabaseDeletedWithRev": {
        "description": "Example error response for a bad request deleting a database with a document rev.",
        "summary": "Invalid parameter rev specified for operation",
        "value": {
          "error": "bad_request",
          "reason": "You tried to DELETE a database with a ?=rev parameter. Did you mean to DELETE a document instead?"
        }
      },
      "Error400DbsInfoMissingKeys": {
        "description": "Example error response for a bad request missing keys.",
        "summary": "Missing keys parameter",
        "value": {
          "error": "bad_request",
          "reason": "`keys` member must exist."
        }
      },
      "Error400InvalidDatabaseName": {
        "description": "Example error response for an invalid database name.",
        "summary": "Invalid database name",
        "value": {
          "error": "illegal_database_name",
          "reason": "Only lowercase characters (a-z), digits (0-9), and any of the characters _, $, (, ), +, -, and / are allowed. Must begin with a letter."
        }
      },
      "Error400InvalidJson": {
        "description": "Example error response for a bad request with invalid UTF-8 JSON.",
        "summary": "Invalid JSON",
        "value": {
          "error": "bad_request",
          "reason": "invalid UTF-8 JSON"
        }
      },
      "Error400InvalidPartition": {
        "description": "Example error response for a bad request with an invalid partition name.",
        "summary": "Invalid partition name",
        "value": {
          "error": "bad_request",
          "reason": "invalid_partition_req"
        }
      },
      "Error400NotSupportedOption": {
        "description": "Example error response for a bad request with an unsupported option.",
        "summary": "Unsupported option",
        "value": {
          "error": "bad_request",
          "reason": "`partition` is not supported on this search index"
        }
      },
      "Error401AdminPrivilegesRequired": {
        "description": "Example error response for administrator privileges required.",
        "summary": "Admin privileges are required",
        "value": {
          "error": "unauthorized",
          "reason": "You are not a server admin."
        }
      },
      "Error401ReaderPrivilegesRequired": {
        "description": "Example error response for reader access is required for this request.",
        "summary": "Reader access is required",
        "value": {
          "error": "unauthorized",
          "reason": "_reader access is required for this request."
        }
      },
      "Error401Unauthorized": {
        "description": "Example error response for incorrect credentials.",
        "summary": "Incorrect credentials",
        "value": {
          "error": "unauthorized",
          "reason": "Name or password is incorrect."
        }
      },
      "Error401WriterOrCreatorPrivilegesRequired": {
        "description": "Example error response for writer or creator access is required.",
        "summary": "Writer or creator access is required",
        "value": {
          "error": "unauthorized",
          "reason": "one of _writer, _creator is required for this request."
        }
      },
      "Error401WriterPrivilegesRequired": {
        "description": "Example error response for writer access is required.",
        "summary": "Writer access is required",
        "value": {
          "error": "unauthorized",
          "reason": "_writer access is required for this request."
        }
      },
      "Error402OverDataQuota": {
        "description": "Example error response when the data quota of the plan is exceeded.\n",
        "summary": "Data is over quota",
        "value": {
          "error": "over_data_quota",
          "reason": "Account has exceeded its data usage quota. An upgrade to a paid plan is required."
        }
      },
      "Error402PaymentRequired": {
        "description": "Example error response when payment is required.\nFor example, if the data quota of the plan is exceeded.\n",
        "summary": "Payment is required",
        "value": {
          "error": "payment_required",
          "reason": "Payment required"
        }
      },
      "Error403Forbidden": {
        "description": "Example error response for a forbidden request.",
        "summary": "Access is forbidden",
        "value": {
          "error": "forbidden",
          "reason": "server_admin access is required for this request"
        }
      },
      "Error403TempAccountLockout": {
        "description": "Example error response for an account temporarily locked out.",
        "summary": "Account is temporarily locked",
        "value": {
          "error": "forbidden",
          "reason": "Account is temporarily locked due to multiple authentication failures"
        }
      },
      "Error404DatabaseDoesNotExist": {
        "description": "Example error response for a database does not exist.",
        "summary": "Database not found",
        "value": {
          "error": "not_found",
          "reason": "Database does not exist."
        }
      },
      "Error404DocumentDoesNotExist": {
        "description": "Example error response for a document ID does not exist.",
        "summary": "Document not found",
        "value": {
          "error": "not_found",
          "reason": "missing"
        }
      },
      "Error404MissingNamedView": {
        "description": "Example error response for a missing view.",
        "summary": "Missing named view",
        "value": {
          "error": "not_found",
          "reason": "missing_named_view"
        }
      },
      "Error404NotFound": {
        "description": "Example error response for a not found request.",
        "summary": "The requested path was not found",
        "value": {
          "error": "not_found",
          "reason": "missing"
        }
      },
      "Error408RequestTimeout": {
        "description": "Example error response for timeout reading client request.",
        "summary": "Request timeout",
        "value": {
          "error": "request_timeout",
          "reason": "Request timeout"
        }
      },
      "Error409DocumentConflict": {
        "description": "Example error response for a document update conflict.",
        "summary": "Document update conflict",
        "value": {
          "error": "conflict",
          "reason": "Document update conflict."
        }
      },
      "Error410Gone": {
        "description": "Example error response for gone.",
        "summary": "Requested resource is no longer available",
        "value": {
          "error": "gone",
          "reason": "The requested resource is no longer located here, verify your DNS settings."
        }
      },
      "Error412DatabaseAlreadyExists": {
        "description": "Example error response for a database already existing.",
        "summary": "Database already exits",
        "value": {
          "error": "file_exists",
          "reason": "The database could not be created, the file already exists."
        }
      },
      "Error413AttachmentTooLarge": {
        "description": "Example error response for a request with an attachment size that\nexceeds the allowable limit.\n",
        "summary": "Attachment too large",
        "value": {
          "error": "attachment_too_large",
          "reason": "attachment_name"
        }
      },
      "Error413DocumentTooLarge": {
        "description": "Example error response for a request with a document size that exceeds\nthe allowable limit.\n",
        "summary": "Document too large",
        "value": {
          "error": "document_too_large",
          "reason": "doc_id"
        }
      },
      "Error413TooLarge": {
        "description": "Example error response for a request size that exceeds the limit.",
        "summary": "Request is too large",
        "value": {
          "error": "too_large",
          "reason": "the request entity is too large"
        }
      },
      "Error415UnsupportedMediaType": {
        "description": "Example error response for unsupported media type.",
        "summary": "Unsupported media type",
        "value": {
          "error": "bad_content_type",
          "reason": "Content-Type must be application/json"
        }
      },
      "Error416RangeNotSatisfiable": {
        "description": "Example error response for requested range not satisfiable.",
        "summary": "Range not satisfiable",
        "value": {
          "error": "requested_range_not_satisfiable",
          "reason": "Requested range not satisfiable"
        }
      },
      "Error429TooManyRequests": {
        "description": "Example error response for too many requests.",
        "summary": "Rate limit allowance is over quota",
        "value": {
          "error": "too_many_requests",
          "reason": "You've exceeded your rate limit allowance. Please try again later."
        }
      },
      "Error500UnknownError": {
        "description": "Example error response for an unknown server error.",
        "summary": "Unknown server error",
        "value": {
          "error": "unknown_error",
          "reason": "function_clause",
          "ref": 2632214382
        }
      },
      "Error502BadGateway": {
        "description": "Example error response for bad gateway.",
        "summary": "Bad gateway",
        "value": {
          "error": "bad_gateway",
          "reason": "Bad gateway"
        }
      },
      "Error503ServiceUnavailable": {
        "description": "Example error response for service unavailable.",
        "summary": "Service is unavailable",
        "value": {
          "error": "service_unavailable",
          "reason": "Service unavailable"
        }
      },
      "Error504GatewayTimeout": {
        "description": "Example error response for gateway timeout.",
        "summary": "Gateway timeout",
        "value": {
          "error": "gateway_timeout",
          "reason": "Gateway timeout"
        }
      },
      "Error507InsufficientStorage": {
        "description": "Example error response for insufficient storage.",
        "summary": "Insufficient storage",
        "value": {
          "error": "insufficient_storage",
          "reason": "database_dir is too full"
        }
      },
      "ExplainResult": {
        "description": "Example ExplainResult response.",
        "value": {
          "covering": false,
          "dbname": "users",
          "fields": [
            "surname",
            "email"
          ],
          "index": {
            "ddoc": "_design/id-index",
            "def": {
              "fields": [
                {
                  "_id": "asc"
                }
              ]
            },
            "name": "d479bdddf50865e520a0193704c8b93a3bd48f77",
            "type": "json"
          },
          "index_candidates": [
            {
              "analysis": {
                "covering": null,
                "ranking": 1,
                "reasons": [
                  {
                    "name": "unfavored_type"
                  }
                ],
                "usable": false
              },
              "index": {
                "ddoc": null,
                "def": {
                  "fields": [
                    {
                      "_id": "asc"
                    }
                  ]
                },
                "name": "_all_docs",
                "type": "special"
              }
            },
            {
              "analysis": {
                "covering": false,
                "ranking": 2,
                "reasons": [
                  {
                    "name": "field_mismatch"
                  }
                ],
                "usable": false
              },
              "index": {
                "ddoc": "_design/json-index",
                "def": {
                  "fields": [
                    {
                      "name": "asc"
                    }
                  ]
                },
                "name": "getUserByName",
                "partitioned": false,
                "type": "json"
              }
            }
          ],
          "limit": 10,
          "mrargs": {
            "conflicts": "undefined",
            "direction": "fwd",
            "end_key": [
              "<MAX>"
            ],
            "include_docs": true,
            "partition": null,
            "reduce": false,
            "stable": false,
            "start_key": [],
            "update": true,
            "view_type": "map"
          },
          "opts": {
            "bookmark": "nil",
            "conflicts": false,
            "execution_stats": true,
            "fields": [],
            "limit": 10,
            "partition": "",
            "r": 1,
            "skip": 0,
            "sort": {},
            "stable": false,
            "stale": false,
            "update": false,
            "use_index": []
          },
          "partitioned": true,
          "selector": {
            "type": {
              "$eq": "user"
            }
          },
          "selector_hints": [
            {
              "indexable_fields": [
                "email"
              ],
              "type": "json",
              "unindexable_fields": [
                "surname"
              ]
            }
          ],
          "skip": 0
        }
      },
      "FindQuery": {
        "description": "Example FindQuery request.",
        "value": {
          "fields": [
            "_id",
            "type",
            "name",
            "email"
          ],
          "limit": 3,
          "selector": {
            "email_verified": {
              "$eq": true
            }
          }
        }
      },
      "FindResult": {
        "description": "Example FindResult response.",
        "value": {
          "bookmark": "g1AAAABCeJzLYWBgYMpgSmHgKy5JLCrJTq2MT8lPzkzJBYqzJSYlGxoZg2Q5YLI5QHFGJMmsLABByhEQ",
          "docs": [
            {
              "_id": "exampleid",
              "description": "A professional, high powered innovative kitchen tool",
              "email": "amelie.smith@aol.com",
              "name": "Amelie Smith",
              "productId": "1000043",
              "productName": "1100",
              "type": "user"
            },
            {
              "_id": "exampleid2",
              "description": "New and improved kitchen blender",
              "email": "bob.smith@aol.com",
              "name": "Bob Smith",
              "productId": "1000044",
              "productName": "Pro System 3000",
              "type": "user"
            }
          ],
          "execution_stats": {
            "execution_time_ms": 4.37,
            "results_returned": 2,
            "total_docs_examined": 4,
            "total_keys_examined": 0,
            "total_quorum_docs_examined": 0
          }
        }
      },
      "FindResultPartition": {
        "description": "Example FindResult response for a database partition.",
        "value": {
          "bookmark": "g1AAAABgeJzLYWBgYMpgSmHgKy5JLCrJTq2MT8lPzkzJBYpLFOcm5uToJhYU5GQm5iWnFlsZGgCBiQlIPQdMPV6VWQBXehzX",
          "docs": [
            {
              "description": "Slim Colourful Design Electronic Cooking...",
              "name": "Digital Kitchen Scales",
              "productId": "1000042"
            },
            {
              "description": "Easily make delicious and fluffy omelets...",
              "name": "Housewares Omelet Maker",
              "productId": "1000044"
            }
          ],
          "warning": "No matching index found, create an index to optimize query time."
        }
      },
      "IamSessionConfiguration": {
        "description": "Example IamSessionConfiguration request.",
        "value": {
          "access_token": "a2.b3.c4"
        }
      },
      "IamSessionInformation": {
        "description": "Example IamSessionInformation response.",
        "value": {
          "id": "abc-123",
          "ok": true,
          "scope": "ibm openid",
          "type": "user"
        }
      },
      "IndexConfiguration": {
        "description": "Example IndexConfiguration request.",
        "value": {
          "ddoc": "json-index",
          "index": {
            "fields": [
              {
                "name": "asc"
              }
            ]
          },
          "name": "getUserByName",
          "type": "json"
        }
      },
      "IndexResult": {
        "description": "Example IndexResult response.",
        "value": {
          "id": "_design/json-index",
          "name": "getUserByName",
          "result": "created"
        }
      },
      "IndexesInformation": {
        "description": "Example IndexInformation response.",
        "value": {
          "indexes": [
            {
              "ddoc": null,
              "def": {
                "fields": [
                  {
                    "_id": "asc"
                  }
                ]
              },
              "name": "_all_docs",
              "type": "special"
            },
            {
              "ddoc": "_design/json-index",
              "def": {
                "fields": [
                  {
                    "name": "asc"
                  }
                ]
              },
              "name": "getUserByName",
              "partitioned": false,
              "type": "json"
            }
          ],
          "total_rows": 2
        }
      },
      "MembershipInformation": {
        "description": "Example MembershipInformation response.",
        "value": {
          "all_nodes": [
            "node1@127.0.0.1",
            "node2@127.0.0.1",
            "node3@127.0.0.1"
          ],
          "cluster_nodes": [
            "node1@127.0.0.1",
            "node2@127.0.0.1",
            "node3@127.0.0.1"
          ]
        }
      },
      "MissingRevsResult": {
        "description": "Example MissingRevsResult response.",
        "value": {
          "missing_revs": {
            "order00077": [
              "2-b06fcd1c1c9e0ec7c480ee8aa467bf3b"
            ]
          }
        }
      },
      "NodeStatsInformation": {
        "description": "Example NodeStatsInformation response.",
        "value": {
          "couch_log": {},
          "couch_replicator": {},
          "couchdb": {},
          "dbcopy": {},
          "ddoc_cache": {},
          "dreyfus": {},
          "fabric": {},
          "global_changes": {
            "db_writes": {
              "desc": "number of db writes performed by global changes",
              "type": "counter",
              "value": 95100
            },
            "event_doc_conflict": {
              "desc": "number of conflicted event docs encountered by global changes",
              "type": "counter",
              "value": 0
            },
            "listener_pending_updates": {
              "desc": "number of global changes updates pending writes in global_changes_listener",
              "type": "gauge",
              "value": 0
            },
            "rpcs": {
              "desc": "number of rpc operations performed by global_changes",
              "type": "counter",
              "value": 340161
            },
            "server_pending_updates": {
              "desc": "number of global changes updates pending writes in global_changes_server",
              "type": "gauge",
              "value": 0
            }
          },
          "mango": {
            "docs_examined": {
              "desc": "number of documents examined by mango queries coordinated by this node",
              "type": "counter",
              "value": 0
            },
            "evaluate_selector": {
              "desc": "number of mango selector evaluations",
              "type": "counter",
              "value": 0
            },
            "query_invalid_index": {
              "desc": "number of mango queries that generated an invalid index warning",
              "type": "counter",
              "value": 0
            },
            "query_time": {
              "desc": "length of time processing a mango query",
              "type": "histogram",
              "value": {}
            },
            "quorum_docs_examined": {
              "desc": "number of documents examined by mango queries, using cluster quorum",
              "type": "counter",
              "value": 0
            },
            "results_returned": {
              "desc": "number of rows returned by mango queries",
              "type": "counter",
              "value": 0
            },
            "too_many_docs_scanned": {
              "desc": "number of mango queries that generated an index scan warning",
              "type": "counter",
              "value": 0
            },
            "unindexed_queries": {
              "desc": "number of mango queries that could not use an index",
              "type": "counter",
              "value": 0
            }
          },
          "mem3": {
            "shard_cache": {
              "eviction": {
                "desc": "number of shard cache evictions",
                "type": "counter",
                "value": 58040
              },
              "hit": {
                "desc": "number of shard cache hits",
                "type": "counter",
                "value": 209241424
              },
              "miss": {
                "desc": "number of shard cache misses",
                "type": "counter",
                "value": 105016
              }
            }
          },
          "pread": {},
          "rexi": {}
        }
      },
      "NodeSystemInformation": {
        "description": "Example NodeSystemInformation response.",
        "value": {
          "context_switches": 62570,
          "distribution": {
            "clouseau@192.0.2.3": {
              "recv_avg": 59,
              "recv_cnt": 201145,
              "recv_dvi": 3,
              "recv_max": 1092,
              "recv_oct": 11915505,
              "send_avg": 150,
              "send_cnt": 517599,
              "send_max": 645,
              "send_oct": 78061898,
              "send_pend": 0
            },
            "node1@192.0.2.1": {
              "recv_avg": 2368,
              "recv_cnt": 153463822,
              "recv_dvi": 47,
              "recv_max": 3829916,
              "recv_oct": 363548809101,
              "send_avg": 2538,
              "send_cnt": 141966830,
              "send_max": 3829916,
              "send_oct": 360332607798,
              "send_pend": 0
            },
            "node2@192.0.2.2": {
              "recv_avg": 2368,
              "recv_cnt": 153463822,
              "recv_dvi": 47,
              "recv_max": 3829916,
              "recv_oct": 363548809101,
              "send_avg": 2538,
              "send_cnt": 141966830,
              "send_max": 3829916,
              "send_oct": 360332607798,
              "send_pend": 0
            }
          },
          "ets_table_count": 177,
          "garbage_collection_count": 5897,
          "internal_replication_jobs": 0,
          "io_input": 244,
          "io_output": 6582,
          "memory": {
            "atom": 590033,
            "atom_used": 579683,
            "binary": 132304,
            "code": 12953030,
            "ets": 1893128,
            "other": 14750185,
            "processes": 9127336,
            "processes_used": 9125960
          },
          "message_queues": {
            "alarm_handler": 0,
            "application_controller": 0,
            "chttpd": 0,
            "chttpd_auth_cache": 0,
            "chttpd_auth_cache_lru": 0,
            "chttpd_sup": 0,
            "code_server": 0,
            "config": 0,
            "config_event": 0,
            "config_sup": 0,
            "couch_db_updater": {
              "50": 0,
              "90": 0,
              "99": 0,
              "count": 40,
              "max": 0,
              "min": 0
            },
            "couch_epi_data_gen_dreyfus_black_list": 0,
            "couch_epi_data_gen_flags_config": 0,
            "couch_epi_functions_gen_chttpd": 0,
            "couch_epi_functions_gen_chttpd_auth": 0,
            "couch_epi_functions_gen_chttpd_handlers": 0,
            "couch_epi_functions_gen_couch_db": 0,
            "couch_epi_functions_gen_couch_index": 0,
            "couch_epi_functions_gen_feature_flags": 0,
            "couch_epi_functions_gen_global_changes": 0,
            "couch_epi_sup": 0,
            "couch_event_server": 0,
            "couch_event_sup2": 0,
            "couch_file": {
              "50": 0,
              "90": 0,
              "99": 0,
              "count": 43,
              "max": 0,
              "min": 0
            },
            "couch_httpd_vhost": 0,
            "couch_index_sup": 0,
            "couch_log_server": 0,
            "couch_log_sup": 0,
            "couch_password_hasher": 0,
            "couch_peruser": 0,
            "couch_peruser_sup": 0,
            "couch_plugin": 0,
            "couch_primary_services": 0,
            "couch_proc_manager": 0,
            "couch_prometheus_server": 0,
            "couch_prometheus_sup": 0,
            "couch_replication": 0,
            "couch_replicator_clustering": 0,
            "couch_replicator_connection": 0,
            "couch_replicator_doc_processor": 0,
            "couch_replicator_pg": 0,
            "couch_replicator_rate_limiter": 0,
            "couch_replicator_scheduler": 0,
            "couch_replicator_scheduler_sup": 0,
            "couch_replicator_sup": 0,
            "couch_secondary_services": 0,
            "couch_server": 0,
            "couch_server_1": 0,
            "couch_server_2": 0,
            "couch_server_3": 0,
            "couch_server_4": 0,
            "couch_server_5": 0,
            "couch_server_6": 0,
            "couch_server_7": 0,
            "couch_server_8": 0,
            "couch_stats_aggregator": 0,
            "couch_stats_process_tracker": 0,
            "couch_stats_sup": 0,
            "couch_sup": 0,
            "couch_task_status": 0,
            "couch_uuids": 0,
            "custodian_db_checker": 0,
            "custodian_server": 0,
            "custodian_sup": 0,
            "ddoc_cache_lru": 0,
            "ddoc_cache_sup": 0,
            "dreyfus_index_manager": 0,
            "dreyfus_sup": 0,
            "dtls_connection_sup": 0,
            "dtls_listener_sup": 0,
            "dtls_server_session_cache_sup": 0,
            "dtls_server_sup": 0,
            "dtls_sup": 0,
            "erl_prim_loader": 0,
            "erl_signal_server": 0,
            "error_logger": 0,
            "erts_code_purger": 0,
            "file_server_2": 0,
            "folsom_meter_timer_server": 0,
            "folsom_metrics_histogram_ets": 0,
            "folsom_sample_slide_sup": 0,
            "folsom_sup": 0,
            "global_changes_server": 0,
            "global_changes_sup": 0,
            "global_group": 0,
            "global_name_server": 0,
            "httpc_handler_sup": 0,
            "httpc_manager": 0,
            "httpc_profile_sup": 0,
            "httpc_sup": 0,
            "httpd_sup": 0,
            "ibrowse": 0,
            "ibrowse_sup": 0,
            "index_server": 0,
            "index_server_1": 0,
            "index_server_2": 0,
            "index_server_3": 0,
            "index_server_4": 0,
            "index_server_5": 0,
            "index_server_6": 0,
            "index_server_7": 0,
            "index_server_8": 0,
            "inet_db": 0,
            "inets_sup": 0,
            "init": 0,
            "ioq": 0,
            "ioq_sup": 0,
            "jwtf_keystore": 0,
            "jwtf_sup": 0,
            "ken_server": 0,
            "ken_sup": 0,
            "kernel_refc": 0,
            "kernel_safe_sup": 0,
            "kernel_sup": 0,
            "logger": 0,
            "logger_handler_watcher": 0,
            "logger_proxy": 0,
            "logger_std_h_ssl_handler": 0,
            "logger_sup": 0,
            "mango_sup": 0,
            "mem3_distribution": 0,
            "mem3_events": 0,
            "mem3_nodes": 0,
            "mem3_reshard": 0,
            "mem3_reshard_dbdoc": 0,
            "mem3_reshard_job_sup": 0,
            "mem3_reshard_sup": 0,
            "mem3_seeds": 0,
            "mem3_shards": 0,
            "mem3_sup": 0,
            "mem3_sync": 0,
            "mem3_sync_nodes": 0,
            "mochiweb_clock": 0,
            "release_handler": 0,
            "rex": 0,
            "rexi_buffer_mon": 0,
            "rexi_buffer_nonode@nohost": 0,
            "rexi_buffer_sup": 0,
            "rexi_server": 0,
            "rexi_server_mon": 0,
            "rexi_server_nonode@nohost": 0,
            "rexi_server_sup": 0,
            "rexi_sup": 0,
            "runtime_tools_sup": 0,
            "sasl_safe_sup": 0,
            "sasl_sup": 0,
            "setup_sup": 0,
            "smoosh_server": 0,
            "smoosh_sup": 0,
            "socket_registry": 0,
            "ssl_admin_sup": 0,
            "ssl_connection_sup": 0,
            "ssl_listen_tracker_sup": 0,
            "ssl_manager": 0,
            "ssl_pem_cache": 0,
            "ssl_server_session_cache_sup": 0,
            "ssl_sup": 0,
            "ssl_upgrade_server_session_cache_sup": 0,
            "standard_error": 0,
            "standard_error_sup": 0,
            "timer_server": 0,
            "tls_client_ticket_store": 0,
            "tls_connection_sup": 0,
            "tls_server_session_ticket_sup": 0,
            "tls_server_sup": 0,
            "tls_sup": 0,
            "user": 0
          },
          "os_proc_count": 0,
          "process_count": 374,
          "process_limit": 262144,
          "reductions": 23271197,
          "run_queue": 0,
          "run_queue_dirty_cpu": 0,
          "stale_proc_count": 0,
          "uptime": 42,
          "words_reclaimed": 20305358
        }
      },
      "Ok": {
        "description": "Example Ok response.",
        "value": {
          "ok": true
        }
      },
      "PartitionFindQuery": {
        "description": "Example PartitionFindQuery request.",
        "value": {
          "fields": [
            "productId",
            "name",
            "description"
          ],
          "selector": {
            "type": {
              "$eq": "product"
            }
          }
        }
      },
      "PartitionInformation": {
        "description": "Example PartitionInformation response.",
        "value": {
          "db_name": "products",
          "doc_count": 3,
          "doc_del_count": 1,
          "partition": "small-appliances",
          "partitioned_indexes": {
            "count": 1,
            "indexes": {
              "search": 0,
              "view": 1
            },
            "limit": 10
          },
          "sizes": {
            "active": 1539,
            "external": 1286
          }
        }
      },
      "ReplicationDocument": {
        "description": "Example ReplicationDocument request.",
        "value": {
          "cancel": false,
          "checkpoint_interval": 4500,
          "connection_timeout": 15000,
          "continuous": true,
          "create_target": true,
          "create_target_params": {
            "q": 1
          },
          "doc_ids": [
            "badger",
            "lemur",
            "llama"
          ],
          "filter": "ddoc/my_filter",
          "http_connections": 10,
          "retries_per_request": 3,
          "selector": {
            "_id": {
              "$regex": "docid"
            }
          },
          "since_seq": "34-g1AAAAGjeJzLYWBgYMlgTmGQT0lKzi9KdU",
          "socket_options": "[{keepalive, true}, {nodelay, false}]",
          "source": {
            "url": "https://my-source-instance.cloudantnosqldb.appdomain.cloud.example/animaldb"
          },
          "target": {
            "auth": {
              "iam": {
                "api_key": "iam_api_key"
              }
            },
            "url": "https://my-target-instance.cloudantnosqldb.appdomain.cloud.example/animaldb-target"
          },
          "use_checkpoints": false,
          "user_ctx": {
            "name": "john",
            "roles": [
              "_replicator"
            ]
          },
          "worker_batch_size": 400,
          "worker_processes": 3
        }
      },
      "ReplicationInformation": {
        "description": "Example ReplicationInformation response.",
        "value": {
          "_local_id": "460b3a44135318afce548ec26b604e6f+continuous",
          "ok": true
        }
      },
      "ReplicationResult": {
        "description": "Example ReplicationResult response.",
        "value": {
          "history": [
            {
              "doc_write_failures": 0,
              "docs_read": 10,
              "docs_written": 10,
              "end_last_seq": "28-abcdefghijklmnopqrstuvwxyz",
              "end_time": "Sun, 11 Aug 2019 20:38:50 GMT",
              "missing_checked": 10,
              "missing_found": 10,
              "recorded_seq": "28-abcdefghijklmnopqrstuvwxyz",
              "session_id": "142a35854a08e205c47174d91b1f9628",
              "start_last_seq": "1-abcdefghijklmnopqrstuvwxyz",
              "start_time": "Sun, 11 Aug 2019 20:38:50 GMT"
            }
          ],
          "ok": true,
          "replication_id_version": 3,
          "session_id": "142a35854a08e205c47174d91b1f9628",
          "source_last_seq": "28-abcdefghijklmnopqrstuvwxyz"
        }
      },
      "ReshardInformation": {
        "description": "Example ReshardInformation response.",
        "value": {
          "completed": 3,
          "failed": 4,
          "running": 0,
          "state": "stopped",
          "state_reason": "Manual rebalancing.",
          "stopped": 0,
          "total": 7
        }
      },
      "ReshardJobInformation": {
        "description": "Example ReshardJobInformation response.",
        "value": {
          "history": [
            {
              "detail": null,
              "timestamp": "2019-02-06T22:28:06Z",
              "type": "new"
            },
            {
              "detail": null,
              "timestamp": "2019-02-06T22:28:10Z",
              "type": "completed"
            }
          ],
          "id": "001-0a308ef9f7bd24bd4887d6e619682a6d3bb3d0fd94625866c5216ec1167b4e23",
          "job_state": "completed",
          "node": "node1@127.0.0.1",
          "source": "shards/00000000-ffffffff/db1.1549492084",
          "split_state": "completed",
          "start_time": "2019-02-06T22:28:06Z",
          "state_info": {},
          "target": [
            "shards/00000000-7fffffff/db1.1549492084",
            "shards/80000000-ffffffff/db1.1549492084"
          ],
          "type": "split",
          "update_time": "2019-02-06T22:28:10Z"
        }
      },
      "ReshardJobsConfiguration": {
        "description": "Example ReshardJobs request.",
        "value": {
          "db": "db1",
          "node": "node1@127.0.0.1",
          "range": "80000000-bfffffff",
          "type": "split"
        }
      },
      "ReshardJobsInformation": {
        "description": "Example ReshardJobsInformation response.",
        "value": {
          "jobs": [
            {
              "history": [
                {
                  "detail": null,
                  "timestamp": "2019-02-06T22:28:06Z",
                  "type": "new"
                },
                {
                  "detail": null,
                  "timestamp": "2019-02-06T22:28:10Z",
                  "type": "completed"
                }
              ],
              "id": "001-0a308ef9f7bd24bd4887d6e619682a6d3bb3d0fd94625866c5216ec1167b4e23",
              "job_state": "completed",
              "node": "node1@127.0.0.1",
              "source": "shards/00000000-ffffffff/db1.1549492084",
              "split_state": "completed",
              "start_time": "2019-02-06T22:28:06Z",
              "state_info": {},
              "target": [
                "shards/00000000-7fffffff/db1.1549492084",
                "shards/80000000-ffffffff/db1.1549492084"
              ],
              "type": "split",
              "update_time": "2019-02-06T22:28:10Z"
            }
          ],
          "offset": 0,
          "total_rows": 1
        }
      },
      "ReshardJobsResult": {
        "description": "Example postReshardJobsConfiguration response.",
        "value": [
          {
            "id": "001-30d7848a6feeb826d5e3ea5bb7773d672af226fd34fd84a8fb1ca736285df557",
            "node": "node1@127.0.0.1",
            "ok": true,
            "shard": "shards/80000000-ffffffff/db3.1554148353"
          },
          {
            "id": "001-40d7848a6feeb826d5e3ea5bb7773d672af226fd34fd84a8fb1ca736285df600",
            "node": "node2@127.0.0.1",
            "ok": true,
            "shard": "shards/80000000-ffffffff/db3.1554148353"
          }
        ]
      },
      "ReshardStateCluster": {
        "description": "Example request or response body for the state of cluster resharding.",
        "value": {
          "reason": "Pause resharding across the cluster.",
          "state": "stopped"
        }
      },
      "ReshardStateJob": {
        "description": "Example request or response body for the state of a reshard job.",
        "value": {
          "reason": "Pause this job for now.",
          "state": "stopped"
        }
      },
      "RevsDiffResult": {
        "description": "Example RevsDiffResult response.",
        "value": {
          "order00077": {
            "missing": [
              "3-bb72a7682290f94a985f7afac8b27137",
              "5-067a00dff5e02add41819138abb3284d"
            ],
            "possible_ancestors": [
              "4-10265e5a26d807a3cfa459cf1a82ef2e"
            ]
          }
        }
      },
      "RevsLimit": {
        "description": "Example RevsLimit response.",
        "value": 1000
      },
      "SchedulerDocsResult": {
        "description": "Example SchedulerDocsResult response.",
        "value": {
          "docs": [
            {
              "database": "_replicator",
              "doc_id": "repldoc-example",
              "error_count": 0,
              "id": null,
              "info": {
                "changes_pending": null,
                "checkpointed_source_seq": "14-g1AAAAGjeJzLYWBgYMlgTmGQT0lKzi9KdUhJMtFLykxPyilN1UvOyS9NScwr0ctLLckBKmRKZEiy____f1YGcyJrLlCAPS3RKM0wOZWwdlQrDHFbkeQAJJPqobYwgm2xMDIzTUuxJGwCqi2muG3JYwGSDA1ACmjRfoR_Uo2NUxOTzQmbQrR_IDYdgNgE9hMz2CZLc9MkC4tkwqZkAQCT-Yfn",
                "doc_write_failures": 0,
                "docs_read": 15,
                "docs_written": 15,
                "missing_revisions_found": 15,
                "revisions_checked": 15
              },
              "last_updated": "2020-06-04T20:05:30Z",
              "source": "https://my-source-instance.cloudantnosqldb.appdomain.cloud.example/animaldb/",
              "start_time": "2020-06-04T20:05:24Z",
              "state": "completed",
              "target": "https://my-target-instance.cloudantnosqldb.appdomain.cloud.example/animaldb-target/"
            }
          ],
          "offset": 0,
          "total_rows": 1
        }
      },
      "SchedulerDocument": {
        "description": "Example SchedulerDocResult response.",
        "value": {
          "database": "_replicator",
          "doc_id": "repldoc-example",
          "error_count": 0,
          "id": null,
          "info": {
            "changes_pending": null,
            "checkpointed_source_seq": "14-g1AAAAGjeJzLYWBgYMlgTmGQT0lKzi9KdUhJMtFLykxPyilN1UvOyS9NScwr0ctLLckBKmRKZEiy____f1YGcyJrLlCAPS3RKM0wOZWwdlQrDHFbkeQAJJPqobYwgm2xMDIzTUuxJGwCqi2muG3JYwGSDA1ACmjRfoR_Uo2NUxOTzQmbQrR_IDYdgNgE9hMz2CZLc9MkC4tkwqZkAQCT-Yfn",
            "doc_write_failures": 0,
            "docs_read": 15,
            "docs_written": 15,
            "missing_revisions_found": 15,
            "revisions_checked": 15
          },
          "last_updated": "2017-04-29T05:01:37.000Z",
          "source": "https://my-source-instance.cloudantnosqldb.appdomain.cloud.example/animaldb/",
          "start_time": "2020-06-04T20:05:24Z",
          "state": "completed",
          "target": "https://my-target-instance.cloudantnosqldb.appdomain.cloud.example/animaldb-target/"
        }
      },
      "SchedulerJob": {
        "description": "Example SchedulerJob response.",
        "value": {
          "database": "_replicator",
          "doc_id": "15972f3ef583b3cd6b6620ae4a91b6c5",
          "history": [
            {
              "timestamp": "2022-04-29T05:01:37Z",
              "type": "started"
            },
            {
              "timestamp": "2022-04-29T05:01:37Z",
              "type": "added"
            }
          ],
          "id": "935c58f9ff98aabe5340d8cb8946f5ca+create_target",
          "info": {
            "changes_pending": null,
            "checkpointed_source_seq": "1-g1AAAARheJzLYWBgEMhgTmHQTElKzi9KdUhJMtJLyt__VNTtYtLdYtzi8tydA1stBLzskvTUnMK9HLSy3JAWphSmRI4v",
            "doc_write_failures": 0,
            "docs_read": 2710,
            "docs_written": 2710,
            "missing_revisions_found": 12,
            "revisions_checked": 12,
            "source_seq": "1037-g1AAAACTeJzLYWBgYMpgTmHgz8tPSTV0MDQy1zMAQsMckEQiQ1L9___szKYE1lzgQLsBsZm5pZJJpjKcRqRxwIkGRqA1H-oSexgk4yMkhITjS0wdWUBADfEJBg",
            "through_seq": "667-g1AAAACTeJzLYWBgYMpgTmHgz8tPSTV0MDQy1zMAQsMckEQiQ1L9____szKYE1lzgQLsBsZm5pZJJpjKcRqRxwIkGRqA1H-oSexgk4yMkhITjS0wdWUBADfEJB"
          },
          "node": "node1@127.0.0.1",
          "pid": "<0.1850.0>",
          "source": "https://mysourceserver.example/db/",
          "start_time": "2017-04-29T05:01:37Z",
          "target": "https://mytargetserver.example/mydb/",
          "user": null
        }
      },
      "SchedulerJobsResult": {
        "description": "Example SchedulerJobsResult response.",
        "value": {
          "jobs": [
            {
              "database": "_replicator",
              "doc_id": "cdyno-0000001-0000003",
              "history": [
                {
                  "timestamp": "2017-04-29T05:01:37Z",
                  "type": "started"
                },
                {
                  "timestamp": "2017-04-29T05:01:37Z",
                  "type": "added"
                }
              ],
              "id": "8f5b1bd0be6f9166ccfd36fc8be8fc22+continuous",
              "info": {
                "changes_pending": null,
                "checkpointed_source_seq": "1-g1AAAARheJzLYWBgEMhgTmHQTElKzi9KdUhJMtJLytVNTtYtLdYtzi8tydA1stBLzskvTUnMK9HLSy3JAWphSmRI4v",
                "doc_write_failures": 0,
                "docs_read": 12,
                "docs_written": 12,
                "missing_revisions_found": 12,
                "revisions_checked": 12,
                "source_seq": "12-g1AAAACTeJzLYWBgYMpgTmHgz8tPSTV0MDQy1zMAQsMckEQiQ1L9____szKYE1lzgQLsBsZm5pZJJpjKcRqRxwIkGRqA1H-oSexgk4yMkhITjS0wdWUBADfEJBg",
                "through_seq": "12-g1AAAACTeJzLYWBgYMpgTmHgz8tPSTV0MDQy1zMAQsMckEQiQ1L9____szKYE1lzgQLsBsZm5pZJJpjKcRqRxwIkGRqA1H-oSexgk4yMkhITjS0wdWUBADfEJBg"
              },
              "node": "node1@127.0.0.1",
              "pid": "<0.1850.0>",
              "source": "https://mysourceserver.example/db/",
              "start_time": "2017-04-29T05:01:37Z",
              "target": "https://mytargetserver.example/mydb3/",
              "user": null
            },
            {
              "database": "_replicator",
              "doc_id": "cdyno-0000001-0000002",
              "history": [
                {
                  "timestamp": "2017-04-29T05:01:37Z",
                  "type": "started"
                },
                {
                  "timestamp": "2017-04-29T05:01:37Z",
                  "type": "added"
                }
              ],
              "id": "e327d79214831ca4c11550b4a453c9ba+continuous",
              "info": {
                "changes_pending": null,
                "checkpointed_source_seq": "1-g1AAAASbeJzLYWBgEMhgTmHQTElKzi9KdUhJMtJLytVNTtYtLdYtzi8tydA1stBLzskvTUnMK9HLSy3JAWphSmRI4v",
                "doc_write_failures": 0,
                "docs_read": 12,
                "docs_written": 12,
                "missing_revisions_found": 12,
                "revisions_checked": 12,
                "source_seq": "12-g1AAAACTeJzLYWBgYMpgTmHgz8tPSTV0MDQy1zMAQsMckEQiQ1L9____szKYE1lzgQLsBsZm5pZJJpjKcRqRxwIkGRqA1H-oSexgk4yMkhITjS0wdWUBADfEJBg",
                "through_seq": "12-g1AAAACTeJzLYWBgYMpgTmHgz8tPSTV0MDQy1zMAQsMckEQiQ1L9____szKYE1lzgQLsBsZm5pZJJpjKcRqRxwIkGRqA1H-oSexgk4yMkhITjS0wdWUBADfEJBg"
              },
              "node": "node2@127.0.0.1",
              "pid": "<0.1757.0>",
              "source": "https://mysourceserver.example/db/",
              "start_time": "2017-04-29T05:01:37Z",
              "target": "https://mytargetserver.example/mydb2/",
              "user": null
            }
          ],
          "offset": 0,
          "total_rows": 2
        }
      },
      "SearchAnalyzeQuery": {
        "description": "Example SearchAnalyzeQuery request.",
        "value": {
          "analyzer": "english",
          "text": "running is fun"
        }
      },
      "SearchAnalyzeResult": {
        "description": "Example SearchAnalyzeResult response.",
        "value": {
          "tokens": [
            "run",
            "fun"
          ]
        }
      },
      "SearchDiskSizeInformation": {
        "description": "Example SearchDiskSizeInformation response.",
        "value": {
          "name": "_design/appliances/findByPrice",
          "search_index": {
            "disk_size": 2889
          }
        }
      },
      "SearchInfoResult": {
        "description": "Example SearchInfoResult response.",
        "value": {
          "name": "_design/appliances/findByPrice",
          "search_index": {
            "committed_seq": 47,
            "disk_size": 2889,
            "doc_count": 3,
            "doc_del_count": 0,
            "pending_seq": 47,
            "signature": "bedc44e56c2ba97902aeaac2b51ad77c"
          }
        }
      },
      "SearchQuery": {
        "description": "Example SearchQuery request.",
        "value": {
          "limit": 3,
          "query": "name:Jane* AND active:True"
        }
      },
      "SearchResult": {
        "description": "Example SearchResult response.",
        "value": {
          "bookmark": "g2wAAAEPeJzLYWBgYMlgTmGQT0lKzi9KdUhJMtFLykxPyilN1UvOyS9NScwr0ctLLckBKmRKZEiy____f1YGk5v9iztMQCGGRGZU3Wa4dSc5AMmkepgBlxdXgQ1gINr6PBaQhgYgBTRjP9iQDwxgkMhEtCsghhyAGAJxybeak2BDGLMAi8FWFQ",
          "rows": [
            {
              "fields": {},
              "id": "exampleid",
              "order": [
                "0.8410536050796509",
                "1"
              ]
            }
          ],
          "total_rows": 1
        }
      },
      "SearchResultPartition": {
        "description": "Example SearchResult response for a database partition.",
        "value": {
          "bookmark": "g1AAAAEPeJzLYWBgYMlgTmGQT0lKzi9KdUhJMtFLykxPyilN1UvOyS9NScwr0ctLLckBKmRKZEiy____f1YGk5v9iztMQCGGRGZU3Wa4dSc5AMmkepgBlxdXgQ1gINr6PBaQhgYgBTRjP9iQDwxgkMhEtCsghhyAGAJxybeak2BDGLMAi8FWFQ",
          "rows": [
            {
              "fields": {},
              "id": "small-appliances:1000042",
              "order": [
                "1.2277607917785645",
                "0"
              ]
            }
          ],
          "total_rows": 1
        }
      },
      "Security": {
        "description": "Example Security document.",
        "value": {
          "admins": {
            "names": [
              "superuser"
            ],
            "roles": [
              "admins"
            ]
          },
          "cloudant": {
            "antsellseadespecteposene": [
              "_reader",
              "_writer",
              "_admin"
            ]
          },
          "members": {
            "names": [
              "user1",
              "user2"
            ],
            "roles": [
              "developers"
            ]
          }
        }
      },
      "SecurityResult": {
        "description": "Example Cloudant Security response.",
        "value": {
          "cloudant": {
            "nobody": [
              "_replicator",
              "_reader"
            ]
          }
        }
      },
      "ServerInformation": {
        "description": "Example ServerInformation response.",
        "value": {
          "couchdb": "Welcome",
          "features": [
            "access-ready",
            "iam",
            "partitioned",
            "pluggable-storage-engines",
            "scheduler"
          ],
          "features_flags": [
            "partitioned"
          ],
          "vendor": {
            "name": "IBM Cloudant",
            "variant": "paas",
            "version": "8162"
          },
          "version": "2.1.1"
        }
      },
      "SessionInformation": {
        "description": "Example SessionInformation response.",
        "value": {
          "info": {
            "authenticated": "default",
            "authentication_db": "_users",
            "authentication_handlers": [
              "iam",
              "cookie",
              "default",
              "local"
            ]
          },
          "ok": true,
          "userCtx": {
            "name": "user",
            "roles": [
              "_admin",
              "_reader",
              "_writer"
            ]
          }
        }
      },
      "SessionResult": {
        "description": "Example SessionResult response.",
        "value": {
          "name": "user",
          "ok": true,
          "roles": [
            "_reader",
            "_writer"
          ]
        }
      },
      "SetCookieIamSession": {
        "description": "Example SetCookie response header for IAM.",
        "value": "IAMSession=aWJtIG9wZW5pZDp1c2VyOklCTWlkLTMxMDAwMERVNlI6UE1SRlEwOtsBU7LGVZo50V4uRRWiEzUHyhoTYj8QAYoNvXiVpCZE; Version=1; Expires=Mon, 11-Feb-2019 11:54:00 GMT; Max-Age=3380; Secure; Path=/; HttpOnly; Secure"
      },
      "SetCookieSession": {
        "description": "Example SetCookie response header.",
        "value": "AuthSession=abcdABCD12344321DCBAdcba; Path=/; HttpOnly; Secure"
      },
      "ShardsInformation": {
        "description": "Example ShardsInformation response.",
        "value": {
          "shards": {
            "00000000-3fffffff": [
              "node1@xxx.xxx.xxx.xxx",
              "node2@xxx.xxx.xxx.xxx",
              "node3@xxx.xxx.xxx.xxx"
            ],
            "40000000-7fffffff": [
              "node1@xxx.xxx.xxx.xxx",
              "node2@xxx.xxx.xxx.xxx",
              "node3@xxx.xxx.xxx.xxx"
            ],
            "80000000-bfffffff": [
              "node1@xxx.xxx.xxx.xxx",
              "node2@xxx.xxx.xxx.xxx",
              "node3@xxx.xxx.xxx.xxx"
            ],
            "c0000000-ffffffff": [
              "node1@xxx.xxx.xxx.xxx",
              "node2@xxx.xxx.xxx.xxx",
              "node3@xxx.xxx.xxx.xxx"
            ]
          }
        }
      },
      "UpInformationOk": {
        "description": "Example UpInformation response.",
        "value": {
          "cluster": "bm-cc-us-east-01",
          "status": "ok"
        }
      },
      "UsageDataVolume": {
        "description": "Example getUsageDataVolume response.",
        "value": {
          "data_vol": {
            "2023-07-01T00:00:00+00:00": {
              "dbs": 1303887,
              "search": 2040705,
              "views": 259119
            },
            "2023-07-01T12:00:00+00:00": {
              "dbs": 1303887,
              "search": 2058488,
              "views": 259119
            },
            "2023-07-02T00:00:00+00:00": {
              "dbs": 1303887,
              "search": 2054713,
              "views": 259119
            },
            "2023-07-02T12:00:00+00:00": {
              "dbs": 1303887,
              "search": 2042348,
              "views": 259119
            }
          },
          "end": "2023-07-02T00:00:00+00:00",
          "granularity": "12h",
          "start": "2023-07-01T00:00:00+00:00"
        }
      },
      "UserInformation": {
        "description": "Example getUserInformation response.",
        "value": {
          "activity_tracker_event_types": [
            "management"
          ],
          "admin": false,
          "admin_clusters": [],
          "cluster": "bm-cc-us-east-01",
          "cluster_type": "multitenant",
          "company": null,
          "cross_cloud_connector": false,
          "date": "2023-02-24 19:15:37",
          "disabled": {},
          "domains": [
            {
              "domain": "5lll032-dd12-536e-09b3-432fg9f07e78-bluemix.cloudant.com",
              "preferred": false,
              "type": "external"
            },
            {
              "domain": "5lll032-dd12-536e-09b3-432fg9f07e78-bluemix.cloudantnosqldb.appdomain.cloud",
              "preferred": true,
              "type": "external"
            }
          ],
          "email": "dev@us.ibm.com",
          "features": {},
          "first_name": "Bluemix",
          "last_name": "User",
          "last_pw_change": "2023-02-24 19:15:37",
          "over_quota": false,
          "partners": {
            "bluemix": {
              "bss_account_id": "167e0247e28648128b4a30db9238c2d1 crn: 'crn:v1:bluemix:public:cloudantnosqldb:us-south:a/167e0247e28648128b4a30db9238c2d1:4cdba765-34ee-4517-9c6a-11d342f13dbf::'",
              "iam_enabled": true,
              "legacy_credentials": true,
              "name": "example-cloudant",
              "resource_group_crn": "crn:v1:bluemix:public:resource-controller::a/167e0247e28648128b4a30db9238c2d1::resource-group:856cfc09382f45e9a86604fa8908b9e9",
              "root_credential_status": "active"
            }
          },
          "plan": "billing.tiered.bluemix.lite",
          "plan_multiple": null,
          "shared_databases": [],
          "stripe_enabled": false,
          "support_level": "basic",
          "target_plan_multiple": null,
          "target_throughput": null,
          "throughput": null,
          "username": "5lll032-dd12-536e-09b3-432fg9f07e78-bluemix"
        }
      },
      "UserPlan": {
        "description": "Example getUserPlan response.",
        "value": {
          "data_charging_model": "capped",
          "data_quota": "1GB",
          "history": [
            [
              "2023-01-16T19:01:03.000Z",
              "metered"
            ],
            [
              "2016-03-14T20:56:00.000Z",
              "billing.tiered.standard.1"
            ]
          ],
          "name": "Bluemix Lite Plan",
          "throughput": {
            "lookup": 20,
            "query": 5,
            "write": 10
          }
        }
      },
      "UserPlanConfiguration": {
        "description": "Example putUserPlan request.",
        "value": {
          "plan": "billing.tiered.bluemix.standard",
          "plan_multiple": 25
        }
      },
      "UuidsResult": {
        "description": "Example UuidsResult response.",
        "value": {
          "uuids": [
            "75480ca477454894678e22eec6002413",
            "75480ca477454894678e22eec600250b",
            "75480ca477454894678e22eec6002c41",
            "75480ca477454894678e22eec6003b90",
            "75480ca477454894678e22eec6003fca",
            "75480ca477454894678e22eec6004bef",
            "75480ca477454894678e22eec600528f",
            "75480ca477454894678e22eec6005e0b",
            "75480ca477454894678e22eec6006158",
            "75480ca477454894678e22eec6006161"
          ]
        }
      },
      "ViewQueriesQuery": {
        "description": "Example ViewQueriesQuery request.",
        "value": {
          "queries": [
            {
              "include_docs": true,
              "limit": 5
            },
            {
              "descending": true,
              "skip": 1
            }
          ]
        }
      },
      "ViewQueriesResult": {
        "description": "Example ViewQueriesResult response.",
        "value": {
          "results": [
            {
              "offset": 0,
              "rows": [
                {
                  "id": "abc125",
                  "key": "amelie.smith@aol.com",
                  "value": [
                    "Amelie Smith",
                    true,
                    "2020-04-24T10:42:59.000Z"
                  ]
                },
                {
                  "id": "abc123",
                  "key": "bob.smith@aol.com",
                  "value": [
                    "Bob Smith",
                    true,
                    "2019-01-24T10:42:59.000Z"
                  ]
                }
              ],
              "total_rows": 2
            },
            {
              "offset": 1,
              "rows": [
                {
                  "id": "abc125",
                  "key": "amelie.smith@aol.com",
                  "value": [
                    "Amelie Smith",
                    true,
                    "2020-04-24T10:42:59.000Z"
                  ]
                }
              ],
              "total_rows": 2
            }
          ]
        }
      },
      "ViewQuery": {
        "description": "Example ViewQuery request.",
        "value": {
          "include_docs": true,
          "keys": [
            "examplekey"
          ],
          "limit": 10
        }
      },
      "ViewResult": {
        "description": "Example ViewResult response.",
        "value": {
          "offset": 0,
          "rows": [
            {
              "id": "abc125",
              "key": "amelie.smith@aol.com",
              "value": [
                "Amelie Smith",
                true,
                "2020-04-24T10:42:59.000Z"
              ]
            },
            {
              "id": "abc123",
              "key": "bob.smith@aol.com",
              "value": [
                "Bob Smith",
                true,
                "2019-01-24T10:42:59.000Z"
              ]
            }
          ],
          "total_rows": 2
        }
      },
      "ViewResultPartition": {
        "description": "Example ViewResult response for a database partition.",
        "value": {
          "offset": 0,
          "rows": [
            {
              "id": "small-appliances:1000042",
              "key": "1000042",
              "value": [
                "Foo",
                "Digital Kitchen Scales",
                "Slim Colourful Design Electronic Cooking Appliance for Home / Kitchen, Weigh up to 5kg + Aquatronic for Liquids ml + fl. oz. 15Yr Guarantee - Green"
              ]
            },
            {
              "id": "small-appliances:1000043",
              "key": "1000043",
              "value": [
                "Bar",
                "1100",
                "A professional, high powered innovative tool with a sleek design and outstanding performance"
              ]
            },
            {
              "id": "small-appliances:1000044",
              "key": "1000044",
              "value": [
                "Holstein",
                "Housewares Omelet Maker",
                "Easily make delicious and fluffy omelets without flipping - Innovative design - Cooking and cleaning is easy"
              ]
            }
          ],
          "total_rows": 3
        }
      }
    },
    "headers": {
      "AcceptRanges": {
        "description": "Header returning the range information for making range requests with application/octet-stream attachments.",
        "schema": {
          "description": "HTTP standard accept-ranges header value.",
          "maxLength": 5,
          "minLength": 4,
          "pattern": "^(bytes|none)$",
          "type": "string"
        }
      },
      "CacheControl": {
        "description": "Header returning the cache-control directive for the response.",
        "schema": {
          "description": "HTTP standard cache-control header value.",
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^.+$",
          "type": "string"
        }
      },
      "ContentEncoding": {
        "description": "Header for returning the compression codec used if an attachment's content_type is in list of compressible types.",
        "schema": {
          "description": "HTTP standard content-encoding header value.",
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^.+$",
          "type": "string"
        }
      },
      "ContentLength": {
        "description": "Header returning the attachment size. If a compression codec is used, this value is the compressed size.",
        "schema": {
          "description": "HTTP standard content-length header value.",
          "format": "int64",
          "maximum": 10485760,
          "minimum": 0,
          "type": "integer"
        }
      },
      "ContentRange": {
        "description": "Response header in the form of `bytes <range>/<total content length>` returning the bytes requested by the `Range` header supplied on the request and the total range.",
        "schema": {
          "description": "HTTP standard content-range header value.",
          "maxLength": 23,
          "minLength": 9,
          "pattern": "^.+$",
          "type": "string"
        }
      },
      "Date": {
        "description": "Header returning the server response date-time.",
        "schema": {
          "allOf": [
            {
              "$ref": "#/components/schemas/DateTimeRFC2822"
            },
            {
              "description": "HTTP standard header date header value."
            }
          ]
        }
      },
      "ETag": {
        "description": "Header returning the ETag for a resource.",
        "examples": {
          "Attachment": {
            "description": "Double quoted base64 encoded attachment digest.",
            "value": "\"MEHlNHhicVt9efOzyvsz0Q==\""
          },
          "DocumentRevision": {
            "description": "Double quoted document revision identifier.",
            "value": "\"2-240fc93fad07083c338c7e0ea55791b3\""
          },
          "LocalDocument": {
            "description": "Double quoted local document tag.",
            "value": "\"6APCCGX4B76OFFD5972MSBFHD\""
          }
        },
        "schema": {
          "$ref": "#/components/schemas/ETag"
        }
      },
      "Location": {
        "description": "Header returning a location URI.",
        "schema": {
          "description": "HTTP standard location header value.",
          "maxLength": 8000,
          "minLength": 1,
          "pattern": "^.+$",
          "type": "string"
        }
      },
      "Server": {
        "description": "Header returning the server information.",
        "schema": {
          "description": "HTTP standard server header value.",
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^.+$",
          "type": "string"
        }
      },
      "SetCookie": {
        "description": "Header returning the session cookie.",
        "examples": {
          "IamSession": {
            "$ref": "#/components/examples/SetCookieIamSession"
          },
          "Session": {
            "$ref": "#/components/examples/SetCookieSession"
          }
        },
        "schema": {
          "description": "HTTP standard set-cookie header value.",
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^.+$",
          "type": "string"
        }
      },
      "TransferEncoding": {
        "description": "Header describing the transfer encoding.",
        "schema": {
          "description": "HTTP standard transfer-encoding header value.",
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^.+$",
          "type": "string"
        }
      },
      "Via": {
        "description": "Header added by proxies through which the response was sent.",
        "schema": {
          "description": "HTTP standard via header value.",
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^.+$",
          "type": "string"
        }
      },
      "XCloudantAction": {
        "description": "Header returning the Cloudant IAM action of the request.",
        "schema": {
          "description": "IAM action name.",
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^cloudantnosqldb\\..+$",
          "type": "string"
        }
      },
      "XCloudantBackend": {
        "description": "Header returning the Cloudant backend that handled the request.",
        "schema": {
          "description": "Cloudant backend name.",
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^.+$",
          "type": "string"
        }
      },
      "XCloudantCostLookup": {
        "description": "Header returning the Cloudant lookup cost of the request.",
        "schema": {
          "description": "Number of lookup units consumed by the request.",
          "format": "int64",
          "maximum": 4337916968,
          "minimum": 0,
          "type": "integer"
        }
      },
      "XCloudantCostWrite": {
        "description": "Header returning the Cloudant write cost of the request.",
        "schema": {
          "description": "Number of write units consumed by the request.",
          "format": "int64",
          "maximum": 4294967295,
          "minimum": 0,
          "type": "integer"
        }
      },
      "XCloudantRequestClass": {
        "description": "Header returning the Cloudant class of the request.",
        "schema": {
          "description": "Name of cost class of the request.",
          "enum": [
            "lookup",
            "query",
            "unlimited",
            "write"
          ],
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^.+$",
          "type": "string"
        }
      },
      "XRequestId": {
        "description": "Unique request trace identifier generated by the server or retains the value supplied in the same header on the request.",
        "schema": {
          "$ref": "#/components/schemas/RequestId"
        }
      }
    },
    "parameters": {
      "Granularity": {
        "description": "Query parameter to specify the granularity of report interval for data usage.",
        "in": "query",
        "name": "granularity",
        "schema": {
          "default": 12,
          "enum": [
            1,
            2,
            3,
            4,
            6,
            8,
            12,
            24
          ],
          "format": "int64",
          "maximum": 24,
          "minimum": 1,
          "type": "integer"
        }
      },
      "HeaderDestination": {
        "description": "Header parameter to specify the destination document URL. May be appended with rev query parameter for a specific revision.",
        "in": "header",
        "name": "Destination",
        "schema": {
          "maxLength": 8000,
          "minLength": 1,
          "pattern": "^([^_]|_(design|local)\\/).+(\\?rev=[1-9]\\d*-[\\da-f]{32})?$",
          "type": "string"
        }
      },
      "HeaderIfMatch": {
        "description": "Header parameter for a conditional HTTP request matching an ETag.",
        "in": "header",
        "name": "If-Match",
        "schema": {
          "$ref": "#/components/schemas/ETag"
        }
      },
      "HeaderIfNoneMatch": {
        "description": "Header parameter for a conditional HTTP request not matching an ETag.",
        "in": "header",
        "name": "If-None-Match",
        "schema": {
          "$ref": "#/components/schemas/ETag"
        }
      },
      "HeaderLastEventId": {
        "description": "Header parameter to specify the ID of the last events received by the server on a previous connection. Overrides `since` query parameter.",
        "in": "header",
        "name": "Last-Event-ID",
        "schema": {
          "$ref": "#/components/schemas/Since"
        },
        "x-alias": "since parameter"
      },
      "HeaderRange": {
        "description": "Header parameter to specify the byte range for a request. This allows the implementation of resumable downloads and skippable streams. This is available for all attachments inside CouchDB.",
        "in": "header",
        "name": "Range",
        "schema": {
          "maxLength": 23,
          "minLength": 7,
          "pattern": "^bytes=(?:-\\d+)|(?:\\d+-)|(?:\\d+-\\d+)(?:,\\d+-\\d+)*$",
          "type": "string"
        }
      },
      "HeaderXRequestId": {
        "description": "Set a unique identifier to trace a request.",
        "in": "header",
        "name": "X-Request-ID",
        "schema": {
          "$ref": "#/components/schemas/RequestId"
        },
        "x-sdk-exclude": true
      },
      "MonitoringCluster": {
        "description": "Name of the cluster for which metrics are to be returned user must be an admin for this cluster.",
        "in": "query",
        "name": "cluster",
        "required": true,
        "schema": {
          "description": "Name of the cluster.",
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^.+$",
          "type": "string"
        }
      },
      "MonitoringDuration": {
        "description": "A string representing the duration of the desired timeseries query, must be paired with either `start` or `end`.",
        "in": "query",
        "name": "duration",
        "schema": {
          "description": "Duration of the desired timeseries query.",
          "enum": [
            "5min",
            "30min",
            "1h",
            "12h",
            "24h",
            "1d",
            "3d",
            "7d",
            "1w",
            "1m",
            "3m",
            "6m",
            "12m",
            "1y"
          ],
          "type": "string"
        }
      },
      "MonitoringEnd": {
        "description": "UTC timestamp in ISO-8601 or integer seconds since epoch format specifies end point of a timeseries query mutually exclusive with `start` param.",
        "in": "query",
        "name": "end",
        "schema": {
          "description": "End of the monitoring interval.",
          "format": "date-time",
          "maxLength": 26,
          "minLength": 1,
          "type": "string"
        }
      },
      "MonitoringFormat": {
        "description": "Response format. Could be `raw` or `json`.",
        "in": "query",
        "name": "format",
        "schema": {
          "default": "json",
          "description": "Response format.",
          "enum": [
            "json",
            "raw"
          ],
          "type": "string"
        }
      },
      "MonitoringStart": {
        "description": "UTC timestamp in ISO-8601 or integer seconds since epoch format specifies starting point of a timeseries query mutually exclusive with `end` param.",
        "in": "query",
        "name": "start",
        "schema": {
          "description": "Start of the monitoring interval.",
          "format": "date-time",
          "maxLength": 26,
          "minLength": 1,
          "type": "string"
        }
      },
      "PathAttachmentName": {
        "description": "Path parameter to specify the attachment name.",
        "in": "path",
        "name": "attachment_name",
        "required": true,
        "schema": {
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^[^_].*$",
          "type": "string"
        }
      },
      "PathConfigKey": {
        "description": "Path parameter to specify the config key.",
        "in": "path",
        "name": "config_key",
        "required": true,
        "schema": {
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^.+$",
          "type": "string"
        }
      },
      "PathConfigSection": {
        "description": "Path parameter to specify the config section.",
        "in": "path",
        "name": "config_section",
        "required": true,
        "schema": {
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^.+$",
          "type": "string"
        }
      },
      "PathDb": {
        "description": "Path parameter to specify the database name.",
        "in": "path",
        "name": "db",
        "required": true,
        "schema": {
          "$ref": "#/components/schemas/DatabaseName"
        }
      },
      "PathDesignDocumentName": {
        "description": "Path parameter to specify the design document name. The design document name is the design document ID excluding the `_design/` prefix.",
        "in": "path",
        "name": "ddoc",
        "required": true,
        "schema": {
          "$ref": "#/components/schemas/PathDocumentId"
        }
      },
      "PathDocId": {
        "description": "Path parameter to specify the document ID.",
        "in": "path",
        "name": "doc_id",
        "required": true,
        "schema": {
          "$ref": "#/components/schemas/PathDocumentId"
        }
      },
      "PathEndpoint": {
        "description": "Path parameter to specify the endpoint for monitoring.",
        "in": "path",
        "name": "endpoint",
        "required": true,
        "schema": {
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^https:\\/\\/.*$",
          "type": "string"
        }
      },
      "PathIndex": {
        "description": "Path parameter to specify the index name.",
        "in": "path",
        "name": "index",
        "required": true,
        "schema": {
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^.+$",
          "type": "string"
        }
      },
      "PathJobId": {
        "description": "Path parameter to specify the replication job id.",
        "in": "path",
        "name": "job_id",
        "required": true,
        "schema": {
          "$ref": "#/components/schemas/JobId"
        }
      },
      "PathMonth": {
        "description": "Path parameter to specify the month.",
        "in": "path",
        "name": "month",
        "required": true,
        "schema": {
          "description": "Schema for a two digits month representation.",
          "maxLength": 2,
          "minLength": 2,
          "pattern": "^0?[1-9]|1[012]$",
          "type": "string"
        }
      },
      "PathNodeName": {
        "description": "Path parameter to specify the node name.",
        "in": "path",
        "name": "node_name",
        "required": true,
        "schema": {
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^\\w+@.+$",
          "type": "string"
        }
      },
      "PathPartitionKey": {
        "description": "Path parameter to specify the database partition key.",
        "in": "path",
        "name": "partition_key",
        "required": true,
        "schema": {
          "$ref": "#/components/schemas/PartitionKey"
        }
      },
      "PathReplicatorDb": {
        "description": "Path parameter to specify the replicator database name.",
        "in": "path",
        "name": "replicator_db",
        "required": true,
        "schema": {
          "$ref": "#/components/schemas/DatabaseName"
        }
      },
      "PathReplicatorDocId": {
        "description": "Path parameter to specify the ID of the stored replication configuration in the `_replicator` database.",
        "in": "path",
        "name": "doc_id",
        "required": true,
        "schema": {
          "$ref": "#/components/schemas/PathDocumentId"
        }
      },
      "PathReshardJobId": {
        "description": "Path parameter to specify the shard splitting job ID.",
        "in": "path",
        "name": "reshard_job_id",
        "required": true,
        "schema": {
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^.+$",
          "type": "string"
        }
      },
      "PathType": {
        "description": "Path parameter to specify the index type.",
        "in": "path",
        "name": "type",
        "required": true,
        "schema": {
          "$ref": "#/components/schemas/IndexType"
        }
      },
      "PathUpdateName": {
        "description": "Path parameter to specify the update function name.",
        "in": "path",
        "name": "update_name",
        "required": true,
        "schema": {
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^.+$",
          "type": "string"
        }
      },
      "PathView": {
        "description": "Path parameter to specify the map reduce view function name.",
        "in": "path",
        "name": "view",
        "required": true,
        "schema": {
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^[a-z][a-z0-9_$()+/-]*$",
          "type": "string"
        }
      },
      "PathYear": {
        "description": "Path parameter to specify the year.",
        "in": "path",
        "name": "year",
        "required": true,
        "schema": {
          "description": "Schema for a four digits year representation.",
          "maxLength": 4,
          "minLength": 4,
          "pattern": "^\\d{3}[1-9]$",
          "type": "string"
        }
      },
      "QueryAttEncodingInfo": {
        "description": "Query parameter to specify whether to include the encoding information for compressed attachments. Note that when used with a view-style query or changes feed this only applies when requesting documents in the response.",
        "in": "query",
        "name": "att_encoding_info",
        "schema": {
          "default": false,
          "type": "boolean"
        }
      },
      "QueryAttachments": {
        "description": "Query parameter to specify whether to include attachment content in the response. Note that when used with a view-style query or changes feed this only applies when requesting documents in the response.",
        "in": "query",
        "name": "attachments",
        "schema": {
          "default": false,
          "type": "boolean"
        }
      },
      "QueryAttsSince": {
        "description": "Query parameter to specify whether to include attachments only since specified revisions. Note this does not include the attachments for the specified revisions.",
        "example": [
          "1-99b02e08da151943c2dcb40090160bb8"
        ],
        "in": "query",
        "name": "atts_since",
        "schema": {
          "items": {
            "$ref": "#/components/schemas/DocumentRevisionIdentifier"
          },
          "maxItems": 162,
          "minItems": 1,
          "type": "array"
        },
        "x-sdk-exclude": true
      },
      "QueryBatch": {
        "description": "Query parameter to specify whether to store in batch mode. The server will respond with a HTTP 202 Accepted response code immediately.",
        "in": "query",
        "name": "batch",
        "schema": {
          "enum": [
            "ok"
          ],
          "type": "string"
        }
      },
      "QueryBookmark": {
        "description": "Query parameter to specify a bookmark that was received from a previous request. This parameter enables paging through the results. If there are no more results after the bookmark, you get a response containing no further results and the same bookmark, confirming the end of the result list.",
        "in": "query",
        "name": "bookmark",
        "schema": {
          "$ref": "#/components/schemas/Bookmark"
        }
      },
      "QueryConflicts": {
        "description": "Query parameter to specify whether to include a list of conflicted revisions in each returned document. Note that when used with a view-style query or changes feed this only applies when requesting documents in the response.",
        "in": "query",
        "name": "conflicts",
        "schema": {
          "default": false,
          "type": "boolean"
        }
      },
      "QueryCount": {
        "description": "Query parameter to specify the number of UUIDs to return.",
        "in": "query",
        "name": "count",
        "schema": {
          "default": 1,
          "format": "int64",
          "maximum": 1000,
          "minimum": 0,
          "type": "integer"
        }
      },
      "QueryCounts": {
        "description": "Query parameter to specify an array of names of string fields, for which counts are requested. The response contains counts for each unique value of the string field name among the documents that match the search query. Faceting must be enabled for this parameter to function.",
        "in": "query",
        "name": "counts",
        "schema": {
          "items": {
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "maxItems": 65535,
          "minItems": 0,
          "type": "array"
        }
      },
      "QueryDeletedConflicts": {
        "description": "Query parameter to specify whether to include a list of deleted conflicted revisions in the `_deleted_conflicts` property of the returned document.",
        "in": "query",
        "name": "deleted_conflicts",
        "schema": {
          "default": false,
          "type": "boolean"
        }
      },
      "QueryDescending": {
        "description": "Query parameter to specify whether to return rows in descending by key order.",
        "in": "query",
        "name": "descending",
        "schema": {
          "default": false,
          "type": "boolean"
        }
      },
      "QueryDescendingChanges": {
        "description": "Query parameter to specify whether to return changes in the descending order with most recent change first. The `since` parameter has no effect when using descending order.",
        "in": "query",
        "name": "descending",
        "schema": {
          "default": false,
          "type": "boolean"
        }
      },
      "QueryDocIds": {
        "description": "Query parameter to specify a JSON array list of document IDs to restrict the changes feed to. Used with the `_doc_ids` filter. Since length of URL is limited, it is better to use POST `/{db}/_changes` instead.",
        "in": "query",
        "name": "doc_ids",
        "schema": {
          "items": {
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^[^_].*$",
            "type": "string"
          },
          "maxItems": 65535,
          "minItems": 0,
          "type": "array"
        }
      },
      "QueryDrilldown": {
        "description": "Restrict results to documents with a dimension equal to the specified label(s). The search matches only documents containing the value that was provided in the named field. It differs from using \"fieldname:value\" in the q parameter only in that the values are not analyzed. Faceting must be enabled for this parameter to function.",
        "in": "query",
        "name": "drilldown",
        "schema": {
          "items": {
            "$ref": "#/components/schemas/DrilldownQuery"
          },
          "maxItems": 65535,
          "minItems": 1,
          "type": "array"
        }
      },
      "QueryEndKey": {
        "description": "Query parameter to specify to stop returning records when the specified key is reached. String representation of any JSON type that matches the key type emitted by the view function.",
        "in": "query",
        "name": "end_key",
        "schema": {
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^.+$",
          "type": "string"
        },
        "x-alias": "endkey"
      },
      "QueryEndKeyDocId": {
        "description": "Query parameter to stop returning rows at the specified document ID. No effect if using `group` or not providing end key.",
        "in": "query",
        "name": "end_key_doc_id",
        "schema": {
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^[^_].*$",
          "type": "string"
        },
        "x-alias": "endkey_docid"
      },
      "QueryFeed": {
        "description": "Query parameter to specify the changes feed type.",
        "in": "query",
        "name": "feed",
        "schema": {
          "default": "normal",
          "enum": [
            "continuous",
            "eventsource",
            "longpoll",
            "normal"
          ],
          "type": "string"
        }
      },
      "QueryFilter": {
        "description": "Query parameter to specify a filter to emit only specific events\nfrom the changes stream.\n\nThe built-in filter types are:\n  * `_design` - Returns only changes to design documents.\n  * `_doc_ids` - Returns changes for documents with an ID matching one\n      specified in `doc_ids` request body parameter. (`POST` only)\n  * `_selector` - Returns changes for documents that match the\n      `selector` request body parameter. The selector syntax is the same\n      as used for `_find`. (`POST` only)\n  * `_view` - Returns changes for documents that match an existing map\n      function in the view specified by the query parameter `view`.\n\nAdditionally, the value can be the name of a JS filter function from a\ndesign document. For example: `design_doc/filtername`.\n\n**Note:** For better performance use the built-in `_selector`, `_design`\nor `_doc_ids` filters rather than JS based `_view` or design document\nfilters.\nIf you need to pass values to change the filtered content use the\n`_selector` filter type.",
        "in": "query",
        "name": "filter",
        "schema": {
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^_design|_docs_ids|_selector|_view|.*\\/.*$",
          "type": "string"
        }
      },
      "QueryGroup": {
        "description": "Query parameter to specify whether to group reduced results by key. Valid only if a reduce function is defined in the view. If the view emits keys in JSON array format, then it is possible to reduce groups further based on the number of array elements with the `group_level` parameter.",
        "in": "query",
        "name": "group",
        "schema": {
          "default": false,
          "type": "boolean"
        }
      },
      "QueryGroupField": {
        "description": "Query parameter to specify the field name by which to group search matches. It must be a string that contains the name of a string field. Fields containing other data such as numbers, objects, or arrays cannot be used.",
        "in": "query",
        "name": "group_field",
        "schema": {
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^.+$",
          "type": "string"
        }
      },
      "QueryGroupLevel": {
        "description": "Query parameter to specify a group level to be used. Only applicable if the view uses keys that are JSON arrays. Implies group is `true`. Group level groups the reduced results by the specified number of array elements. If unset, results are grouped by the entire array key, returning a reduced value for each complete key.",
        "in": "query",
        "name": "group_level",
        "schema": {
          "format": "int64",
          "maximum": 4294967295,
          "minimum": 1,
          "type": "integer"
        }
      },
      "QueryGroupLimit": {
        "description": "Query parameter to specify the maximum group count. This parameter can be used only if group_field is specified.",
        "in": "query",
        "name": "group_limit",
        "schema": {
          "format": "int64",
          "maximum": 4294967295,
          "minimum": 1,
          "type": "integer"
        }
      },
      "QueryGroupSort": {
        "description": "Query parameter to specify the order of the groups in a search that uses group_field. The default sort order is relevance. This parameter can have the same values as the sort field, so single fields and arrays of fields are supported.",
        "in": "query",
        "name": "group_sort",
        "schema": {
          "items": {
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "maxItems": 65535,
          "minItems": 0,
          "type": "array"
        }
      },
      "QueryHeartbeat": {
        "description": "Query parameter to specify the period in milliseconds after\nwhich an empty line is sent in the results. Off by default and only\napplicable for `continuous` and `eventsource` feeds. Overrides any\ntimeout to keep the feed alive indefinitely. May also be `true` to use a\nvalue of `60000`.\n\n**Note:** Delivery of heartbeats cannot be relied on at specific\nintervals.\nIf your application runs in an environment where idle network\nconnections may break, `heartbeat` is not suitable as a keepalive\nmechanism.\nInstead, consider one of the following options:\n  * Use the `timeout` parameter with a value that is compatible with\n    your network environment.\n  * Switch to scheduled usage of one of the non-continuous changes feed\n    types (`normal` or `longpoll`).\n  * Use TCP keepalive.",
        "in": "query",
        "name": "heartbeat",
        "schema": {
          "format": "int64",
          "maximum": 60000,
          "minimum": 1,
          "type": "integer"
        }
      },
      "QueryHighlightFields": {
        "description": "Query parameter to specify which fields to highlight. If specified, the result object contains a highlights field with an entry for each specified field.",
        "in": "query",
        "name": "highlight_fields",
        "schema": {
          "items": {
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "maxItems": 65535,
          "minItems": 0,
          "type": "array"
        }
      },
      "QueryHighlightNumber": {
        "description": "Query parameter to specify the number of fragments that are returned in highlights. If the search term occurs less often than the number of fragments that are specified, longer fragments are returned.",
        "in": "query",
        "name": "highlight_number",
        "schema": {
          "default": 1,
          "format": "int64",
          "maximum": 1048521,
          "minimum": 1,
          "type": "integer"
        }
      },
      "QueryHighlightPostTag": {
        "description": "Query parameter to specify a string that is inserted after the highlighted word in the highlights output.",
        "in": "query",
        "name": "highlight_post_tag",
        "schema": {
          "default": "</em>",
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^</.*>$",
          "type": "string"
        }
      },
      "QueryHighlightPreTag": {
        "description": "Query parameter to specify a string that is inserted before the highlighted word in the highlights output.",
        "in": "query",
        "name": "highlight_pre_tag",
        "schema": {
          "default": "<em>",
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^<.*>$",
          "type": "string"
        }
      },
      "QueryHighlightSize": {
        "description": "Query parameter to specify the number of characters in each fragment for highlights.",
        "in": "query",
        "name": "highlight_size",
        "schema": {
          "default": 100,
          "format": "int64",
          "maximum": 1048521,
          "minimum": 1,
          "type": "integer"
        }
      },
      "QueryIncludeDocs": {
        "description": "Query parameter to specify whether to include the full content of the documents in the response.",
        "in": "query",
        "name": "include_docs",
        "schema": {
          "default": false,
          "description": "Include the full content of the documents in the response.",
          "type": "boolean"
        }
      },
      "QueryIncludeFields": {
        "description": "Query parameter to specify a JSON array of field names to include in search results. Any fields that are included must be indexed with the `store:true` option. The default is all fields.",
        "in": "query",
        "name": "include_fields",
        "schema": {
          "items": {
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "maxItems": 65535,
          "minItems": 0,
          "type": "array"
        }
      },
      "QueryInclusiveEnd": {
        "description": "Query parameter to specify whether the specified end key should be included in the result.",
        "in": "query",
        "name": "inclusive_end",
        "schema": {
          "default": true,
          "type": "boolean"
        }
      },
      "QueryKey": {
        "description": "Query parameter to specify to return only rows that match the specified key. String representation of any JSON type that matches the key type emitted by the view function.",
        "in": "query",
        "name": "key",
        "schema": {
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^.+$",
          "type": "string"
        }
      },
      "QueryKeys": {
        "description": "Query parameter to specify returning only rows that match any of the specified keys. String representation of a JSON array of keys that match the key type emitted by the view function. Must be URL encoded.",
        "in": "query",
        "name": "keys",
        "schema": {
          "maxLength": 7168,
          "minLength": 2,
          "pattern": "^\\[(\".*\")*\\]$",
          "type": "string"
        }
      },
      "QueryLastEventId": {
        "description": "Query parameter to specify the ID of the last events received by the server on a previous connection. Alias of `Last-Event-ID` header.",
        "in": "query",
        "name": "last_event_id",
        "schema": {
          "$ref": "#/components/schemas/Since"
        },
        "x-alias": "since parameter",
        "x-sdk-exclude": true
      },
      "QueryLatest": {
        "description": "Query parameter to specify whether to force retrieving latest leaf revision, no matter what rev was requested.",
        "in": "query",
        "name": "latest",
        "schema": {
          "default": false,
          "type": "boolean"
        }
      },
      "QueryLimit": {
        "description": "Query parameter to specify the number of returned documents to limit the result to.",
        "in": "query",
        "name": "limit",
        "schema": {
          "format": "int64",
          "maximum": 4294967295,
          "minimum": 0,
          "type": "integer"
        }
      },
      "QueryLocalSeq": {
        "description": "Query parameter to specify whether to include the last update sequence for the document.",
        "in": "query",
        "name": "local_seq",
        "schema": {
          "default": false,
          "type": "boolean"
        }
      },
      "QueryMeta": {
        "description": "Query parameter to specify whether to include document meta information. Acts the same as specifying all of the conflicts, deleted_conflicts and open_revs query parameters.",
        "in": "query",
        "name": "meta",
        "schema": {
          "default": false,
          "type": "boolean"
        }
      },
      "QueryN": {
        "description": "The number of replicas of the database in the cluster. The default is 3, unless overridden in the `cluster config`.",
        "in": "query",
        "name": "n",
        "required": false,
        "schema": {
          "$ref": "#/components/schemas/ReplicaCount"
        },
        "x-sdk-exclude": true
      },
      "QueryNewEdits": {
        "description": "Query parameter to specify whether to prevent insertion of\nconflicting document revisions. If false, a well-formed _rev must be\nincluded in the document. False is used by the replicator to insert\ndocuments into the target database even if that leads to the creation of\nconflicts.\n\nAvoid using this parameter, since this option applies document revisions\nwithout checking for conflicts, so it is very easy to accidentally end\nup with a large number of conflicts.",
        "in": "query",
        "name": "new_edits",
        "schema": {
          "default": false,
          "type": "boolean"
        }
      },
      "QueryNext": {
        "description": "Enforces redirect after successful login to the specified location. This location is relative from server root.",
        "in": "query",
        "name": "next",
        "schema": {
          "maxLength": 8000,
          "minLength": 1,
          "pattern": "^.+$",
          "type": "string"
        },
        "x-sdk-exclude": true
      },
      "QueryOpenRevs": {
        "description": "Query parameter to specify leaf revisions to retrieve. Additionally, it accepts a value of `all` to return all leaf revisions.",
        "in": "query",
        "name": "open_revs",
        "schema": {
          "items": {
            "$ref": "#/components/schemas/DocumentRevisionIdentifier"
          },
          "maxItems": 162,
          "minItems": 1,
          "type": "array"
        },
        "x-sdk-exclude": true
      },
      "QueryPartitioned": {
        "description": "Query parameter to specify whether to enable database partitions when creating a database.\n\nBefore using read the\n[FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-database-partitioning#partitioned-databases-database-partitioning)\nto understand the limitations and appropriate use cases.",
        "in": "query",
        "name": "partitioned",
        "schema": {
          "default": false,
          "type": "boolean"
        }
      },
      "QueryQ": {
        "description": "The number of shards in the database. Each shard is a\npartition of the hash value range. Cloudant recommends using the\ndefault value for most databases. However, if your database\nis expected to be larger than 250 GB or have a lot\nof indexes, you may need to adjust the settings. In these cases,\nit's best to reach out to IBM Cloudant customer support for guidance\non how to meet your specific needs and requirements.",
        "in": "query",
        "name": "q",
        "required": false,
        "schema": {
          "$ref": "#/components/schemas/ShardCount"
        }
      },
      "QueryQuery": {
        "description": "Query parameter to specify a Lucene search query. Alias of `q`.",
        "in": "query",
        "name": "query",
        "required": true,
        "schema": {
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^.+$",
          "type": "string"
        },
        "x-alias": "q"
      },
      "QueryRanges": {
        "description": "Query parameter to specify ranges for faceted, numeric search fields. The value is a JSON object where the fields names are faceted numeric search fields, and the values of the fields are JSON objects. For each of these objects the field names of the JSON objects are names for ranges. The values are strings that describe the range, for example \"[0 TO 10]\".",
        "in": "query",
        "name": "ranges",
        "schema": {
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^{.+}$",
          "type": "string"
        }
      },
      "QueryReduce": {
        "description": "Query parameter to specify whether to use the reduce function in a map-reduce view. Default is true when a reduce function is defined.\nA default `reduce` view type can be disabled to behave like a `map` by setting `reduce=false` explicitly.\nBe aware that `include_docs=true` is only for `map` views. Reduced views do not include document IDs in view rows.",
        "in": "query",
        "name": "reduce",
        "schema": {
          "default": true,
          "type": "boolean"
        }
      },
      "QueryRev": {
        "description": "Query parameter to specify a document revision.",
        "in": "query",
        "name": "rev",
        "schema": {
          "$ref": "#/components/schemas/DocumentRevisionIdentifier"
        }
      },
      "QueryRevs": {
        "description": "Query parameter to specify whether to include a list of all known document revisions.",
        "in": "query",
        "name": "revs",
        "schema": {
          "default": false,
          "type": "boolean"
        }
      },
      "QueryRevsInfo": {
        "description": "Query parameter to specify whether to includes detailed information for all known document revisions.",
        "in": "query",
        "name": "revs_info",
        "schema": {
          "default": false,
          "type": "boolean"
        }
      },
      "QuerySchedulerJobsLimit": {
        "description": "Query parameter to specify the number of returned jobs to limit the result to.",
        "in": "query",
        "name": "limit",
        "schema": {
          "default": 25,
          "format": "int64",
          "maximum": 200,
          "minimum": 0,
          "type": "integer"
        }
      },
      "QuerySearchAnalyzer": {
        "description": "Query parameter to specify search analyzer type.",
        "in": "query",
        "name": "analyzer",
        "required": true,
        "schema": {
          "$ref": "#/components/schemas/SearchAnalyzer"
        }
      },
      "QuerySearchAnalyzerText": {
        "description": "Query parameter to specify search analyzer text.",
        "in": "query",
        "name": "text",
        "required": true,
        "schema": {
          "$ref": "#/components/schemas/SearchAnalyzerText"
        }
      },
      "QuerySeqInterval": {
        "description": "Query parameter to specify that the update seq should only be calculated with every Nth result returned. When fetching changes in a batch, setting <code>seq_interval=&lt;batch size&gt;</code>, where &lt;batch size&gt; is the number of results requested per batch, load can be reduced on the source database as computing the seq value across many shards (especially in highly-sharded databases) is expensive.",
        "in": "query",
        "name": "seq_interval",
        "schema": {
          "format": "int64",
          "maximum": 4294967295,
          "minimum": 1,
          "type": "integer"
        }
      },
      "QuerySince": {
        "description": "Query parameter to specify to start the results from the change\nimmediately after the given update sequence. Possible values are:\n  * `0` for all available changes (default).\n  * `now` for future changes.\n  * A valid update sequence, for example, from the `seq` value of a\n    change received before.",
        "example": "0",
        "in": "query",
        "name": "since",
        "schema": {
          "$ref": "#/components/schemas/Since"
        }
      },
      "QuerySkip": {
        "description": "Query parameter to specify the number of records before starting to return the results.",
        "in": "query",
        "name": "skip",
        "schema": {
          "default": 0,
          "format": "int64",
          "maximum": 9007199254740991,
          "minimum": 0,
          "type": "integer"
        }
      },
      "QuerySort": {
        "description": "Query parameter to specify the sort order of the results. In a grouped search (when group_field is used), this parameter specifies the sort order within a group. The default sort order is relevance. A JSON string of the form \"fieldname&lt;type&gt;\" or -fieldname&lt;type&gt; for descending order, where fieldname is the name of a string or number field, and type is either a number, a string, or a JSON array of strings. The type part is optional, and defaults to number. Some examples are \"foo\", \"-foo\", \"bar&lt;string&gt;\", \"-foo&lt;number&gt;\" and [\"-foo&lt;number&gt;\", \"bar&lt;string&gt;\"]. String fields that are used for sorting must not be analyzed fields. Fields that are used for sorting must be indexed by the same indexer that is used for the search query.",
        "in": "query",
        "name": "sort",
        "schema": {
          "items": {
            "$ref": "#/components/schemas/SearchSort"
          },
          "maxItems": 65535,
          "minItems": 0,
          "type": "array"
        }
      },
      "QuerySorted": {
        "deprecated": true,
        "description": "Query parameter to specify whether to sort the returned rows. Setting this to false offers a performance boost. The total_rows and offset fields are not available when this is set to false.",
        "in": "query",
        "name": "sorted",
        "schema": {
          "default": true,
          "type": "boolean"
        },
        "x-sdk-exclude": true
      },
      "QueryStable": {
        "description": "Query parameter to specify whether use the same replica of the index\non each request. The default value `false` contacts all replicas and\nreturns the result from the first, fastest, responder.\nSetting it to `true` when used in conjunction with `update=false` may\nimprove consistency at the expense of increased latency and decreased\nthroughput, if the selected replica is not the fastest of the available\nreplicas.\n\n**Note:** In general setting `true` is discouraged and is strictly not\nrecommended when using `update=true`.",
        "in": "query",
        "name": "stable",
        "schema": {
          "default": false,
          "type": "boolean"
        }
      },
      "QueryStale": {
        "deprecated": true,
        "description": "**Note:** `stale` is deprecated, use `stable` and `update` instead.\n\nQuery parameter to specify whether to allow the results from a\nstale view to be used, without triggering a rebuild of all views within\nthe encompassing design doc.\n\n* `ok` is equivalent to `stable=true&update=false`\n* `update_after` is equivalent to `stable=true&update=lazy`\n\nFor more details on the use cases of `stale`, `update`, and `stable` parameters, see [this blog post](https://blog.cloudant.com/2018/11/06/What-is-stale-update-and-stable.html).",
        "in": "query",
        "name": "stale",
        "schema": {
          "enum": [
            "ok",
            "update_after"
          ],
          "type": "string"
        },
        "x-sdk-exclude": true
      },
      "QueryStaleSearch": {
        "description": "Query parameter to specify to not wait for the index to finish building before returning results.",
        "in": "query",
        "name": "stale",
        "schema": {
          "enum": [
            "ok"
          ],
          "type": "string"
        }
      },
      "QueryStartKey": {
        "description": "Query parameter to specify to start returning records from the specified key. String representation of any JSON type that matches the key type emitted by the view function.",
        "in": "query",
        "name": "start_key",
        "schema": {
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^.+$",
          "type": "string"
        },
        "x-alias": "startkey"
      },
      "QueryStartKeyDocId": {
        "description": "Query parameter to start returning rows at the specified document ID. No effect if using `group` or not providing start key.",
        "in": "query",
        "name": "start_key_doc_id",
        "schema": {
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^[^_].*$",
          "type": "string"
        },
        "x-alias": "startkey_docid"
      },
      "QueryStates": {
        "description": "Query parameter to include only replication documents in the specified states. String must be a comma-delimited string.",
        "explode": false,
        "in": "query",
        "name": "states",
        "schema": {
          "items": {
            "$ref": "#/components/schemas/ReplicationState"
          },
          "maxItems": 7,
          "minItems": 1,
          "type": "array"
        },
        "style": "form"
      },
      "QueryStyle": {
        "description": "Query parameter to specify how many revisions are returned in the changes array. The default, `main_only`, will only return the current \"winning\" revision; all_docs will return all leaf revisions (including conflicts and deleted former conflicts).",
        "in": "query",
        "name": "style",
        "schema": {
          "default": "main_only",
          "enum": [
            "main_only",
            "all_docs"
          ],
          "type": "string"
        }
      },
      "QueryTimeout": {
        "description": "Query parameter to specify the maximum period in milliseconds to wait for a change before the response is sent, even if there are no results. Only applicable for `longpoll` or `continuous` feeds. Default value is specified by `httpd/changes_timeout` configuration option. Note that `60000` value is also the default maximum timeout to prevent undetected dead connections.",
        "in": "query",
        "name": "timeout",
        "schema": {
          "default": 60000,
          "format": "int64",
          "maximum": 60000,
          "minimum": 0,
          "type": "integer"
        }
      },
      "QueryUpdate": {
        "description": "Query parameter to specify whether or not the view in question\nshould be updated prior to responding to the user.\n\n* `true` - Return results after the view is updated.\n* `false` - Return results without updating the view.\n* `lazy` - Return the view results without waiting for an update, but\n  update them immediately after the request.",
        "in": "query",
        "name": "update",
        "schema": {
          "default": "true",
          "enum": [
            "true",
            "false",
            "lazy"
          ],
          "type": "string"
        }
      },
      "QueryUpdateSeq": {
        "description": "Query parameter to specify whether to include in the response an update_seq value indicating the sequence id of the database the view reflects.",
        "in": "query",
        "name": "update_seq",
        "schema": {
          "default": false,
          "type": "boolean"
        }
      },
      "QueryView": {
        "description": "Query parameter to specify a view function as a filter. Documents pass the filter if the view's map function emits at least one record for them.",
        "in": "query",
        "name": "view",
        "schema": {
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^[^_].*$",
          "type": "string"
        }
      },
      "UserPlanHistory": {
        "description": "Return user's plan history if true.",
        "in": "query",
        "name": "history",
        "schema": {
          "default": true,
          "type": "boolean"
        }
      },
      "UserPlanStartDate": {
        "description": "Earliest date from which to include plan changes in history",
        "in": "query",
        "name": "start_date",
        "schema": {
          "format": "date-time",
          "maxLength": 26,
          "minLength": 1,
          "type": "string"
        }
      }
    },
    "requestBodies": {
      "ActivityTrackerEvents": {
        "content": {
          "application/json": {
            "examples": {
              "ActivityTrackerEvents": {
                "$ref": "#/components/examples/ActivityTrackerEvents"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/ActivityTrackerEvents"
            }
          }
        },
        "description": "HTTP request body for postActivityTrackerEvents.",
        "required": true
      },
      "AllDocsQueriesQuery": {
        "content": {
          "application/json": {
            "examples": {
              "AllDocsQueriesQuery": {
                "$ref": "#/components/examples/AllDocsQueriesQuery"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/AllDocsQueriesQuery"
            }
          }
        },
        "description": "HTTP request body for allDocsQueriesQuery, designDocsQueriesQuery and localDocsQueriesQuery.",
        "required": true
      },
      "AllDocsQuery": {
        "content": {
          "application/json": {
            "examples": {
              "AllDocsQuery": {
                "$ref": "#/components/examples/AllDocsQuery"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/AllDocsQuery"
            }
          }
        },
        "description": "HTTP request body for postAllDocs and postPartitionAllDocs.",
        "required": true
      },
      "Attachment": {
        "content": {
          "*/*": {
            "examples": {
              "AttachmentContent": {
                "$ref": "#/components/examples/AttachmentContent"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/AttachmentContent"
            }
          }
        },
        "description": "HTTP request body for attachment operations.",
        "required": true
      },
      "BulkDocs": {
        "content": {
          "application/json": {
            "examples": {
              "BulkDocs": {
                "$ref": "#/components/examples/BulkDocs"
              },
              "BulkDocsDelete": {
                "$ref": "#/components/examples/BulkDocsDelete"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/BulkDocs"
            }
          }
        },
        "description": "HTTP request body for postBulkDocs.",
        "required": true
      },
      "BulkGetQuery": {
        "content": {
          "application/json": {
            "examples": {
              "BulkGetQuery": {
                "$ref": "#/components/examples/BulkGetQuery"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/BulkGetQuery"
            }
          }
        },
        "description": "HTTP request body for postBulkGet.",
        "required": true
      },
      "CapacityThroughputConfiguration": {
        "content": {
          "application/json": {
            "examples": {
              "CapacityThroughputConfiguration": {
                "$ref": "#/components/examples/CapacityThroughputConfiguration"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/CapacityThroughputConfiguration"
            }
          }
        },
        "description": "HTTP request body for putCapacityThroughputConfiguration.",
        "required": true
      },
      "ChangesQuery": {
        "content": {
          "application/json": {
            "examples": {
              "ChangesFilterDocIds": {
                "$ref": "#/components/examples/ChangesQueryFilterDocIds"
              },
              "ChangesFilterSelector": {
                "$ref": "#/components/examples/ChangesQueryFilterSelector"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/ChangesQuery"
            }
          }
        },
        "description": "HTTP request body for postChanges.",
        "required": true
      },
      "CloudantSecurityConfiguration": {
        "content": {
          "application/json": {
            "examples": {
              "CloudantSecurityConfiguration": {
                "$ref": "#/components/examples/CloudantSecurityConfiguration"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/CloudantSecurityConfiguration"
            }
          }
        },
        "description": "HTTP request body for putCloudantSecurityConfiguration.",
        "required": true
      },
      "CorsConfiguration": {
        "content": {
          "application/json": {
            "examples": {
              "CorsConfiguration": {
                "$ref": "#/components/examples/CorsConfiguration"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/CorsConfiguration"
            }
          }
        },
        "description": "HTTP request body for putCorsConfiguration.",
        "required": true
      },
      "DbsInfoQuery": {
        "content": {
          "application/json": {
            "examples": {
              "DbsInfoQuery": {
                "$ref": "#/components/examples/DbsInfoQuery"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/DbsInfoQuery"
            }
          }
        },
        "description": "HTTP request body for postDbsInfo.",
        "required": true
      },
      "DesignDocument": {
        "content": {
          "application/json": {
            "examples": {
              "DesignDocument": {
                "$ref": "#/components/examples/DesignDocument"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/DesignDocument"
            }
          }
        },
        "description": "HTTP request body for DesignDocument operations.",
        "required": true
      },
      "Document": {
        "content": {
          "application/json": {
            "examples": {
              "Document": {
                "$ref": "#/components/examples/Document"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Document"
            }
          },
          "multipart/mixed": {
            "schema": {
              "$ref": "#/components/schemas/DocumentMultipart"
            }
          },
          "multipart/related": {
            "examples": {
              "DocumentMultipart": {
                "$ref": "#/components/examples/DocumentMultipartRequest"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/DocumentMultipart"
            }
          }
        },
        "description": "HTTP request body for Document operations.",
        "required": true
      },
      "DocumentRevisions": {
        "content": {
          "application/json": {
            "examples": {
              "DocumentRevisions": {
                "$ref": "#/components/examples/DocumentRevisions"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/DocumentRevisions"
            }
          }
        },
        "description": "HTTP request body for operations with Document revisions.",
        "required": true
      },
      "FindQuery": {
        "content": {
          "application/json": {
            "examples": {
              "FindQuery": {
                "$ref": "#/components/examples/FindQuery"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/FindQuery"
            }
          }
        },
        "description": "HTTP request body for postFind and postExplain.",
        "required": true
      },
      "IamSessionConfiguration": {
        "content": {
          "application/json": {
            "examples": {
              "IamSessionConfiguration": {
                "$ref": "#/components/examples/IamSessionConfiguration"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/IamSessionConfiguration"
            }
          }
        },
        "description": "HTTP request body for postIamSession.",
        "required": true
      },
      "IndexConfiguration": {
        "content": {
          "application/json": {
            "examples": {
              "IndexConfiguration": {
                "$ref": "#/components/examples/IndexConfiguration"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/IndexConfiguration"
            }
          }
        },
        "description": "HTTP request body for postIndex.",
        "required": true
      },
      "PartitionFindQuery": {
        "content": {
          "application/json": {
            "examples": {
              "PartitionFindQuery": {
                "$ref": "#/components/examples/PartitionFindQuery"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PartitionFindQuery"
            }
          }
        },
        "description": "HTTP request body for postPartitionFind.",
        "required": true
      },
      "PartitionSearchQuery": {
        "content": {
          "application/json": {
            "examples": {
              "Search": {
                "$ref": "#/components/examples/SearchQuery"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PartitionSearchQuery"
            }
          }
        },
        "description": "HTTP request body for postPartitionSearch.",
        "required": true
      },
      "PartitionViewQuery": {
        "content": {
          "application/json": {
            "examples": {
              "ViewQuery": {
                "$ref": "#/components/examples/ViewQuery"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PartitionViewQuery"
            }
          }
        },
        "description": "HTTP request body for postPartitionView.",
        "required": true
      },
      "ReplicationDocument": {
        "content": {
          "application/json": {
            "examples": {
              "ReplicationDocument": {
                "$ref": "#/components/examples/ReplicationDocument"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/ReplicationDocument"
            }
          }
        },
        "description": "HTTP request body for replication operations.",
        "required": true
      },
      "ReshardJobsConfiguration": {
        "content": {
          "application/json": {
            "examples": {
              "ReshardJobsConfiguration": {
                "$ref": "#/components/examples/ReshardJobsConfiguration"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/ReshardJobsConfiguration"
            }
          }
        },
        "description": "HTTP request body for postReshardJobsConfiguration.",
        "required": true
      },
      "ReshardState": {
        "content": {
          "application/json": {
            "examples": {
              "ReshardStateCluster": {
                "$ref": "#/components/examples/ReshardStateCluster"
              },
              "ReshardStateJob": {
                "$ref": "#/components/examples/ReshardStateJob"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/ReshardState"
            }
          }
        },
        "description": "HTTP request body for putReshardState or putReshardJobState.",
        "required": true
      },
      "RevsLimit": {
        "content": {
          "application/json": {
            "examples": {
              "RevsLimit": {
                "$ref": "#/components/examples/RevsLimit"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/RevsLimit"
            }
          }
        },
        "description": "HTTP request body for putRevsLimit.",
        "required": true
      },
      "SearchAnalyzeQuery": {
        "content": {
          "application/json": {
            "examples": {
              "SearchAnalyzeQuery": {
                "$ref": "#/components/examples/SearchAnalyzeQuery"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/SearchAnalyzeQuery"
            }
          }
        },
        "description": "HTTP request body for postSearchAnalyze.",
        "required": true
      },
      "SearchQuery": {
        "content": {
          "application/json": {
            "examples": {
              "SearchQuery": {
                "$ref": "#/components/examples/SearchQuery"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/SearchQuery"
            }
          }
        },
        "description": "HTTP request body for postSearch.",
        "required": true
      },
      "Security": {
        "content": {
          "application/json": {
            "examples": {
              "Security": {
                "$ref": "#/components/examples/Security"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Security"
            }
          }
        },
        "description": "HTTP request body for putSecurity.",
        "required": true
      },
      "SessionConfiguration": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/SessionConfiguration"
            }
          }
        },
        "description": "HTTP request body for postSession.",
        "required": true
      },
      "UserPlanConfiguration": {
        "content": {
          "application/json": {
            "examples": {
              "UserPlanConfiguration": {
                "$ref": "#/components/examples/UserPlanConfiguration"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/UserPlanConfiguration"
            }
          }
        },
        "description": "HTTP request body for putUserPlan.",
        "required": true
      },
      "ViewQueriesQuery": {
        "content": {
          "application/json": {
            "examples": {
              "ViewQueriesQuery": {
                "$ref": "#/components/examples/ViewQueriesQuery"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/ViewQueriesQuery"
            }
          }
        },
        "description": "HTTP request body for postViewQueries.",
        "required": true
      },
      "ViewQuery": {
        "content": {
          "application/json": {
            "examples": {
              "ViewQuery": {
                "$ref": "#/components/examples/ViewQuery"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/ViewQuery"
            }
          }
        },
        "description": "HTTP request body for postView and postPartitionView.",
        "required": true
      }
    },
    "responses": {
      "ActiveTasks": {
        "content": {
          "application/json": {
            "examples": {
              "ActiveTasks": {
                "$ref": "#/components/examples/ActiveTasks"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/ActiveTasks"
            }
          }
        },
        "description": "HTTP response for `/_active_tasks` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "ActiveTasksHead": {
        "description": "HTTP response for `/_active_tasks` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "ActivityTrackerEvents": {
        "content": {
          "application/json": {
            "examples": {
              "ActivityTrackerEvents": {
                "$ref": "#/components/examples/ActivityTrackerEvents"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/ActivityTrackerEvents"
            }
          }
        },
        "description": "HTTP response for getActivityTrackerEvents.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "AllDbs": {
        "content": {
          "application/json": {
            "examples": {
              "AllDbsResult": {
                "$ref": "#/components/examples/AllDbsResult"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/AllDbs"
            }
          }
        },
        "description": "HTTP response for `/_all_dbs` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "ETag": {
            "$ref": "#/components/headers/ETag"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Transfer-Encoding": {
            "$ref": "#/components/headers/TransferEncoding"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "AllDbsHead": {
        "description": "HTTP response for `/_all_dbs` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "ETag": {
            "$ref": "#/components/headers/ETag"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "AllDocsQueriesResult": {
        "content": {
          "application/json": {
            "examples": {
              "AllDocsQueriesResult": {
                "$ref": "#/components/examples/AllDocsQueriesResult"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/AllDocsQueriesResult"
            }
          }
        },
        "description": "HTTP response for `/_all_docs/queries` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Transfer-Encoding": {
            "$ref": "#/components/headers/TransferEncoding"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "AllDocsResult": {
        "content": {
          "application/json": {
            "examples": {
              "AllDocsResult": {
                "$ref": "#/components/examples/AllDocsResult"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/AllDocsResult"
            }
          }
        },
        "description": "HTTP response for getAllDocs and postAllDocs.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Transfer-Encoding": {
            "$ref": "#/components/headers/TransferEncoding"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "AllDocsResultDesign": {
        "content": {
          "application/json": {
            "examples": {
              "AllDocsResultDesignDocs": {
                "$ref": "#/components/examples/AllDocsResultDesignDocs"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/AllDocsResult"
            }
          }
        },
        "description": "HTTP response for getDesignDocs and postDesignDocs.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Transfer-Encoding": {
            "$ref": "#/components/headers/TransferEncoding"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "AllDocsResultHead": {
        "description": "HTTP response for `/_all_docs` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "AllDocsResultLocal": {
        "content": {
          "application/json": {
            "examples": {
              "AllDocsResultLocalDocs": {
                "$ref": "#/components/examples/AllDocsResultLocalDocs"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/AllDocsResult"
            }
          }
        },
        "description": "HTTP response for getLocalDocs and postLocalDocs.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Transfer-Encoding": {
            "$ref": "#/components/headers/TransferEncoding"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "AllDocsResultPartition": {
        "content": {
          "application/json": {
            "examples": {
              "AllDocsResultPartition": {
                "$ref": "#/components/examples/AllDocsResultPartition"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/AllDocsResult"
            }
          }
        },
        "description": "HTTP response for getPartitionAllDocs and postPartitionAllDocs.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Transfer-Encoding": {
            "$ref": "#/components/headers/TransferEncoding"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "AnyJsonObject": {
        "content": {
          "application/json": {
            "examples": {
              "EmptyJsonObject": {
                "description": "Example of an empty json object",
                "value": {}
              }
            },
            "schema": {
              "additionalProperties": true,
              "description": "Any json object",
              "type": "object"
            }
          }
        },
        "description": "HTTP response for arbitrary JSON object.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "ApiKeysResult": {
        "content": {
          "application/json": {
            "examples": {
              "ApiKeysResult": {
                "$ref": "#/components/examples/ApiKeysResult"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/ApiKeysResult"
            }
          }
        },
        "description": "HTTP response for postApiKeys.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Attachment": {
        "content": {
          "*/*": {
            "examples": {
              "AttachmentContent": {
                "$ref": "#/components/examples/AttachmentContent"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/AttachmentContent"
            }
          }
        },
        "description": "HTTP response for Attachment.",
        "headers": {
          "Accept-Ranges": {
            "$ref": "#/components/headers/AcceptRanges"
          },
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Content-Range": {
            "$ref": "#/components/headers/ContentRange"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "ETag": {
            "$ref": "#/components/headers/ETag"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "AttachmentHead": {
        "description": "HTTP response for Attachment.",
        "headers": {
          "Accept-Ranges": {
            "$ref": "#/components/headers/AcceptRanges"
          },
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Content-Range": {
            "$ref": "#/components/headers/ContentRange"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "ETag": {
            "$ref": "#/components/headers/ETag"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "BulkDocsResult": {
        "content": {
          "application/json": {
            "examples": {
              "BulkDocsResult": {
                "$ref": "#/components/examples/BulkDocsResult"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/BulkDocsResult"
            }
          }
        },
        "description": "HTTP response for postBulkDocs.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Cost-Write": {
            "$ref": "#/components/headers/XCloudantCostWrite"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "BulkGetResult": {
        "content": {
          "application/json": {
            "examples": {
              "BulkGetResult": {
                "$ref": "#/components/examples/BulkGetResult"
              },
              "BulkGetResultAttsSince": {
                "$ref": "#/components/examples/BulkGetResultAttsSince"
              },
              "BulkGetResultOpenRevs": {
                "$ref": "#/components/examples/BulkGetResultOpenRevs"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/BulkGetResult"
            }
          },
          "multipart/mixed": {
            "encoding": {
              "results": {
                "contentType": "multipart/mixed",
                "headers": {
                  "X-Doc-Id": {
                    "description": "Header returning a document ID.",
                    "schema": {
                      "$ref": "#/components/schemas/DocumentId"
                    }
                  },
                  "X-Rev-Id": {
                    "description": "Header returning a document revision identifier.",
                    "schema": {
                      "$ref": "#/components/schemas/DocumentRevisionIdentifier"
                    }
                  }
                }
              }
            },
            "schema": {
              "$ref": "#/components/schemas/BulkGetResultMultipart"
            }
          },
          "multipart/related": {
            "encoding": {
              "results": {
                "contentType": "multipart/related",
                "headers": {
                  "X-Doc-Id": {
                    "description": "Header returning a document ID.",
                    "schema": {
                      "$ref": "#/components/schemas/DocumentId"
                    }
                  },
                  "X-Rev-Id": {
                    "description": "Header returning a document revision identifier.",
                    "schema": {
                      "$ref": "#/components/schemas/DocumentRevisionIdentifier"
                    }
                  }
                }
              }
            },
            "examples": {
              "BulkGetResult": {
                "$ref": "#/components/examples/BulkGetResultMultipart"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/BulkGetResultMultipart"
            }
          }
        },
        "description": "HTTP response for postBulkGet.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Cost-Lookup": {
            "$ref": "#/components/headers/XCloudantCostLookup"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "CapacityDatabasesInformation": {
        "content": {
          "application/json": {
            "examples": {
              "CapacityDatabasesInformation": {
                "$ref": "#/components/examples/CapacityDatabasesInformation"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/CapacityDatabasesInformation"
            }
          }
        },
        "description": "HTTP response for maximum number of databases allowed in an instance.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "CapacityThroughputInformation": {
        "content": {
          "application/json": {
            "examples": {
              "CapacityThroughputInformation": {
                "$ref": "#/components/examples/CapacityThroughputInformation"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/CapacityThroughputInformation"
            }
          }
        },
        "description": "HTTP response for getCapacityThroughputInformation.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "CcmDiagnostics": {
        "content": {
          "application/json": {
            "examples": {
              "CcmDiagnositics": {
                "$ref": "#/components/examples/CcmDiagnostics"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/CcmDiagnostics"
            }
          }
        },
        "description": "HTTP response for getCcmDiagnostics.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "ChangesResult": {
        "content": {
          "application/json": {
            "examples": {
              "ChangesResult": {
                "$ref": "#/components/examples/ChangesResult"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/ChangesResult"
            }
          }
        },
        "description": "HTTP response for `/{db}/_changes` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "ETag": {
            "$ref": "#/components/headers/ETag"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Transfer-Encoding": {
            "$ref": "#/components/headers/TransferEncoding"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "ChangesResultHead": {
        "description": "HTTP response for `/{db}/_changes` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "ETag": {
            "$ref": "#/components/headers/ETag"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "CorsInformation": {
        "content": {
          "application/json": {
            "examples": {
              "CorsInformation": {
                "$ref": "#/components/examples/CorsConfiguration"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/CorsInformation"
            }
          }
        },
        "description": "HTTP response for getCorsInformation.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "CurrentDatabasesInformation": {
        "content": {
          "application/json": {
            "examples": {
              "CurrentDatabasesInformation": {
                "$ref": "#/components/examples/CurrentDatabasesInformation"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/CurrentDatabasesInformation"
            }
          }
        },
        "description": "HTTP response for current database count.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "CurrentThroughputInformation": {
        "content": {
          "application/json": {
            "examples": {
              "CurrentThroughputInformation": {
                "$ref": "#/components/examples/CurrentThroughputInformation"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/CurrentThroughputInformation"
            }
          }
        },
        "description": "HTTP response for getCurrentThroughputInformation.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "DatabaseInformation": {
        "content": {
          "application/json": {
            "examples": {
              "DatabaseInformation": {
                "$ref": "#/components/examples/DatabaseInformation"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/DatabaseInformation"
            }
          }
        },
        "description": "HTTP response for DatabaseInformation.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "DatabaseInformationHead": {
        "description": "HTTP response for DatabaseInformation.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "DatabaseResult": {
        "content": {
          "application/json": {
            "examples": {
              "Ok": {
                "$ref": "#/components/examples/Ok"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Ok"
            }
          }
        },
        "description": "HTTP response for database creation operation.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Location": {
            "$ref": "#/components/headers/Location"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "DbUpdates": {
        "content": {
          "application/json": {
            "examples": {
              "DbUpdates": {
                "$ref": "#/components/examples/DbUpdates"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/DbUpdates"
            }
          }
        },
        "description": "HTTP response for `/_db_updates` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "ETag": {
            "$ref": "#/components/headers/ETag"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "DbUpdatesHead": {
        "description": "HTTP response for `/_db_updates` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "ETag": {
            "$ref": "#/components/headers/ETag"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "DbsInfoResults": {
        "content": {
          "application/json": {
            "examples": {
              "DbsInfoResults": {
                "$ref": "#/components/examples/DbsInfoResults"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/DbsInfoResults"
            }
          }
        },
        "description": "HTTP response for postDbsInfo.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "ETag": {
            "$ref": "#/components/headers/ETag"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Transfer-Encoding": {
            "$ref": "#/components/headers/TransferEncoding"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "DesignDocument": {
        "content": {
          "application/json": {
            "examples": {
              "DesignDocument": {
                "$ref": "#/components/examples/DesignDocument"
              },
              "DesignDocumentPartition": {
                "$ref": "#/components/examples/DesignDocumentPartition"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/DesignDocument"
            }
          }
        },
        "description": "HTTP response for DesignDocument.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "ETag": {
            "$ref": "#/components/headers/ETag"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "DesignDocumentHead": {
        "description": "HTTP response for DesignDocument.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "ETag": {
            "$ref": "#/components/headers/ETag"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "DesignDocumentInformation": {
        "content": {
          "application/json": {
            "examples": {
              "DesignDocumentInformation": {
                "$ref": "#/components/examples/DesignDocumentInformation"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/DesignDocumentInformation"
            }
          }
        },
        "description": "HTTP response for `/{db}/_design/{ddoc}/_info` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "DesignDocumentInformationHead": {
        "description": "HTTP response for `/{db}/_design/{ddoc}/_info` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Document": {
        "content": {
          "application/json": {
            "examples": {
              "Document": {
                "$ref": "#/components/examples/Document"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Document"
            }
          },
          "multipart/mixed": {
            "schema": {
              "$ref": "#/components/schemas/DocumentMultipart"
            }
          },
          "multipart/related": {
            "examples": {
              "DocumentMultipart": {
                "$ref": "#/components/examples/DocumentMultipartResponse"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/DocumentMultipart"
            }
          }
        },
        "description": "HTTP response for Document.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "ETag": {
            "$ref": "#/components/headers/ETag"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "DocumentHead": {
        "description": "HTTP response for Document.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "ETag": {
            "$ref": "#/components/headers/ETag"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "DocumentResult": {
        "content": {
          "application/json": {
            "examples": {
              "DocumentResult": {
                "$ref": "#/components/examples/DocumentResult"
              },
              "DocumentResultDeleted": {
                "$ref": "#/components/examples/DocumentResultDeleted"
              },
              "DocumentResultUpdated": {
                "$ref": "#/components/examples/DocumentResultUpdated"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/DocumentResult"
            }
          }
        },
        "description": "HTTP response for Document modification operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "ETag": {
            "$ref": "#/components/headers/ETag"
          },
          "Location": {
            "$ref": "#/components/headers/Location"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "DocumentShardInfo": {
        "content": {
          "application/json": {
            "examples": {
              "DocumentShardInfo": {
                "$ref": "#/components/examples/DocumentShardInfo"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/DocumentShardInfo"
            }
          }
        },
        "description": "HTTP response for `/{db}/_shards/{doc_id}` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "DocumentShardInfoHead": {
        "description": "HTTP response for `/{db}/_shards/{doc_id}` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "EnsureFullCommitInformation": {
        "content": {
          "application/json": {
            "examples": {
              "EnsureFullCommitInformation": {
                "$ref": "#/components/examples/EnsureFullCommitInformation"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/EnsureFullCommitInformation"
            }
          }
        },
        "description": "HTTP response for postEnsureFullCommit.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Error400AuthHeaderInvalid": {
        "content": {
          "application/json": {
            "examples": {
              "Error400AuthHeaderInvalid": {
                "$ref": "#/components/examples/Error400AuthHeaderInvalid"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for bad request.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Error400BadRequest": {
        "content": {
          "application/json": {
            "examples": {
              "Error400BadRequest": {
                "$ref": "#/components/examples/Error400BadRequest"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for bad request.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Error400CountParameterTooLarge": {
        "content": {
          "application/json": {
            "examples": {
              "Error400CountParameterTooLarge": {
                "$ref": "#/components/examples/Error400CountParameterTooLarge"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for bad request.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Error400DatabaseDeletedWithRev": {
        "content": {
          "application/json": {
            "examples": {
              "Error400DatabaseDeletedWithRev": {
                "$ref": "#/components/examples/Error400DatabaseDeletedWithRev"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for bad request.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Error400DbsInfoMissingKeys": {
        "content": {
          "application/json": {
            "examples": {
              "Error400DbsInfoMissingKeys": {
                "$ref": "#/components/examples/Error400DbsInfoMissingKeys"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for bad request.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Error400InvalidDatabaseName": {
        "content": {
          "application/json": {
            "examples": {
              "Error400InvalidDatabaseName": {
                "$ref": "#/components/examples/Error400InvalidDatabaseName"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for bad request.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Error400InvalidJson": {
        "content": {
          "application/json": {
            "examples": {
              "Error400InvalidJson": {
                "$ref": "#/components/examples/Error400InvalidJson"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for bad request.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Error400InvalidPartition": {
        "content": {
          "application/json": {
            "examples": {
              "Error400InvalidPartition": {
                "$ref": "#/components/examples/Error400InvalidPartition"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for bad request.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Error400NotSupportedOption": {
        "content": {
          "application/json": {
            "examples": {
              "Error400NotSupportedOption": {
                "$ref": "#/components/examples/Error400NotSupportedOption"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for bad request.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Error401AdminPrivilegesRequired": {
        "content": {
          "application/json": {
            "examples": {
              "Error401AdminPrivilegesRequired": {
                "$ref": "#/components/examples/Error401AdminPrivilegesRequired"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for unauthorized.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Error401Unauthorized": {
        "content": {
          "application/json": {
            "examples": {
              "Error401ReaderPrivilegesRequired": {
                "$ref": "#/components/examples/Error401ReaderPrivilegesRequired"
              },
              "Error401Unauthorized": {
                "$ref": "#/components/examples/Error401Unauthorized"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for unauthorized.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Error401WriterOrCreatorPrivilegesRequired": {
        "content": {
          "application/json": {
            "examples": {
              "Error401WriterOrCreatorPrivilegesRequired": {
                "$ref": "#/components/examples/Error401WriterOrCreatorPrivilegesRequired"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for unauthorized.",
        "headers": {
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          }
        }
      },
      "Error401WriterPrivilegesRequired": {
        "content": {
          "application/json": {
            "examples": {
              "ErrorWriterPrivilegesRequired": {
                "$ref": "#/components/examples/Error401WriterPrivilegesRequired"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for unauthorized.",
        "headers": {
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          }
        }
      },
      "Error402OverDataQuota": {
        "content": {
          "application/json": {
            "examples": {
              "Error402OverDataQuota": {
                "$ref": "#/components/examples/Error402OverDataQuota"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for exceeded data usage quota.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Error402PaymentRequired": {
        "content": {
          "application/json": {
            "examples": {
              "Error402PaymentRequired": {
                "$ref": "#/components/examples/Error402PaymentRequired"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for payment required.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Error403Forbidden": {
        "content": {
          "application/json": {
            "examples": {
              "Error403Forbidden": {
                "$ref": "#/components/examples/Error403Forbidden"
              },
              "Error403TempAccountLockout": {
                "$ref": "#/components/examples/Error403TempAccountLockout"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for forbidden.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Error404DatabaseDoesNotExist": {
        "content": {
          "application/json": {
            "examples": {
              "Error404DatabaseDoesNotExist": {
                "$ref": "#/components/examples/Error404DatabaseDoesNotExist"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for not found.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Error404DocumentDoesNotExist": {
        "content": {
          "application/json": {
            "examples": {
              "Error404DocumentDoesNotExist": {
                "$ref": "#/components/examples/Error404DocumentDoesNotExist"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for not found.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Error404MissingNamedView": {
        "content": {
          "application/json": {
            "examples": {
              "Error404MissingNamedView": {
                "$ref": "#/components/examples/Error404MissingNamedView"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for not found.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Error404NotFound": {
        "content": {
          "application/json": {
            "examples": {
              "Error404NotFound": {
                "$ref": "#/components/examples/Error404NotFound"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for not found.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Error408RequestTimeout": {
        "content": {
          "application/json": {
            "examples": {
              "Error408RequestTimeout": {
                "$ref": "#/components/examples/Error408RequestTimeout"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for timeout reading client request.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Error409DocumentConflict": {
        "content": {
          "application/json": {
            "examples": {
              "Error409DocumentConflict": {
                "$ref": "#/components/examples/Error409DocumentConflict"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for conflict.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Error410Gone": {
        "content": {
          "application/json": {
            "examples": {
              "Erro410Gone": {
                "$ref": "#/components/examples/Error410Gone"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for gone.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Error412DatabaseAlreadyExists": {
        "content": {
          "application/json": {
            "examples": {
              "Error412DatabaseAlreadyExists": {
                "$ref": "#/components/examples/Error412DatabaseAlreadyExists"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for precondition failed.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Error413AttachmentTooLarge": {
        "content": {
          "application/json": {
            "examples": {
              "Error413AttachmentTooLarge": {
                "$ref": "#/components/examples/Error413AttachmentTooLarge"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for payload too large.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Error413DocumentTooLarge": {
        "content": {
          "application/json": {
            "examples": {
              "Error413DocumentTooLarge": {
                "$ref": "#/components/examples/Error413DocumentTooLarge"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for payload too large.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Error413TooLarge": {
        "content": {
          "application/json": {
            "examples": {
              "Error413TooLarge": {
                "$ref": "#/components/examples/Error413TooLarge"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for payload too large.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Error415UnsupportedMediaType": {
        "content": {
          "application/json": {
            "examples": {
              "Error415UnsupportedMediaType": {
                "$ref": "#/components/examples/Error415UnsupportedMediaType"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for unsupported media type.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Error416RangeNotSatisfiable": {
        "content": {
          "application/json": {
            "examples": {
              "Error416RangeNotSatisfiable": {
                "$ref": "#/components/examples/Error416RangeNotSatisfiable"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for range not satisfiable.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Error429TooManyRequests": {
        "content": {
          "application/json": {
            "examples": {
              "Error429TooManyRequests": {
                "$ref": "#/components/examples/Error429TooManyRequests"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for too many requests.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Error500UnknownError": {
        "content": {
          "application/json": {
            "examples": {
              "Error500UnknownError": {
                "$ref": "#/components/examples/Error500UnknownError"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for internal server error.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Error502BadGateway": {
        "content": {
          "application/json": {
            "examples": {
              "Error502BadGateway": {
                "$ref": "#/components/examples/Error502BadGateway"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for bad gateway.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Error503ServiceUnavailable": {
        "content": {
          "application/json": {
            "examples": {
              "Error503ServiceUnavailable": {
                "$ref": "#/components/examples/Error503ServiceUnavailable"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for service unavailable.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Error504GatewayTimeout": {
        "content": {
          "application/json": {
            "examples": {
              "Error504GatewayTimeout": {
                "$ref": "#/components/examples/Error504GatewayTimeout"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "HTTP error for gateway timeout.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Error507InsufficientStorage": {
        "content": {
          "application/json": {
            "examples": {
              "Error507InsufficientStorage": {
                "$ref": "#/components/examples/Error507InsufficientStorage"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        },
        "description": "There is insufficient storage space to complete the request.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "ExplainResult": {
        "content": {
          "application/json": {
            "examples": {
              "ExplainResult": {
                "$ref": "#/components/examples/ExplainResult"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/ExplainResult"
            }
          }
        },
        "description": "HTTP response for postExplain.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "FindResult": {
        "content": {
          "application/json": {
            "examples": {
              "FindResult": {
                "$ref": "#/components/examples/FindResult"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/FindResult"
            }
          }
        },
        "description": "HTTP response for postFind.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Transfer-Encoding": {
            "$ref": "#/components/headers/TransferEncoding"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "FindResultPartition": {
        "content": {
          "application/json": {
            "examples": {
              "FindResultPartition": {
                "$ref": "#/components/examples/FindResultPartition"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/FindResult"
            }
          }
        },
        "description": "HTTP response for postPartitionFind.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Transfer-Encoding": {
            "$ref": "#/components/headers/TransferEncoding"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "IamSessionInformation": {
        "content": {
          "application/json": {
            "examples": {
              "IamSessionInformation": {
                "$ref": "#/components/examples/IamSessionInformation"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/IamSessionInformation"
            }
          }
        },
        "description": "HTTP response for getIamSessionInformation.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "IamSessionResult": {
        "content": {
          "application/json": {
            "examples": {
              "IamSessionResult": {
                "$ref": "#/components/examples/Ok"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Ok"
            }
          }
        },
        "description": "HTTP response for postIamSession.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "IndexResult": {
        "content": {
          "application/json": {
            "examples": {
              "IndexResult": {
                "$ref": "#/components/examples/IndexResult"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/IndexResult"
            }
          }
        },
        "description": "HTTP response for postIndex.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "IndexesInformation": {
        "content": {
          "application/json": {
            "examples": {
              "IndexInformation": {
                "$ref": "#/components/examples/IndexesInformation"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/IndexesInformation"
            }
          }
        },
        "description": "HTTP response for `/{db}/_index` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "IndexesInformationHead": {
        "description": "HTTP response for `/{db}/_index` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "MembershipInformation": {
        "content": {
          "application/json": {
            "examples": {
              "MembershipInformation": {
                "$ref": "#/components/examples/MembershipInformation"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/MembershipInformation"
            }
          }
        },
        "description": "HTTP response for `/_membership` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "MembershipInformationHead": {
        "description": "HTTP response for `/_membership` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "MissingRevsResult": {
        "content": {
          "application/json": {
            "examples": {
              "MissingRevsResult": {
                "$ref": "#/components/examples/MissingRevsResult"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/MissingRevsResult"
            }
          }
        },
        "description": "HTTP response for postMissingRevs.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "NodeStatsInformation": {
        "content": {
          "application/json": {
            "examples": {
              "NodeStats": {
                "$ref": "#/components/examples/NodeStatsInformation"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/NodeStatsInformation"
            }
          }
        },
        "description": "HTTP response for `/_node/{node_name}/_stats` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "NodeStatsInformationHead": {
        "description": "HTTP response for `/_node/{node_name}/_stats` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "NodeSystemInformation": {
        "content": {
          "application/json": {
            "examples": {
              "NodeSystem": {
                "$ref": "#/components/examples/NodeSystemInformation"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/NodeSystemInformation"
            }
          }
        },
        "description": "HTTP response for `/_node/{node_name}/_system` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "NodeSystemInformationHead": {
        "description": "HTTP response for `/_node/{node_name}/_system` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "NotModified": {
        "description": "HTTP response for not modified client redirect.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "ETag": {
            "$ref": "#/components/headers/ETag"
          },
          "Location": {
            "$ref": "#/components/headers/Location"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Ok": {
        "content": {
          "application/json": {
            "examples": {
              "OkTrue": {
                "$ref": "#/components/examples/Ok"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Ok"
            }
          }
        },
        "description": "HTTP response for Ok operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "PartitionInformation": {
        "content": {
          "application/json": {
            "examples": {
              "PartitionInformation": {
                "$ref": "#/components/examples/PartitionInformation"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/PartitionInformation"
            }
          }
        },
        "description": "HTTP response for `/{db}/_partition/{partition_key}` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "PartitionInformationHead": {
        "description": "HTTP response for `/{db}/_partition/{partition_key}` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "ReplicationDocument": {
        "content": {
          "application/json": {
            "examples": {
              "ReplicationDocument": {
                "$ref": "#/components/examples/ReplicationDocument"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/ReplicationDocument"
            }
          }
        },
        "description": "HTTP response for ReplicationDocument.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "ETag": {
            "$ref": "#/components/headers/ETag"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "ReplicationDocumentHead": {
        "description": "HTTP response for ReplicationDocument.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "ETag": {
            "$ref": "#/components/headers/ETag"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "ReplicationInformation": {
        "content": {
          "application/json": {
            "examples": {
              "ReplicationInformation": {
                "$ref": "#/components/examples/ReplicationInformation"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/ReplicationInformation"
            }
          }
        },
        "description": "HTTP response for postReplicate.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "ReplicationResult": {
        "content": {
          "application/json": {
            "examples": {
              "ReplicationResult": {
                "$ref": "#/components/examples/ReplicationResult"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/ReplicationResult"
            }
          }
        },
        "description": "HTTP response for postReplicate.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "ReshardInformation": {
        "content": {
          "application/json": {
            "examples": {
              "ReshardInformation": {
                "$ref": "#/components/examples/ReshardInformation"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/ReshardInformation"
            }
          }
        },
        "description": "HTTP response for `/_reshard` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "ReshardInformationHead": {
        "description": "HTTP response for `/_reshard` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "ReshardJobInformation": {
        "content": {
          "application/json": {
            "examples": {
              "ReshardJobInformation": {
                "$ref": "#/components/examples/ReshardJobInformation"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/ReshardJobInformation"
            }
          }
        },
        "description": "HTTP response for `/_reshard/jobs/{reshard_job_id}` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "ReshardJobInformationHead": {
        "description": "HTTP response for `/_reshard/jobs/{reshard_job_id}` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "ReshardJobsInformation": {
        "content": {
          "application/json": {
            "examples": {
              "ReshardJobsInformation": {
                "$ref": "#/components/examples/ReshardJobsInformation"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/ReshardJobsInformation"
            }
          }
        },
        "description": "HTTP response for `/_reshard/jobs` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "ReshardJobsInformationHead": {
        "description": "HTTP response for `/_reshard/jobs` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "ReshardJobsResult": {
        "content": {
          "application/json": {
            "examples": {
              "ReshardJobsResult": {
                "$ref": "#/components/examples/ReshardJobsResult"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/ReshardJobsResult"
            }
          }
        },
        "description": "HTTP response for postReshardJobsConfiguration.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "ReshardState": {
        "content": {
          "application/json": {
            "examples": {
              "ReshardStateCluster": {
                "$ref": "#/components/examples/ReshardStateCluster"
              },
              "ReshardStateJob": {
                "$ref": "#/components/examples/ReshardStateJob"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/ReshardState"
            }
          }
        },
        "description": "HTTP response for `/_reshard/state` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "ReshardStateHead": {
        "description": "HTTP response for `/_reshard/state` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "RevsDiffResult": {
        "content": {
          "application/json": {
            "examples": {
              "RevsDiffResult": {
                "$ref": "#/components/examples/RevsDiffResult"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/RevsDiffResult"
            }
          }
        },
        "description": "HTTP response for postRevsDiff.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "RevsLimit": {
        "content": {
          "application/json": {
            "examples": {
              "RevsLimit": {
                "$ref": "#/components/examples/RevsLimit"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/RevsLimit"
            }
          }
        },
        "description": "HTTP response for `/{db}/_revs_limit` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "RevsLimitHead": {
        "description": "HTTP response for `/{db}/_revs_limit` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "SchedulerDocsResult": {
        "content": {
          "application/json": {
            "examples": {
              "SchedulerDocsResult": {
                "$ref": "#/components/examples/SchedulerDocsResult"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/SchedulerDocsResult"
            }
          }
        },
        "description": "HTTP response for `/_scheduler/docs` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "SchedulerDocsResultHead": {
        "description": "HTTP response for `/_scheduler/docs` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "SchedulerDocument": {
        "content": {
          "application/json": {
            "examples": {
              "SchedulerDocResult": {
                "$ref": "#/components/examples/SchedulerDocument"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/SchedulerDocument"
            }
          }
        },
        "description": "HTTP response for `/_scheduler/docs/_replicator/{doc_id}` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "SchedulerDocumentHead": {
        "description": "HTTP response for `/_scheduler/docs/_replicator/{doc_id}` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "SchedulerJob": {
        "content": {
          "application/json": {
            "examples": {
              "SchedulerDocResult": {
                "$ref": "#/components/examples/SchedulerJob"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/SchedulerJob"
            }
          }
        },
        "description": "HTTP response for SchedulerJob.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "SchedulerJobHead": {
        "description": "HTTP response for SchedulerJob.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "SchedulerJobsResult": {
        "content": {
          "application/json": {
            "examples": {
              "SchedulerJobsResult": {
                "$ref": "#/components/examples/SchedulerJobsResult"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/SchedulerJobsResult"
            }
          }
        },
        "description": "HTTP response for `/_scheduler/jobs` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "SchedulerJobsResultHead": {
        "description": "HTTP response for `/_scheduler/jobs` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "SearchAnalyzeResult": {
        "content": {
          "application/json": {
            "examples": {
              "SearchAnalyzeResult": {
                "$ref": "#/components/examples/SearchAnalyzeResult"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/SearchAnalyzeResult"
            }
          }
        },
        "description": "HTTP response for postSearchAnalyzer.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "SearchAnalyzeResultHead": {
        "description": "HTTP response for search analyze operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "SearchDiskSizeInformation": {
        "content": {
          "application/json": {
            "examples": {
              "SearchDiskSizeInformation": {
                "$ref": "#/components/examples/SearchDiskSizeInformation"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/SearchDiskSizeInformation"
            }
          }
        },
        "description": "HTTP response for search disk size operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "SearchDiskSizeInformationHead": {
        "description": "HTTP response for search disk size operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "SearchInfoResult": {
        "content": {
          "application/json": {
            "examples": {
              "SearchInfoResult": {
                "$ref": "#/components/examples/SearchInfoResult"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/SearchInfoResult"
            }
          }
        },
        "description": "HTTP response for search index info operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "SearchInfoResultHead": {
        "description": "HTTP response for search index info operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "SearchResult": {
        "content": {
          "application/json": {
            "examples": {
              "SearchResult": {
                "$ref": "#/components/examples/SearchResult"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/SearchResult"
            }
          }
        },
        "description": "HTTP response for search operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "SearchResultHead": {
        "description": "HTTP response for search operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "SearchResultPartition": {
        "content": {
          "application/json": {
            "examples": {
              "SearchResultPartition": {
                "$ref": "#/components/examples/SearchResultPartition"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/SearchResult"
            }
          }
        },
        "description": "HTTP response for search operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "Security": {
        "content": {
          "application/json": {
            "examples": {
              "Security": {
                "$ref": "#/components/examples/SecurityResult"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/Security"
            }
          }
        },
        "description": "HTTP response for security information.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Transfer-Encoding": {
            "$ref": "#/components/headers/TransferEncoding"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "SecurityHead": {
        "description": "HTTP response for `/{db}/_security` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "ServerInformation": {
        "content": {
          "application/json": {
            "examples": {
              "ServerInformation": {
                "$ref": "#/components/examples/ServerInformation"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/ServerInformation"
            }
          }
        },
        "description": "HTTP response for `/` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "ServerInformationHead": {
        "description": "HTTP response for `/` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "SessionInformation": {
        "content": {
          "application/json": {
            "examples": {
              "SessionInformation": {
                "$ref": "#/components/examples/SessionInformation"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/SessionInformation"
            }
          }
        },
        "description": "HTTP response for `/_session` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "SessionInformationHead": {
        "description": "HTTP response for `/_session` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "SessionResult": {
        "content": {
          "application/json": {
            "examples": {
              "SessionResult": {
                "$ref": "#/components/examples/SessionResult"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/SessionResult"
            }
          }
        },
        "description": "HTTP response for postSession.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Set-Cookie": {
            "$ref": "#/components/headers/SetCookie"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "ShardsInformation": {
        "content": {
          "application/json": {
            "examples": {
              "ShardsInformation": {
                "$ref": "#/components/examples/ShardsInformation"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/ShardsInformation"
            }
          }
        },
        "description": "HTTP response for `/{db}/_shards` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "ShardsInformationHead": {
        "description": "HTTP response for `/{db}/_shards` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "UpInformation": {
        "content": {
          "application/json": {
            "examples": {
              "UpInformationOk": {
                "$ref": "#/components/examples/UpInformationOk"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/UpInformation"
            }
          }
        },
        "description": "HTTP response for `/_up` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "UpInformationHead": {
        "description": "HTTP response for `/_up` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "UsageDataVolume": {
        "content": {
          "application/json": {
            "examples": {
              "UsageDataVolume": {
                "$ref": "#/components/examples/UsageDataVolume"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/UsageDataVolume"
            }
          }
        },
        "description": "HTTP response for getUsageDataVolume.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "UserInformation": {
        "content": {
          "application/json": {
            "examples": {
              "UserInformation": {
                "$ref": "#/components/examples/UserInformation"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/UserInformation"
            }
          }
        },
        "description": "HTTP response for getUserInformation.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "UserPlan": {
        "content": {
          "application/json": {
            "examples": {
              "UserPlan": {
                "$ref": "#/components/examples/UserPlan"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/UserPlan"
            }
          }
        },
        "description": "HTTP response for putUserPlan.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "UuidsResult": {
        "content": {
          "application/json": {
            "examples": {
              "UuidsResult": {
                "$ref": "#/components/examples/UuidsResult"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/UuidsResult"
            }
          }
        },
        "description": "HTTP response for `/_uuids` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "ETag": {
            "$ref": "#/components/headers/ETag"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "UuidsResultHead": {
        "description": "HTTP response for `/_uuids` style operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "ETag": {
            "$ref": "#/components/headers/ETag"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "ViewQueriesResult": {
        "content": {
          "application/json": {
            "examples": {
              "ViewQueriesResult": {
                "$ref": "#/components/examples/ViewQueriesResult"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/ViewQueriesResult"
            }
          }
        },
        "description": "HTTP response for postViewQueries.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Transfer-Encoding": {
            "$ref": "#/components/headers/TransferEncoding"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "ViewResult": {
        "content": {
          "application/json": {
            "examples": {
              "ViewResult": {
                "$ref": "#/components/examples/ViewResult"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/ViewResult"
            }
          }
        },
        "description": "HTTP response for view operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Transfer-Encoding": {
            "$ref": "#/components/headers/TransferEncoding"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "ViewResultHead": {
        "description": "HTTP response for view operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Content-Length": {
            "$ref": "#/components/headers/ContentLength"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      },
      "ViewResultPartition": {
        "content": {
          "application/json": {
            "examples": {
              "ViewResultPartition": {
                "$ref": "#/components/examples/ViewResultPartition"
              }
            },
            "schema": {
              "$ref": "#/components/schemas/ViewResult"
            }
          }
        },
        "description": "HTTP response for view operations.",
        "headers": {
          "Cache-Control": {
            "$ref": "#/components/headers/CacheControl"
          },
          "Content-Encoding": {
            "$ref": "#/components/headers/ContentEncoding"
          },
          "Date": {
            "$ref": "#/components/headers/Date"
          },
          "Server": {
            "$ref": "#/components/headers/Server"
          },
          "Transfer-Encoding": {
            "$ref": "#/components/headers/TransferEncoding"
          },
          "Via": {
            "$ref": "#/components/headers/Via"
          },
          "X-Cloudant-Action": {
            "$ref": "#/components/headers/XCloudantAction"
          },
          "X-Cloudant-Backend": {
            "$ref": "#/components/headers/XCloudantBackend"
          },
          "X-Cloudant-Request-Class": {
            "$ref": "#/components/headers/XCloudantRequestClass"
          },
          "X-Request-ID": {
            "$ref": "#/components/headers/XRequestId"
          }
        }
      }
    },
    "schemas": {
      "ActiveTask": {
        "additionalProperties": false,
        "description": "Schema for information about a running task.",
        "properties": {
          "bulk_get_attempts": {
            "description": "The total count of attempted doc revisions fetched with `_bulk_get`. Available for `replication` type tasks.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "bulk_get_docs": {
            "description": "The total count of successful docs fetched with `_bulk_get`. Available for `replication` type tasks.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "changes_done": {
            "description": "Processed changes. Available for `database_compaction`, `indexer`, `search_indexer`, `view_compaction` type tasks.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "changes_pending": {
            "description": "The count of changes not yet replicated. Available for `replication` type tasks.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "checkpoint_interval": {
            "default": 30000,
            "description": "Specifies the checkpoint interval in ms. Available for `replication` type tasks.",
            "format": "int64",
            "maximum": 2147483647,
            "minimum": 0,
            "type": "integer"
          },
          "checkpointed_source_seq": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Sequence"
              },
              {
                "description": "The source sequence id which was last successfully replicated. Available for `replication` type tasks."
              }
            ]
          },
          "continuous": {
            "default": false,
            "description": "The replication configured to be continuous. Available for `replication` type tasks.",
            "type": "boolean"
          },
          "database": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DatabaseName"
              },
              {
                "description": "Source database."
              }
            ]
          },
          "design_document": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DesignDocumentId"
              },
              {
                "description": "The design document that belongs to this task. Available for `indexer`, `search_indexer`, `view_compaction` type tasks."
              }
            ]
          },
          "doc_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DocumentId"
              },
              {
                "description": "Replication document ID. Available for `replication` type tasks."
              }
            ]
          },
          "doc_write_failures": {
            "description": "Number of document write failures. Available for `replication` type tasks.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "docs_read": {
            "description": "Number of documents read. Available for `replication` type tasks.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "docs_written": {
            "description": "Number of documents written to target. Available for `replication` type tasks.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "index": {
            "allOf": [
              {
                "$ref": "#/components/schemas/IndexName"
              },
              {
                "description": "The search index that belongs to this task. Available for `search_indexer` type tasks."
              }
            ]
          },
          "indexer_pid": {
            "description": "Indexer process ID. Available for `indexer` type tasks.",
            "maxLength": 34,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "missing_revisions_found": {
            "description": "The count of docs which have been read from the source. Available for `replication` type tasks.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "node": {
            "description": "Cluster node where the task is running.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "phase": {
            "description": "The phase the active task is in. `docid_sort`, `docid_copy`, `document_copy` phases are available for `database_compaction`, while `ids` and `view` phases are available for `view_compaction` type tasks.",
            "enum": [
              "docid_sort",
              "docid_copy",
              "document_copy",
              "ids",
              "view"
            ],
            "type": "string"
          },
          "pid": {
            "description": "Process ID.",
            "maxLength": 34,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "process_status": {
            "description": "Process status.",
            "enum": [
              "exiting",
              "garbage_collecting",
              "runnable",
              "running",
              "suspended",
              "waiting"
            ],
            "type": "string"
          },
          "progress": {
            "description": "Current percentage progress. Available for `database_compaction`, `indexer`, `search_indexer`, `view_compaction` type tasks.",
            "format": "int64",
            "maximum": 100,
            "minimum": 0,
            "type": "integer"
          },
          "replication_id": {
            "description": "Replication ID. Available for `replication` type tasks.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "retry": {
            "description": "Indicates whether a compaction retry is currently running on the database. Available for `database_compaction` type tasks.",
            "type": "boolean"
          },
          "revisions_checked": {
            "description": "The count of revisions which have been checked since this replication began. Available for `replication` type tasks.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "source": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DatabaseUrl"
              },
              {
                "description": "Replication source. Available for `replication` type tasks."
              }
            ]
          },
          "source_seq": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Sequence"
              },
              {
                "description": "The last sequence number obtained from the source database changes feed. Available for `replication` type tasks."
              }
            ]
          },
          "started_on": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "target": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DatabaseUrl"
              },
              {
                "description": "Replication target. Available for `replication` type tasks."
              }
            ]
          },
          "through_seq": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Sequence"
              },
              {
                "description": "The last sequence number processed by the replicator. Available for `replication` type tasks."
              }
            ]
          },
          "total_changes": {
            "description": "Total changes to process. Available for `database_compaction`, `indexer`, `search_indexer`, `view_compaction` type tasks.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "type": {
            "description": "Operation type.",
            "enum": [
              "database_compaction",
              "indexer",
              "replication",
              "search_indexer",
              "view_compaction"
            ],
            "type": "string"
          },
          "updated_on": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "user": {
            "$ref": "#/components/schemas/UsernameNullable"
          },
          "view": {
            "description": "Number of view indexes. Available for `view_compaction` type tasks.",
            "format": "int64",
            "maximum": 4294967295,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "database",
          "node",
          "pid",
          "started_on",
          "type",
          "updated_on"
        ],
        "type": "object"
      },
      "ActiveTasks": {
        "description": "Schema for a list of ActiveTask elements.",
        "items": {
          "$ref": "#/components/schemas/ActiveTask"
        },
        "maxItems": 4294967295,
        "minItems": 0,
        "type": "array"
      },
      "ActivityTrackerEvents": {
        "additionalProperties": false,
        "description": "Schema for activity tracking events.",
        "properties": {
          "types": {
            "description": "An array of event types sent to IBM Cloud Activity Tracker Event Routing for the IBM Cloudant instance. \"management\" is a required element of this array.",
            "items": {
              "enum": [
                "management",
                "data"
              ],
              "type": "string"
            },
            "maxItems": 2,
            "minItems": 1,
            "type": "array",
            "uniqueItems": true,
            "x-cli-description": "An array of event types sent to IBM Cloud Activity Tracker Event Routing for the IBM Cloudant instance. \"management\" is a required element of this array."
          }
        },
        "required": [
          "types"
        ],
        "x-terraform-datasource-name": "cloudant_activity_tracker_events",
        "x-terraform-resource-id": "types",
        "x-terraform-resource-name": "cloudant_activity_tracker_events",
        "x-terraform-resource-operations": {
          "create": "postActivityTrackerEvents",
          "delete": "postActivityTrackerEvents",
          "read": "getActivityTrackerEvents"
        }
      },
      "AllDbs": {
        "description": "Schema for a list of database names.",
        "items": {
          "$ref": "#/components/schemas/DatabaseName"
        },
        "maxItems": 200,
        "minItems": 0,
        "type": "array"
      },
      "AllDocsQueriesQuery": {
        "additionalProperties": false,
        "description": "Schema for an all documents queries operation.",
        "properties": {
          "queries": {
            "description": "An array of query objects with fields for the parameters of each individual view query to be executed. The field names and their meaning are the same as the query parameters of a regular `/_all_docs` request.",
            "items": {
              "$ref": "#/components/schemas/AllDocsQuery"
            },
            "maxItems": 65535,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "queries"
        ],
        "type": "object"
      },
      "AllDocsQueriesResult": {
        "additionalProperties": false,
        "description": "Schema for the result of an all documents queries operation.",
        "properties": {
          "results": {
            "description": "An array of result objects - one for each query. Each result object contains the same fields as the response to a regular `/_all_docs` request.",
            "items": {
              "$ref": "#/components/schemas/AllDocsResult"
            },
            "maxItems": 65535,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "results"
        ],
        "type": "object"
      },
      "AllDocsQuery": {
        "additionalProperties": false,
        "allOf": [
          {
            "$ref": "#/components/schemas/CommonViewQuery"
          },
          {
            "additionalProperties": false,
            "description": "Schema for an all documents query operation.",
            "properties": {
              "end_key": {
                "$ref": "#/components/schemas/DocumentId"
              },
              "key": {
                "$ref": "#/components/schemas/DocumentId"
              },
              "keys": {
                "$ref": "#/components/schemas/DocumentIds"
              },
              "start_key": {
                "$ref": "#/components/schemas/DocumentId"
              }
            },
            "type": "object",
            "x-alias": {
              "end_key": "endkey",
              "start_key": "startkey"
            }
          }
        ],
        "description": "Schema for an all documents query operation.",
        "type": "object"
      },
      "AllDocsResult": {
        "additionalProperties": false,
        "allOf": [
          {
            "$ref": "#/components/schemas/DocsResult"
          },
          {
            "$ref": "#/components/schemas/CommonViewResultUpdateSeq"
          }
        ],
        "description": "Schema for the result of an all documents operation."
      },
      "Analyzer": {
        "additionalProperties": false,
        "description": "Schema for a full text search analyzer.",
        "properties": {
          "name": {
            "$ref": "#/components/schemas/AnalyzerName"
          },
          "stopwords": {
            "description": "Custom stopwords to use with the named analyzer where supported. Not used for `keyword`, `simple`, `whitespace`, `simple_asciifolding` or `perfield` analyzers. Ensure stopwords match the folded case for analyzers that perform folding.",
            "items": {
              "maxLength": 7168,
              "minLength": 1,
              "pattern": "^.+$",
              "type": "string"
            },
            "maxItems": 65535,
            "minItems": 0,
            "type": "array"
          }
        },
        "required": [
          "name"
        ],
        "type": "object"
      },
      "AnalyzerConfiguration": {
        "additionalProperties": false,
        "allOf": [
          {
            "$ref": "#/components/schemas/Analyzer"
          },
          {
            "additionalProperties": false,
            "properties": {
              "default": {
                "$ref": "#/components/schemas/Analyzer"
              },
              "fields": {
                "$ref": "#/components/schemas/AnalyzerFields"
              }
            },
            "type": "object"
          }
        ],
        "description": "Analyzer configuration for search indexes. The default and fields properties are only applicable for the `perfield` analyzer name."
      },
      "AnalyzerFields": {
        "additionalProperties": {
          "$ref": "#/components/schemas/Analyzer"
        },
        "description": "Schema for mapping a field name to a per field analyzer.",
        "type": "object"
      },
      "AnalyzerName": {
        "description": "Schema for the name of the Apache Lucene analyzer to use for text indexing. The default value varies depending on the analyzer usage:\n* For search indexes the default is `standard`\n* For query text indexes the default is `keyword`\n* For a query text index default_field the default is `standard`",
        "enum": [
          "classic",
          "email",
          "keyword",
          "perfield",
          "simple",
          "simple_asciifolding",
          "standard",
          "whitespace",
          "arabic",
          "armenian",
          "basque",
          "brazilian",
          "bulgarian",
          "catalan",
          "chinese",
          "cjk",
          "czech",
          "danish",
          "dutch",
          "english",
          "finnish",
          "french",
          "galician",
          "german",
          "greek",
          "hindi",
          "hungarian",
          "indonesian",
          "irish",
          "italian",
          "japanese",
          "latvian",
          "norwegian",
          "persian",
          "polish",
          "portuguese",
          "romanian",
          "russian",
          "spanish",
          "swedish",
          "thai",
          "turkish"
        ],
        "type": "string"
      },
      "AnyJsonType": {
        "description": "Schema for any JSON type",
        "nullable": true
      },
      "ApiKeysResult": {
        "additionalProperties": false,
        "allOf": [
          {
            "$ref": "#/components/schemas/Ok"
          },
          {
            "additionalProperties": false,
            "properties": {
              "key": {
                "description": "The generated api key.",
                "maxLength": 44,
                "minLength": 1,
                "pattern": "^[A-Za-z0-9_-]{2,}$",
                "type": "string"
              },
              "password": {
                "description": "The password associated with the api key.",
                "maxLength": 7168,
                "minLength": 40,
                "pattern": "^[\\da-f]+$",
                "type": "string"
              }
            }
          }
        ],
        "description": "Schema for api keys.",
        "required": [
          "key",
          "ok",
          "password"
        ],
        "type": "object"
      },
      "Attachment": {
        "additionalProperties": false,
        "description": "Schema for an attachment.",
        "properties": {
          "content_type": {
            "description": "Attachment MIME type.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+\\/.+(?:;.+=.+)*$",
            "type": "string"
          },
          "data": {
            "description": "Base64-encoded content. Available when requested with `attachments=true` or `atts_since`. When retrieving attachments for a single document this field is only avialable when accepting an application/json response. For multipart responses each attachment is instead included in a separate part of the response (see `follows`).\n\nNote that SDK deserialization of documents with included attachments automatically decodes the Base64 encoded attachment content string to bytes.",
            "format": "byte",
            "maxLength": 13981014,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9+\\/]{2,}={0,3}$",
            "type": "string"
          },
          "digest": {
            "description": "Content hash digest. It starts with prefix declaring the hash type, `md5-` for example, and continues with the Base64-encoded hash digest.",
            "maxLength": 7168,
            "minLength": 28,
            "pattern": "^[\\w\\d]+-[A-Za-z0-9+\\/]{2,}={0,3}$",
            "type": "string"
          },
          "encoded_length": {
            "description": "Compressed attachment size in bytes. Available for compressed attachments when requested with `att_encoding_info`. The database compresses attachments if the content_type is in the list of compressible types when added.",
            "format": "int64",
            "maximum": 10485760,
            "minimum": 0,
            "type": "integer"
          },
          "encoding": {
            "description": "Compression codec. Available for compressed attachments when requested with `att_encoding_info`. The database compresses attachments if the content_type is in the list of compressible types when added.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "follows": {
            "description": "True if the attachment follows in a multipart request or response.",
            "type": "boolean"
          },
          "length": {
            "description": "Real attachment size in bytes. Not available if inline attachment content requested.",
            "format": "int64",
            "maximum": 10485760,
            "minimum": 0,
            "type": "integer"
          },
          "revpos": {
            "description": "Revision number at attachment addition.",
            "format": "int64",
            "maximum": 4294967295,
            "minimum": 1,
            "type": "integer"
          },
          "stub": {
            "description": "Has `true` value if object has stub attachment metadata, but not attachment content. Otherwise omitted in response.",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "AttachmentContent": {
        "description": "Schema for the data in an attachment.",
        "format": "binary",
        "maxLength": 10485760,
        "minLength": 0,
        "pattern": "^(?:.|\\r?\\n)*$",
        "type": "string"
      },
      "Attachments": {
        "additionalProperties": {
          "$ref": "#/components/schemas/Attachment"
        },
        "description": "Schema for a map of attachment name to attachment metadata.",
        "type": "object"
      },
      "Bookmark": {
        "description": "Opaque bookmark token used when paginating results.",
        "maxLength": 7168,
        "minLength": 3,
        "pattern": "^[A-Za-z0-9=_-]*$",
        "type": "string"
      },
      "BulkDocs": {
        "additionalProperties": false,
        "description": "Schema for submitting documents for bulk modifications.",
        "properties": {
          "docs": {
            "description": "Array of documents",
            "items": {
              "$ref": "#/components/schemas/Document"
            },
            "maxItems": 65535,
            "minItems": 0,
            "type": "array"
          },
          "new_edits": {
            "default": true,
            "description": "If `false`, prevents the database from assigning them new\nrevision IDs. Default is `true`.\n\nAvoid using this parameter, since this option applies document\nrevisions without checking for conflicts, so it is very easy to\naccidentally end up with a large number of conflicts.",
            "type": "boolean"
          }
        },
        "required": [
          "docs"
        ],
        "type": "object"
      },
      "BulkDocsResult": {
        "description": "Schema for a list of response statuses for each document in a bulk documents operation.",
        "items": {
          "$ref": "#/components/schemas/DocumentResult"
        },
        "maxItems": 65535,
        "minItems": 0,
        "type": "array"
      },
      "BulkGetQuery": {
        "additionalProperties": false,
        "description": "Schema for requesting information about multiple documents.",
        "properties": {
          "docs": {
            "description": "List of document items to get in bulk.",
            "items": {
              "$ref": "#/components/schemas/BulkGetQueryDocument"
            },
            "maxItems": 65535,
            "minItems": 0,
            "type": "array"
          }
        },
        "required": [
          "docs"
        ],
        "type": "object"
      },
      "BulkGetQueryDocument": {
        "additionalProperties": false,
        "description": "Schema for a document item in a bulk get query.",
        "properties": {
          "atts_since": {
            "description": "Includes attachments only since specified revisions.",
            "example": [
              "1-99b02e08da151943c2dcb40090160bb8"
            ],
            "items": {
              "$ref": "#/components/schemas/DocumentRevisionIdentifier"
            },
            "maxItems": 4294967295,
            "minItems": 0,
            "type": "array"
          },
          "id": {
            "$ref": "#/components/schemas/DocumentId"
          },
          "rev": {
            "$ref": "#/components/schemas/DocumentRevisionIdentifier"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "BulkGetResult": {
        "additionalProperties": false,
        "description": "Schema for the results object of a bulk get operation.",
        "properties": {
          "results": {
            "description": "Results",
            "items": {
              "$ref": "#/components/schemas/BulkGetResultItem"
            },
            "maxItems": 4294967295,
            "minItems": 0,
            "type": "array"
          }
        },
        "required": [
          "results"
        ],
        "type": "object"
      },
      "BulkGetResultDocument": {
        "additionalProperties": false,
        "description": "Schema for BulkGetResult object containing a successfully retrieved document or error information.",
        "properties": {
          "error": {
            "$ref": "#/components/schemas/DocumentResult"
          },
          "ok": {
            "$ref": "#/components/schemas/Document"
          }
        },
        "type": "object"
      },
      "BulkGetResultItem": {
        "additionalProperties": false,
        "description": "Schema for the document revisions information from a bulk get operation.",
        "properties": {
          "docs": {
            "description": "Array of document revisions or error information",
            "items": {
              "$ref": "#/components/schemas/BulkGetResultDocument"
            },
            "maxItems": 4294967295,
            "minItems": 1,
            "type": "array"
          },
          "id": {
            "$ref": "#/components/schemas/DocumentId"
          }
        },
        "required": [
          "docs",
          "id"
        ],
        "type": "object"
      },
      "BulkGetResultMultipart": {
        "additionalProperties": false,
        "description": "Schema for a multipart bulk get result.",
        "properties": {
          "results": {
            "description": "Schema for results of a multipart bulk get.",
            "items": {
              "$ref": "#/components/schemas/BulkGetResultMultipartItem"
            },
            "maxItems": 4294967295,
            "minItems": 0,
            "type": "array"
          }
        },
        "required": [
          "results"
        ],
        "type": "object"
      },
      "BulkGetResultMultipartItem": {
        "additionalProperties": false,
        "description": "Schema for multipart bulk get items. It can be either a multipart document response or an error document result.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/DocumentMultipart"
          },
          {
            "$ref": "#/components/schemas/DocumentResult"
          }
        ]
      },
      "CapacityDatabasesInformation": {
        "additionalProperties": false,
        "description": "Schema for information about maximum total database count.",
        "properties": {
          "current": {
            "$ref": "#/components/schemas/CapacityDatabasesInformationCurrent"
          }
        },
        "type": "object"
      },
      "CapacityDatabasesInformationCurrent": {
        "additionalProperties": false,
        "description": "Schema for information about the current database capacity.",
        "properties": {
          "databases": {
            "$ref": "#/components/schemas/DatabasesCountInformation"
          }
        },
        "type": "object"
      },
      "CapacityThroughputConfiguration": {
        "additionalProperties": false,
        "description": "Schema for setting a throughput capacity.",
        "properties": {
          "blocks": {
            "$ref": "#/components/schemas/ThroughputBlocks"
          }
        },
        "required": [
          "blocks"
        ],
        "type": "object"
      },
      "CapacityThroughputInformation": {
        "additionalProperties": false,
        "description": "Schema for information about the currently provisioned and target throughput capacity.",
        "properties": {
          "current": {
            "$ref": "#/components/schemas/CapacityThroughputInformationCurrent"
          },
          "target": {
            "$ref": "#/components/schemas/CapacityThroughputInformationTarget"
          }
        },
        "required": [
          "current"
        ],
        "type": "object",
        "x-terraform-datasource-name": "cloudant_capacity_throughput",
        "x-terraform-resource-id": "current",
        "x-terraform-resource-name": "cloudant_capacity_throughput",
        "x-terraform-resource-operations": {
          "create": "putCapacityThroughputConfiguration",
          "delete": "putCapacityThroughputConfiguration",
          "read": "getCapacityThroughputInformation"
        }
      },
      "CapacityThroughputInformationCurrent": {
        "additionalProperties": false,
        "description": "Detailed information about provisioned throughput capacity.",
        "properties": {
          "throughput": {
            "$ref": "#/components/schemas/ThroughputInformation"
          }
        },
        "required": [
          "throughput"
        ],
        "type": "object"
      },
      "CapacityThroughputInformationTarget": {
        "additionalProperties": false,
        "description": "Detailed information about target throughput capacity.",
        "properties": {
          "throughput": {
            "$ref": "#/components/schemas/ThroughputInformation"
          }
        },
        "required": [
          "throughput"
        ],
        "type": "object",
        "x-terraform-exclude": true
      },
      "CcmDiagnostics": {
        "additionalProperties": false,
        "description": "Schema for CcmDiagnostics.",
        "properties": {
          "account": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Username"
              },
              {
                "description": "The account name for the authenticated user."
              }
            ]
          },
          "deny429History": {
            "$ref": "#/components/schemas/CcmDiagnosticsHistory"
          },
          "lookup": {
            "description": "Lookup count from HAProxy for the user.",
            "format": "int64",
            "maximum": 21689584840,
            "minimum": 0,
            "type": "integer"
          },
          "operationHistory": {
            "$ref": "#/components/schemas/CcmDiagnosticsHistory"
          },
          "query": {
            "description": "Query count from HAProxy for the user.",
            "format": "int64",
            "maximum": 21474836475,
            "minimum": 0,
            "type": "integer"
          },
          "ts": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "write": {
            "description": "Write count from HAProxy for the user.",
            "format": "int64",
            "maximum": 21474836475,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "deny429History",
          "operationHistory"
        ],
        "type": "object"
      },
      "CcmDiagnosticsDataPoint": {
        "additionalProperties": false,
        "description": "Schema for CcmDiagnosticsDataPoint.",
        "properties": {
          "lookup": {
            "description": "Lookup count from HAProxy for the user.",
            "format": "int64",
            "maximum": 4337916968,
            "minimum": 0,
            "type": "integer"
          },
          "query": {
            "description": "Query count from HAProxy for the user.",
            "format": "int64",
            "maximum": 4294967295,
            "minimum": 0,
            "type": "integer"
          },
          "ts": {
            "$ref": "#/components/schemas/Timestamp"
          },
          "write": {
            "description": "Write count from HAProxy for the user.",
            "format": "int64",
            "maximum": 4294967295,
            "minimum": 0,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "CcmDiagnosticsHistory": {
        "description": "Schema for a history of requests.",
        "items": {
          "$ref": "#/components/schemas/CcmDiagnosticsDataPoint"
        },
        "maxItems": 5,
        "minItems": 0,
        "type": "array"
      },
      "CcmDiagnosticsThroughputInformation": {
        "additionalProperties": false,
        "description": "Schema for CcmDiagnostics version of throughput information.",
        "properties": {
          "lookup": {
            "description": "Provisioned reads capacity in operations per second",
            "format": "int64",
            "maximum": 50000,
            "minimum": 0,
            "type": "integer"
          },
          "query": {
            "description": "Provisioned global queries capacity in operations per second",
            "format": "int64",
            "maximum": 2500,
            "minimum": 0,
            "type": "integer"
          },
          "write": {
            "description": "Provisioned writes capacity in operations per second",
            "format": "int64",
            "maximum": 25000,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "lookup",
          "query",
          "write"
        ],
        "type": "object"
      },
      "Change": {
        "additionalProperties": false,
        "description": "Schema for a document leaf with single field rev.",
        "properties": {
          "rev": {
            "$ref": "#/components/schemas/DocumentRevisionIdentifier"
          }
        },
        "required": [
          "rev"
        ],
        "type": "object"
      },
      "ChangesQuery": {
        "additionalProperties": false,
        "description": "Schema for filtering a list of document changes with built-in filter query. Use the property corresponding to the chosen built-in filter. Use `doc_ids` for `_doc_ids`. Use `selector` for `_selector`. Other filter values do not require any body content.",
        "properties": {
          "doc_ids": {
            "$ref": "#/components/schemas/DocumentIds"
          },
          "fields": {
            "$ref": "#/components/schemas/Fields"
          },
          "selector": {
            "$ref": "#/components/schemas/Selector"
          }
        },
        "type": "object"
      },
      "ChangesResult": {
        "additionalProperties": false,
        "description": "Schema for normal changes feed result.",
        "properties": {
          "last_seq": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Sequence"
              },
              {
                "description": "last_seq"
              }
            ]
          },
          "pending": {
            "description": "pending",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "results": {
            "description": "results",
            "items": {
              "$ref": "#/components/schemas/ChangesResultItem"
            },
            "maxItems": 4294967295,
            "minItems": 0,
            "type": "array"
          }
        },
        "required": [
          "last_seq",
          "pending",
          "results"
        ],
        "type": "object"
      },
      "ChangesResultItem": {
        "additionalProperties": false,
        "description": "Schema for an item in the changes results array.",
        "properties": {
          "changes": {
            "description": "List of document's leaves with single field rev.",
            "items": {
              "$ref": "#/components/schemas/Change"
            },
            "maxItems": 4294967295,
            "minItems": 1,
            "type": "array"
          },
          "deleted": {
            "description": "if `true` then the document is deleted.",
            "type": "boolean"
          },
          "doc": {
            "$ref": "#/components/schemas/Document"
          },
          "id": {
            "$ref": "#/components/schemas/DocumentId"
          },
          "seq": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Sequence"
              },
              {
                "description": "Update sequence."
              }
            ]
          }
        },
        "required": [
          "changes",
          "id",
          "seq"
        ],
        "type": "object"
      },
      "CloudantSecurityConfiguration": {
        "additionalProperties": false,
        "description": "Schema for a Cloudant security document.",
        "properties": {
          "admins": {
            "$ref": "#/components/schemas/SecurityObject"
          },
          "cloudant": {
            "$ref": "#/components/schemas/SecurityObjectCloudant"
          },
          "couchdb_auth_only": {
            "description": "Manage permissions using the `_users` database only.",
            "type": "boolean"
          },
          "members": {
            "$ref": "#/components/schemas/SecurityObject"
          }
        },
        "required": [
          "cloudant"
        ],
        "type": "object"
      },
      "CommonViewQuery": {
        "additionalProperties": false,
        "description": "Schema for elements common to all view-like requests.",
        "properties": {
          "att_encoding_info": {
            "default": false,
            "description": "Parameter to specify whether to include the encoding information for compressed attachments. This only applies when requesting documents in the response.",
            "type": "boolean"
          },
          "attachments": {
            "default": false,
            "description": "Parameter to specify whether to include attachment content in included document content or only the attachment metadata. This only applies when requesting documents in the response.",
            "type": "boolean"
          },
          "conflicts": {
            "default": false,
            "description": "Parameter to specify whether to include a list of conflicted revisions in each returned document. This only applies when requesting documents in the response.",
            "type": "boolean"
          },
          "descending": {
            "default": false,
            "description": "Parameter to specify whether to return the documents in descending by key order.",
            "type": "boolean"
          },
          "include_docs": {
            "default": false,
            "description": "Parameter to specify whether to include the full content of the documents in the response.",
            "type": "boolean"
          },
          "inclusive_end": {
            "default": true,
            "description": "Parameter to specify whether to include the specified end key in the result.",
            "type": "boolean"
          },
          "limit": {
            "description": "Parameter to specify the number of returned documents to limit the result to.",
            "format": "int64",
            "maximum": 4294967295,
            "minimum": 0,
            "type": "integer"
          },
          "skip": {
            "default": 0,
            "description": "Parameter to specify the number of records before starting to return the results.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "sorted": {
            "default": true,
            "deprecated": true,
            "description": "Query parameter to specify whether to sort the returned rows. Setting this to false offers a performance boost. The total_rows and offset fields are not available when false.",
            "type": "boolean",
            "x-sdk-exclude": true
          },
          "update_seq": {
            "default": false,
            "description": "Parameter to specify whether to include in the response an update_seq value indicating the sequence id of the database the view reflects.",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "CommonViewResult": {
        "additionalProperties": false,
        "description": "Schema for offset properties for view like structures.",
        "properties": {
          "offset": {
            "deprecated": true,
            "description": "Offset where the list started.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer",
            "x-sdk-exclude": true
          },
          "total_rows": {
            "allOf": [
              {
                "$ref": "#/components/schemas/TotalRows"
              },
              {
                "description": "Total number of rows in the view index. Note that if the request query narrows the view this is not the number of matching rows. The number of matching rows, up to the specified `limit`, is the size of the `rows` array."
              }
            ]
          }
        },
        "type": "object"
      },
      "CommonViewResultUpdateSeq": {
        "additionalProperties": false,
        "description": "Schema for update sequence for view like structures.",
        "properties": {
          "update_seq": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Sequence"
              },
              {
                "description": "Current update sequence for the database"
              }
            ]
          }
        },
        "type": "object"
      },
      "ContentInformationSizes": {
        "additionalProperties": false,
        "description": "Schema for size information of content.",
        "properties": {
          "active": {
            "description": "The active size of the content, in bytes.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "external": {
            "description": "The total uncompressed size of the content, in bytes.\n\nThis is the value used for IBM Cloudant storage billing.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "file": {
            "description": "The total size of the content as stored on disk, in bytes.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "active",
          "external",
          "file"
        ],
        "type": "object"
      },
      "CorsConfiguration": {
        "additionalProperties": false,
        "description": "Schema for a CORS configuration.",
        "properties": {
          "allow_credentials": {
            "default": true,
            "description": "Boolean value to allow authentication credentials. If set to true, browser requests must be done by using withCredentials = true.",
            "type": "boolean"
          },
          "enable_cors": {
            "default": true,
            "description": "Boolean value to turn CORS on and off.",
            "type": "boolean"
          },
          "origins": {
            "description": "An array of strings that contain allowed origin domains. You have to specify the full URL including the protocol. It is recommended that only the HTTPS protocol is used. Subdomains count as separate domains, so you have to specify all subdomains used.",
            "items": {
              "maxLength": 7168,
              "minLength": 1,
              "pattern": "^http(s)?:\\/\\/.*$",
              "type": "string"
            },
            "maxItems": 65535,
            "minItems": 0,
            "type": "array"
          }
        },
        "required": [
          "origins"
        ],
        "type": "object",
        "x-terraform-resource-id": "enable_cors",
        "x-terraform-resource-name": "cloudant_cors",
        "x-terraform-resource-operations": {
          "create": "putCorsConfiguration",
          "delete": "putCorsConfiguration",
          "read": "getCorsInformation"
        }
      },
      "CorsInformation": {
        "additionalProperties": false,
        "allOf": [
          {
            "$ref": "#/components/schemas/CorsConfiguration"
          }
        ],
        "description": "Schema for information about the CORS configuration.",
        "required": [
          "allow_credentials",
          "enable_cors"
        ],
        "x-terraform-datasource-name": "cloudant_cors"
      },
      "CurrentDatabasesInformation": {
        "additionalProperties": false,
        "description": "Schema for information about the current database counts.",
        "properties": {
          "databases": {
            "$ref": "#/components/schemas/DatabasesCountInformation"
          }
        },
        "type": "object"
      },
      "CurrentThroughputInformation": {
        "additionalProperties": false,
        "description": "Schema for information about current consumption of a provisioned throughput capacity.",
        "properties": {
          "throughput": {
            "$ref": "#/components/schemas/CurrentThroughputInformationThroughput"
          }
        },
        "required": [
          "throughput"
        ],
        "type": "object"
      },
      "CurrentThroughputInformationThroughput": {
        "additionalProperties": false,
        "description": "Detailed information about current consumption.",
        "properties": {
          "query": {
            "description": "Number of global queries conducted against the instance for a given second.",
            "format": "int64",
            "maximum": 4294967295,
            "minimum": 0,
            "type": "integer"
          },
          "read": {
            "description": "Number of reads conducted against the instance for a given second.",
            "format": "int64",
            "maximum": 4337916968,
            "minimum": 0,
            "type": "integer"
          },
          "write": {
            "description": "Number of writes conducted against the instance for a given second.",
            "format": "int64",
            "maximum": 4294967295,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "read",
          "write",
          "query"
        ],
        "type": "object"
      },
      "DatabaseInformation": {
        "additionalProperties": false,
        "description": "Schema for information about a database.",
        "properties": {
          "cluster": {
            "$ref": "#/components/schemas/DatabaseInformationCluster"
          },
          "committed_update_seq": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Sequence"
              },
              {
                "description": "An opaque string that describes the committed state of the database."
              }
            ]
          },
          "compact_running": {
            "description": "True if the database compaction routine is operating on this database.",
            "type": "boolean"
          },
          "compacted_seq": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Sequence"
              },
              {
                "description": "An opaque string that describes the compaction state of the database."
              }
            ]
          },
          "db_name": {
            "$ref": "#/components/schemas/DatabaseName"
          },
          "disk_format_version": {
            "description": "The version of the physical format used for the data when it is stored on disk.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 1,
            "type": "integer"
          },
          "doc_count": {
            "description": "A count of the documents in the specified database.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "doc_del_count": {
            "description": "Number of deleted documents",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "engine": {
            "description": "The engine used for the database.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "instance_start_time": {
            "description": "An opaque string to detect whether a database has been recreated. The field name is for compatibility with old replicator versions. Do not use the value to infer timing information. Typically only used by replicators.",
            "maxLength": 10,
            "minLength": 1,
            "pattern": "^\\d+$",
            "type": "string"
          },
          "partitioned_indexes": {
            "$ref": "#/components/schemas/PartitionedIndexesInformation"
          },
          "props": {
            "$ref": "#/components/schemas/DatabaseInformationProps"
          },
          "purge_seq": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Sequence"
              },
              {
                "description": "An opaque string that describes the purge state of the database. Do not rely on this string for counting the number of purge operations."
              }
            ],
            "x-sdk-exclude": true
          },
          "sizes": {
            "$ref": "#/components/schemas/ContentInformationSizes"
          },
          "update_seq": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Sequence"
              },
              {
                "description": "An opaque string that describes the state of the database. Do not rely on this string for counting the number of updates."
              }
            ]
          },
          "uuid": {
            "description": "The UUID of the database.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          }
        },
        "required": [
          "cluster",
          "compact_running",
          "db_name",
          "disk_format_version",
          "doc_count",
          "doc_del_count",
          "instance_start_time",
          "props",
          "purge_seq",
          "sizes",
          "update_seq"
        ],
        "type": "object"
      },
      "DatabaseInformationCluster": {
        "additionalProperties": false,
        "description": "Schema for database cluster information.",
        "properties": {
          "n": {
            "$ref": "#/components/schemas/ReplicaCount"
          },
          "q": {
            "$ref": "#/components/schemas/ShardCount"
          },
          "r": {
            "description": "Read quorum. The number of consistent copies of a document that need to be read before a successful reply.",
            "format": "int64",
            "maximum": 3,
            "minimum": 1,
            "type": "integer"
          },
          "w": {
            "description": "Write quorum. The number of copies of a document that need to be written before a successful reply.",
            "format": "int64",
            "maximum": 3,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "n",
          "q",
          "r",
          "w"
        ],
        "type": "object"
      },
      "DatabaseInformationProps": {
        "additionalProperties": false,
        "description": "Schema for database properties.",
        "properties": {
          "partitioned": {
            "description": "The value is `true` for a partitioned database.",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "DatabaseName": {
        "description": "Schema for a database name.",
        "maxLength": 238,
        "minLength": 1,
        "pattern": "^_dbs$|^_global_changes$|^_metadata$|^_nodes$|^_replicator$|^_users$|^[a-z][a-z0-9_$()+/-]*$",
        "type": "string"
      },
      "DatabaseUrl": {
        "description": "Schema for a database URL.",
        "maxLength": 8000,
        "minLength": 1,
        "pattern": "^https:\\/\\/.*$",
        "type": "string"
      },
      "DatabasesCountInformation": {
        "additionalProperties": false,
        "description": "Schema for databases count.",
        "properties": {
          "total": {
            "description": "The total number of databases.",
            "format": "int64",
            "maximum": 4294967295,
            "minimum": 0,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "DateTimeRFC2822": {
        "description": "Schema for date/time in RFC 2822 format.",
        "maxLength": 31,
        "minLength": 28,
        "pattern": "^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), [0-3]\\d (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) \\d{4} [0-2]\\d:[0-5]\\d:[0-6]\\d ([+-]\\d{4}|[A-Z]{2,3})$",
        "type": "string"
      },
      "DbEvent": {
        "additionalProperties": false,
        "description": "Schema for a database change event.",
        "properties": {
          "db_name": {
            "$ref": "#/components/schemas/DatabaseName"
          },
          "seq": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Sequence"
              },
              {
                "description": "Sequence number."
              }
            ]
          },
          "type": {
            "description": "A database event.",
            "enum": [
              "created",
              "deleted",
              "updated"
            ],
            "type": "string"
          }
        },
        "required": [
          "db_name",
          "type",
          "seq"
        ],
        "type": "object"
      },
      "DbUpdates": {
        "additionalProperties": false,
        "description": "Schema for database updates.",
        "properties": {
          "last_seq": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Sequence"
              },
              {
                "description": "Last sequence number."
              }
            ]
          },
          "results": {
            "description": "results",
            "items": {
              "$ref": "#/components/schemas/DbEvent"
            },
            "maxItems": 4294967295,
            "minItems": 0,
            "type": "array"
          }
        },
        "required": [
          "last_seq",
          "results"
        ],
        "type": "object"
      },
      "DbsInfoQuery": {
        "additionalProperties": false,
        "description": "Schema for submitting a query for information about multiple databases.",
        "properties": {
          "keys": {
            "description": "A list of database names",
            "items": {
              "$ref": "#/components/schemas/DatabaseName"
            },
            "maxItems": 100,
            "minItems": 0,
            "type": "array"
          }
        },
        "required": [
          "keys"
        ],
        "type": "object"
      },
      "DbsInfoResult": {
        "additionalProperties": false,
        "description": "Schema for database information keyed by database name.",
        "properties": {
          "error": {
            "description": "The name of the error.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "info": {
            "$ref": "#/components/schemas/DatabaseInformation"
          },
          "key": {
            "$ref": "#/components/schemas/DatabaseName"
          }
        },
        "required": [
          "key"
        ],
        "type": "object"
      },
      "DbsInfoResults": {
        "description": "Schema for a list of database information objects.",
        "items": {
          "$ref": "#/components/schemas/DbsInfoResult"
        },
        "maxItems": 100,
        "minItems": 0,
        "type": "array"
      },
      "DesignDocument": {
        "additionalProperties": true,
        "allOf": [
          {
            "$ref": "#/components/schemas/Document"
          },
          {
            "properties": {
              "_id": {
                "$ref": "#/components/schemas/DesignDocumentId"
              },
              "autoupdate": {
                "default": true,
                "description": "Indicates whether to automatically build indexes defined in this design document.",
                "type": "boolean"
              },
              "filters": {
                "$ref": "#/components/schemas/DesignDocumentFilterFunctions"
              },
              "indexes": {
                "$ref": "#/components/schemas/DesignDocumentIndexFunctions"
              },
              "language": {
                "default": "javascript",
                "description": "Defines Query Server key to process design document functions.",
                "maxLength": 7168,
                "minLength": 1,
                "pattern": "^.+$",
                "type": "string"
              },
              "options": {
                "$ref": "#/components/schemas/DesignDocumentOptions"
              },
              "validate_doc_update": {
                "description": "Validate document update function can be used to prevent invalid\nor unauthorized document update requests from being stored.\nValidation functions typically examine the structure of the new\ndocument to ensure that required fields are present and to\nverify that the requesting user should be allowed to make\nchanges to the document properties. When a write request is\nreceived for a given database, the validation function in each\ndesign document in that database is called in an unspecified\norder. If any of the validation functions throw an error, the\nwrite will not succeed.\n\nThe validation function can abort the pending document\nwrite by throwing one of two error objects:\n\n```\n// user is not authorized to make the change but may\n// re-authenticate\nthrow({ unauthorized: 'Error message here.' });\n\n// change is not allowed\nthrow({ forbidden: 'Error message here.' });\n```\n\nThe function takes 4 parameters:\n\n  * `newDoc` - New version of document that will be stored\n    from the update request.\n  * `oldDoc` - Previous version of document that is already\n    stored.\n  * `userCtx` - User Context Object, containing information\n    about the user writing the document (if present), see the\n    `UserContext`.\n  * `secObj` - Security Object, with lists of database security\n    roles, see the `SecurityObject`.",
                "maxLength": 1048488,
                "minLength": 1,
                "pattern": "^.+$",
                "type": "string"
              },
              "views": {
                "$ref": "#/components/schemas/DesignDocumentViews"
              }
            },
            "type": "object"
          }
        ],
        "description": "Schema for a design document.",
        "type": "object"
      },
      "DesignDocumentFilterFunctions": {
        "additionalProperties": {
          "maxLength": 1048488,
          "minLength": 1,
          "pattern": "^.+$",
          "type": "string"
        },
        "description": "Schema for filter functions definition. This schema is a map\nwhere keys are the names of the filter functions and values are the\nfunction definition in string format.\n\nFilter function formats, or filters the changes feed that pass filter\nrules.\nThe function takes 2 parameters:\n\n  * `doc`: The document that is being processed.\n  * `req`: A Request JavaScript object with these properties:\n\n    * `body` - string, Request body data as string.\n      If the request method is GET this field contains the value\n      `\"undefined\"`.\n      If the method is DELETE or HEAD the value is `\"\"` (empty string).\n    * `cookie` - Cookies object.\n    * `form` - Form Data object, contains the decoded body as key-value\n      pairs if the Content-Type header was\n      application/x-www-form-urlencoded.\n    * `headers` - Request Headers object.\n    * `id` - string, requested document id if it was specified\n      or null otherwise.\n    * `info` - Database Information object,\n      see `DatabaseInformation`.\n    * `method` - string or an array of chars, request method.\n      String value is a method as one of: HEAD, GET, POST, PUT,\n      DELETE, OPTIONS, TRACE, COPY. For not supported methods\n      it will be represented as an array of char codes e.g. for VIEW\n      it will be 86,73,69,87.\n    * `path` - array of strings, requested path sections.\n    * `peer` - string, request source IP address.\n    * `query` - string, URL query parameters object. Note that multiple\n      keys are not supported and the last key value suppresses others.\n    * `requested_path` - array of strings,\n      actual requested path section.\n    * `raw_path` - string, raw requested path.\n    * `userCtx`: User Context Object, containing information about the\n      user writing the document (if present), see the `UserContext`.\n    * `secObj`: Security Object, with lists of database security roles,\n      see the `SecurityObject`.\n    * `uuid` - string, generated UUID by a specified algorithm in the\n      config file.\n\nFilter functions must return true if a document passed all the rules.",
        "type": "object"
      },
      "DesignDocumentId": {
        "description": "Schema for a design document ID including a `_design/` prefix.",
        "maxLength": 7160,
        "minLength": 9,
        "pattern": "^_design\\/.+$",
        "type": "string"
      },
      "DesignDocumentIdNullable": {
        "allOf": [
          {
            "$ref": "#/components/schemas/DesignDocumentId"
          },
          {
            "description": "Schema for a nullable design document ID including a `_design/` prefix."
          },
          {
            "nullable": true
          }
        ]
      },
      "DesignDocumentIndexFunctions": {
        "additionalProperties": {
          "$ref": "#/components/schemas/SearchIndexDefinition"
        },
        "description": "Search (text) index function definitions.",
        "type": "object"
      },
      "DesignDocumentInformation": {
        "additionalProperties": false,
        "description": "Schema for information about a design document.",
        "properties": {
          "name": {
            "description": "name",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "view_index": {
            "$ref": "#/components/schemas/DesignDocumentViewIndex"
          }
        },
        "required": [
          "name",
          "view_index"
        ],
        "type": "object"
      },
      "DesignDocumentOptions": {
        "additionalProperties": false,
        "description": "Schema for design document options.",
        "properties": {
          "partitioned": {
            "description": "Whether this design document describes partitioned or global indexes. Set this option to `false` for a design document that describes global indexes in a partitioned database.\nA design document describes either global or partitioned indexes, but not both. By default, for a partitioned database this option is `true` and the design document describes partitioned indexes for queries on a single partition at a time. When set to `false` this option allows creating global indexes in this design document for queries spanning many partitions.\nFor non-partitioned databases, the default is `false` and design documents default to global. Only partitioned databases can have partitioned indexes.",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "DesignDocumentViewIndex": {
        "additionalProperties": false,
        "description": "View index information.",
        "properties": {
          "collator_versions": {
            "description": "List of collator versions. If there are multiple entries this implies a libicu upgrade has occurred but compaction has not run yet.",
            "items": {
              "maxLength": 7168,
              "minLength": 1,
              "pattern": "^.+$",
              "type": "string"
            },
            "maxItems": 4294967295,
            "minItems": 1,
            "type": "array"
          },
          "compact_running": {
            "description": "Indicates whether a compaction routine is currently running on the view.",
            "type": "boolean"
          },
          "language": {
            "description": "Language for the defined views.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "purge_seq": {
            "description": "The purge sequence that has been processed.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer",
            "x-sdk-exclude": true
          },
          "signature": {
            "description": "MD5 signature of the views for the design document.",
            "maxLength": 32,
            "minLength": 32,
            "pattern": "^[\\da-f]{32}$",
            "type": "string"
          },
          "sizes": {
            "$ref": "#/components/schemas/ContentInformationSizes"
          },
          "update_seq": {
            "description": "The update sequence of the corresponding view that has been indexed. Do not rely on this property for counting the number of updates.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer",
            "x-sdk-exclude": true
          },
          "updater_running": {
            "description": "Indicates if the view is currently being updated.",
            "type": "boolean"
          },
          "updates_pending": {
            "$ref": "#/components/schemas/UpdatesPending"
          },
          "waiting_clients": {
            "description": "Number of clients waiting on views from this design document.",
            "format": "int64",
            "maximum": 10000,
            "minimum": 0,
            "type": "integer"
          },
          "waiting_commit": {
            "description": "Indicates if there are outstanding commits to the underlying database that need to processed.",
            "type": "boolean"
          }
        },
        "required": [
          "compact_running",
          "language",
          "purge_seq",
          "signature",
          "sizes",
          "update_seq",
          "updater_running",
          "updates_pending",
          "waiting_clients",
          "waiting_commit",
          "collator_versions"
        ],
        "type": "object"
      },
      "DesignDocumentViews": {
        "additionalProperties": {
          "$ref": "#/components/schemas/DesignDocumentViewsMapReduce"
        },
        "description": "Schema for design document views.",
        "type": "object"
      },
      "DesignDocumentViewsMapReduce": {
        "additionalProperties": false,
        "description": "Schema for view functions definition.",
        "properties": {
          "map": {
            "description": "JavaScript map function as a string.",
            "maxLength": 1048488,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "options": {
            "$ref": "#/components/schemas/DesignDocumentViewsMapReduceOptions"
          },
          "reduce": {
            "description": "JavaScript reduce function as a string.",
            "maxLength": 1048488,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          }
        },
        "required": [
          "map"
        ],
        "type": "object"
      },
      "DesignDocumentViewsMapReduceOptions": {
        "additionalProperties": false,
        "description": "Options of view build results.",
        "properties": {
          "collation": {
            "description": "By default when `collation` is unset, comparison of keys in view build results is done using ICU which implements the [Unicode Collation Algorithm](https://www.unicode.org/reports/tr10/)(UCA).\n UCA is a standard algorithm for collating any collection of strings\ncomposed of any standard Unicode symbols.\n\n\n**Note:** Keeping `collation` as unset resulting in UCA sorting is highly recommended.\n\n\n`raw` option enables native [Erlang binary collation](https://www.erlang.org/doc/system/expressions.html#term-comparisons) for sorting view build results. Only enable raw collation if you have a specific requirement for it and Unicode collation is not important.",
            "enum": [
              "raw"
            ],
            "nullable": true,
            "type": "string",
            "x-sdk-exclude": true
          }
        },
        "type": "object",
        "x-sdk-exclude": true
      },
      "DocsResult": {
        "additionalProperties": false,
        "allOf": [
          {
            "$ref": "#/components/schemas/CommonViewResult"
          },
          {
            "additionalProperties": false,
            "properties": {
              "rows": {
                "description": "List of doc results.",
                "items": {
                  "$ref": "#/components/schemas/DocsResultRow"
                },
                "maxItems": 4294967295,
                "minItems": 0,
                "type": "array"
              },
              "total_rows": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/TotalRows"
                  },
                  {
                    "description": "Total number of document results."
                  }
                ]
              }
            },
            "required": [
              "rows"
            ],
            "type": "object"
          }
        ],
        "description": "Schema for the document result structure in a view like response such as`/_all_docs` and `/_local_docs`.",
        "required": [
          "offset",
          "total_rows"
        ]
      },
      "DocsResultRow": {
        "additionalProperties": false,
        "allOf": [
          {
            "$ref": "#/components/schemas/Error"
          },
          {
            "additionalProperties": false,
            "description": "Schema for a row of document information in a DocsResult.",
            "properties": {
              "doc": {
                "$ref": "#/components/schemas/Document"
              },
              "id": {
                "$ref": "#/components/schemas/DocumentId"
              },
              "key": {
                "$ref": "#/components/schemas/DocumentId"
              },
              "value": {
                "$ref": "#/components/schemas/DocsResultRowValue"
              }
            },
            "type": "object"
          }
        ],
        "description": "Schema for a row of document information in a DocsResult.",
        "required": [
          "key"
        ]
      },
      "DocsResultRowValue": {
        "additionalProperties": false,
        "description": "Value of built-in `/_all_docs` style view.",
        "properties": {
          "deleted": {
            "description": "If `true` then the document is deleted. Not present for undeleted documents.",
            "type": "boolean"
          },
          "rev": {
            "$ref": "#/components/schemas/DocumentRevisionIdentifier"
          }
        },
        "required": [
          "rev"
        ],
        "type": "object"
      },
      "Document": {
        "additionalProperties": true,
        "description": "Schema for a document.",
        "properties": {
          "_attachments": {
            "$ref": "#/components/schemas/Attachments"
          },
          "_conflicts": {
            "$ref": "#/components/schemas/DocumentRevisionIdentifiers"
          },
          "_deleted": {
            "description": "Deletion flag. Available if document was removed",
            "type": "boolean"
          },
          "_deleted_conflicts": {
            "$ref": "#/components/schemas/DocumentRevisionIdentifiers"
          },
          "_id": {
            "$ref": "#/components/schemas/DocumentId"
          },
          "_local_seq": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Sequence"
              },
              {
                "description": "Document's update sequence in current database. Available if requested with local_seq=true query parameter"
              }
            ]
          },
          "_rev": {
            "$ref": "#/components/schemas/DocumentRevisionIdentifier"
          },
          "_revisions": {
            "$ref": "#/components/schemas/Revisions"
          },
          "_revs_info": {
            "$ref": "#/components/schemas/DocumentRevsInfo"
          }
        },
        "type": "object",
        "x-preserved-property-names": [
          "_attachments",
          "_conflicts",
          "_deleted",
          "_deleted_conflicts",
          "_id",
          "_local_seq",
          "_rev",
          "_revisions",
          "_revs_info",
          "_attachments",
          "_conflicts",
          "_deleted",
          "_deleted_conflicts",
          "_id",
          "_local_seq",
          "_rev",
          "_revisions",
          "_revs_info"
        ]
      },
      "DocumentId": {
        "description": "Schema for a document ID.",
        "maxLength": 7168,
        "minLength": 1,
        "pattern": "^([^_]|_(design|local)\\/).+$",
        "type": "string"
      },
      "DocumentIdRev": {
        "additionalProperties": false,
        "description": "Schema for an object with a document ID and revision identifier.",
        "properties": {
          "id": {
            "$ref": "#/components/schemas/DocumentId"
          },
          "rev": {
            "$ref": "#/components/schemas/DocumentRevisionIdentifier"
          }
        },
        "required": [
          "id"
        ],
        "type": "object"
      },
      "DocumentIds": {
        "description": "Schema for a list of document IDs.",
        "items": {
          "$ref": "#/components/schemas/DocumentId"
        },
        "maxItems": 65535,
        "minItems": 0,
        "type": "array"
      },
      "DocumentMultipart": {
        "additionalProperties": false,
        "description": "Schema for a multipart document and attachments.",
        "properties": {
          "document": {
            "$ref": "#/components/schemas/Document"
          },
          "documentAttachments": {
            "description": "Schema for multipart attachments.",
            "items": {
              "$ref": "#/components/schemas/AttachmentContent"
            },
            "maxItems": 65535,
            "minItems": 0,
            "type": "array"
          }
        },
        "type": "object"
      },
      "DocumentResult": {
        "additionalProperties": false,
        "allOf": [
          {
            "$ref": "#/components/schemas/DocumentIdRev"
          },
          {
            "$ref": "#/components/schemas/Ok"
          },
          {
            "$ref": "#/components/schemas/Error"
          }
        ],
        "description": "Schema for the result of a document modification."
      },
      "DocumentRevisionIdentifier": {
        "description": "Schema for a document revision identifier.",
        "maxLength": 43,
        "minLength": 34,
        "pattern": "^[1-9]\\d{0,9}-[\\da-f]{32}$",
        "type": "string"
      },
      "DocumentRevisionIdentifiers": {
        "description": "Schema for a list of document revision identifiers.",
        "items": {
          "$ref": "#/components/schemas/DocumentRevisionIdentifier"
        },
        "maxItems": 4294967295,
        "minItems": 0,
        "type": "array"
      },
      "DocumentRevisionStatus": {
        "additionalProperties": false,
        "description": "Schema for information about revisions and their status.",
        "properties": {
          "rev": {
            "$ref": "#/components/schemas/DocumentRevisionIdentifier"
          },
          "status": {
            "description": "Status of the revision. May be one of: - `available`: Revision is available for retrieving with rev query parameter - `missing`: Revision is not available - `deleted`: Revision belongs to deleted document",
            "enum": [
              "available",
              "missing",
              "deleted"
            ],
            "type": "string"
          }
        },
        "required": [
          "rev",
          "status"
        ],
        "type": "object"
      },
      "DocumentRevisions": {
        "additionalProperties": {
          "items": {
            "$ref": "#/components/schemas/DocumentRevisionIdentifier"
          },
          "maxItems": 65535,
          "minItems": 0,
          "type": "array"
        },
        "description": "Schema for mapping document IDs to lists of revisions.",
        "type": "object"
      },
      "DocumentRevsInfo": {
        "description": "Schema for a list of objects with information about local revisions and their status.",
        "items": {
          "$ref": "#/components/schemas/DocumentRevisionStatus"
        },
        "maxItems": 4294967295,
        "minItems": 1,
        "type": "array"
      },
      "DocumentShardInfo": {
        "additionalProperties": false,
        "description": "Schema for document shard information.",
        "properties": {
          "nodes": {
            "description": "List of nodes serving a replica of the shard.",
            "items": {
              "maxLength": 255,
              "minLength": 1,
              "pattern": "^.+$",
              "type": "string"
            },
            "maxItems": 3,
            "minItems": 1,
            "type": "array"
          },
          "range": {
            "description": "The shard range in which the document is stored.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          }
        },
        "required": [
          "nodes",
          "range"
        ],
        "type": "object"
      },
      "DrilldownQuery": {
        "description": "Schema for a drilldown search query parameter.",
        "items": {
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^.+$",
          "type": "string"
        },
        "maxItems": 2,
        "minItems": 2,
        "type": "array"
      },
      "ETag": {
        "description": "Resource ETag value.",
        "maxLength": 45,
        "minLength": 26,
        "pattern": "^\"[A-Za-z0-9+\\/]{2,24}={0,3}\"$|^\"[1-9]\\d{0,9}-[\\da-f]{32}\"$|^\"[0-9A-Z]{25}\"$",
        "title": "ETag",
        "type": "string"
      },
      "EnsureFullCommitInformation": {
        "additionalProperties": false,
        "description": "Schema for the status of a commit operation.",
        "properties": {
          "instance_start_time": {
            "description": "Timestamp of when the database was opened, expressed in microseconds since the epoch.",
            "maxLength": 10,
            "minLength": 1,
            "pattern": "^\\d+$",
            "type": "string"
          },
          "ok": {
            "default": true,
            "description": "Operation status.",
            "type": "boolean"
          }
        },
        "required": [
          "instance_start_time",
          "ok"
        ],
        "type": "object"
      },
      "Error": {
        "additionalProperties": false,
        "description": "Schema for error information returned from the database.",
        "properties": {
          "caused_by": {
            "description": "The cause of the error (if available).",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "error": {
            "description": "The name of the error.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "reason": {
            "description": "The reason the error occurred (if available).",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "ref": {
            "description": "An internal error reference (if available).",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "ExecutionStats": {
        "additionalProperties": false,
        "description": "Schema for find query execution statistics.",
        "properties": {
          "execution_time_ms": {
            "description": "Time to execute the query.",
            "format": "double",
            "type": "number"
          },
          "results_returned": {
            "description": "Number of results returned.",
            "format": "int64",
            "maximum": 4294967295,
            "minimum": 0,
            "type": "integer"
          },
          "total_docs_examined": {
            "description": "Number of documents fetched from the index.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "total_keys_examined": {
            "description": "Number of rows scanned in the index.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "total_quorum_docs_examined": {
            "description": "Number of documents fetched from the primary index with the specified read quorum.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "execution_time_ms",
          "results_returned",
          "total_docs_examined",
          "total_keys_examined",
          "total_quorum_docs_examined"
        ],
        "type": "object"
      },
      "ExplainResult": {
        "additionalProperties": false,
        "description": "Schema for information about the index used for a find query.",
        "properties": {
          "covering": {
            "description": "When `true`, the query is answered using the index only and no documents are fetched.",
            "type": "boolean"
          },
          "dbname": {
            "$ref": "#/components/schemas/DatabaseName"
          },
          "fields": {
            "description": "Fields that were requested to be projected from the document.\nIf no fields were requested to be projected this will be empty\nand all fields will be returned.",
            "items": {
              "maxLength": 7168,
              "minLength": 1,
              "pattern": "^.+$",
              "type": "string"
            },
            "maxItems": 4294967295,
            "minItems": 0,
            "type": "array"
          },
          "index": {
            "$ref": "#/components/schemas/IndexInformation"
          },
          "index_candidates": {
            "$ref": "#/components/schemas/IndexCandidates"
          },
          "limit": {
            "default": 25,
            "description": "The used maximum number of results returned.",
            "format": "int64",
            "maximum": 4294967295,
            "minimum": 0,
            "type": "integer"
          },
          "mrargs": {
            "$ref": "#/components/schemas/ExplainResultMrArgs"
          },
          "opts": {
            "$ref": "#/components/schemas/ExplainResultOpts"
          },
          "partitioned": {
            "$ref": "#/components/schemas/AnyJsonType"
          },
          "selector": {
            "$ref": "#/components/schemas/Selector"
          },
          "selector_hints": {
            "$ref": "#/components/schemas/SelectorHints"
          },
          "skip": {
            "description": "Skip parameter used.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "covering",
          "dbname",
          "fields",
          "index",
          "index_candidates",
          "limit",
          "opts",
          "selector",
          "selector_hints",
          "skip"
        ],
        "type": "object"
      },
      "ExplainResultMrArgs": {
        "additionalProperties": false,
        "description": "Arguments passed to the underlying view.",
        "properties": {
          "conflicts": {
            "$ref": "#/components/schemas/AnyJsonType"
          },
          "direction": {
            "default": "fwd",
            "description": "Direction parameter passed to the underlying view.",
            "enum": [
              "fwd",
              "rev"
            ],
            "type": "string"
          },
          "end_key": {
            "$ref": "#/components/schemas/AnyJsonType"
          },
          "include_docs": {
            "description": "A parameter that specifies whether to include the full content\nof the documents in the response in the underlying view.",
            "type": "boolean"
          },
          "partition": {
            "description": "Partition parameter passed to the underlying view.",
            "maxLength": 7168,
            "minLength": 0,
            "nullable": true,
            "pattern": "^[^_:][^:]*$",
            "type": "string"
          },
          "reduce": {
            "description": "A parameter that specifies returning only documents that match\nany of the specified keys in the underlying view.",
            "type": "boolean"
          },
          "stable": {
            "description": "A parameter that specifies whether the view results\nshould be returned form a \"stable\" set of shards passed to\nthe underlying view.",
            "type": "boolean"
          },
          "start_key": {
            "$ref": "#/components/schemas/AnyJsonType"
          },
          "update": {
            "$ref": "#/components/schemas/AnyJsonType"
          },
          "view_type": {
            "description": "The type of the underlying view.",
            "enum": [
              "map",
              "reduce"
            ],
            "type": "string"
          }
        },
        "required": [
          "conflicts",
          "direction",
          "end_key",
          "include_docs",
          "partition",
          "reduce",
          "stable",
          "update",
          "view_type"
        ],
        "type": "object"
      },
      "ExplainResultOpts": {
        "additionalProperties": false,
        "description": "Options used for the request.",
        "properties": {
          "bookmark": {
            "$ref": "#/components/schemas/Bookmark"
          },
          "conflicts": {
            "default": false,
            "description": "Conflicts used in the request query.",
            "type": "boolean"
          },
          "execution_stats": {
            "default": false,
            "description": "Execution statistics used in the request query.",
            "type": "boolean"
          },
          "fields": {
            "$ref": "#/components/schemas/Fields"
          },
          "limit": {
            "default": 25,
            "description": "Limit used in the request query.",
            "format": "int64",
            "maximum": 4294967295,
            "minimum": 0,
            "type": "integer"
          },
          "partition": {
            "description": "On which database partition the request was used.\nIf it was not used on a database partition, it returns with `\"\"`.",
            "maxLength": 7168,
            "minLength": 0,
            "pattern": "^[^_:][^:]*$",
            "type": "string"
          },
          "r": {
            "description": "The read quorum that is needed for the result.",
            "format": "int64",
            "maximum": 3,
            "minimum": 1,
            "type": "integer"
          },
          "skip": {
            "default": 0,
            "description": "Skip used in the request query.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "sort": {
            "$ref": "#/components/schemas/AnyJsonType"
          },
          "stable": {
            "default": false,
            "description": "Stable used in the request query.",
            "type": "boolean"
          },
          "stale": {
            "default": false,
            "deprecated": true,
            "description": "Stale used in the request query.",
            "type": "boolean"
          },
          "update": {
            "default": true,
            "description": "Update used in the request query.",
            "type": "boolean"
          },
          "use_index": {
            "description": "Use index used in the request query.",
            "items": {
              "maxLength": 7168,
              "minLength": 1,
              "pattern": "^.+$",
              "type": "string"
            },
            "maxItems": 2,
            "minItems": 0,
            "type": "array"
          }
        },
        "required": [
          "bookmark",
          "conflicts",
          "execution_stats",
          "fields",
          "limit",
          "partition",
          "r",
          "skip",
          "sort",
          "stable",
          "stale",
          "update",
          "use_index"
        ],
        "type": "object"
      },
      "FieldSort": {
        "additionalProperties": {
          "$ref": "#/components/schemas/SortDirection"
        },
        "description": "Schema for a mapping of field name to sort direction.",
        "type": "object"
      },
      "Fields": {
        "description": "JSON array that uses the field syntax. Use this parameter to specify which fields of a document must be returned. If it is omitted or empty, the entire document is returned.",
        "items": {
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^.+$",
          "type": "string"
        },
        "maxItems": 65535,
        "minItems": 0,
        "type": "array"
      },
      "FindQuery": {
        "additionalProperties": false,
        "allOf": [
          {
            "$ref": "#/components/schemas/PartitionFindQuery"
          },
          {
            "properties": {
              "r": {
                "default": 1,
                "description": "The read quorum that is needed for the result. The value defaults to 1, in which case the document that was found in the index is returned. If set to a higher value, each document is read from at least that many replicas before it is returned in the results. The request will take more time than using only the document that is stored locally with the index.",
                "format": "int64",
                "maximum": 3,
                "minimum": 1,
                "type": "integer"
              }
            }
          }
        ],
        "description": "Schema for a query find operation."
      },
      "FindResult": {
        "additionalProperties": false,
        "description": "Schema for the result of a query find operation.",
        "properties": {
          "bookmark": {
            "$ref": "#/components/schemas/Bookmark"
          },
          "docs": {
            "description": "Documents matching the selector.",
            "items": {
              "$ref": "#/components/schemas/Document"
            },
            "maxItems": 4294967295,
            "minItems": 0,
            "type": "array"
          },
          "execution_stats": {
            "$ref": "#/components/schemas/ExecutionStats"
          },
          "warning": {
            "description": "warning",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          }
        },
        "required": [
          "bookmark",
          "docs"
        ],
        "type": "object"
      },
      "IamSessionConfiguration": {
        "additionalProperties": false,
        "description": "Schema for submitting an IAM access token.",
        "properties": {
          "access_token": {
            "description": "Token obtained from the IAM service.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9_-]{2,}\\.[A-Za-z0-9_-]{2,}\\.[A-Za-z0-9_-]{2,}$",
            "type": "string"
          }
        },
        "required": [
          "access_token"
        ],
        "type": "object"
      },
      "IamSessionInformation": {
        "additionalProperties": false,
        "description": "Schema for information about an IAM session.",
        "properties": {
          "id": {
            "description": "User ID",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "ok": {
            "default": true,
            "description": "Session is ok",
            "type": "boolean"
          },
          "scope": {
            "description": "Scope of the session",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "type": {
            "description": "Type of the session",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          }
        },
        "required": [
          "id",
          "ok",
          "scope",
          "type"
        ],
        "type": "object"
      },
      "IndexAnalysis": {
        "additionalProperties": false,
        "description": "Schema for detailed explanation of why the specific index was excluded by the query planner.",
        "properties": {
          "covering": {
            "description": "When `true`, the query is answered using the index only and no documents are fetched.",
            "nullable": true,
            "type": "boolean"
          },
          "ranking": {
            "description": "A position of the unused index based on its potential relevance to the query.",
            "format": "int64",
            "maximum": 4294967295,
            "minimum": 1,
            "type": "integer"
          },
          "reasons": {
            "description": "A list of reasons explaining why index was not chosen for the query.",
            "items": {
              "$ref": "#/components/schemas/IndexAnalysisExclusionReason"
            },
            "maxItems": 4294967295,
            "minItems": 1,
            "type": "array"
          },
          "usable": {
            "description": "Indicates whether an index can still be used for the query.",
            "type": "boolean"
          }
        },
        "required": [
          "covering",
          "ranking",
          "reasons",
          "usable"
        ],
        "type": "object"
      },
      "IndexAnalysisExclusionReason": {
        "additionalProperties": false,
        "description": "A reason for index's exclusion.",
        "properties": {
          "name": {
            "description": "A reason code for index's exclusion.\n\nThe full list of possible reason codes is following:\n\n* alphabetically_comes_after: json\n  There is another suitable index whose name comes before that of\n  this index.\n* empty_selector: text\n\"text\" indexes do not support queries with empty selectors.\n* excluded_by_user: any\nuse_index was used to manually specify the index.\n* field_mismatch: any\nFields in \"selector\" of the query do match with the fields available\nin the index.\n* is_partial: json, text\nPartial indexes can be selected only manually.\n* less_overlap: json\nThere is a better match of fields available within the indexes for\nthe query.\n* needs_text_search: json\nThe use of the $text operator requires a \"text\" index.\n* scope_mismatch: json\nThe scope of the query and the index is not the same.\n* sort_order_mismatch: json, special\nFields in \"sort\" of the query do not match with the fields available\nin the index.\n* too_many_fields: json\nThe index has more fields than the chosen one.\n* unfavored_type: any\nThe type of the index is not preferred.",
            "enum": [
              "alphabetically_comes_after",
              "empty_selector",
              "excluded_by_user",
              "field_mismatch",
              "is_partial",
              "less_overlap",
              "needs_text_search",
              "scope_mismatch",
              "sort_order_mismatch",
              "too_many_fields",
              "unfavored_type"
            ],
            "type": "string"
          }
        },
        "required": [
          "name"
        ]
      },
      "IndexCandidate": {
        "additionalProperties": false,
        "description": "Schema for an index that was not chosen for serving the query with the reason for the exclusion.",
        "properties": {
          "analysis": {
            "$ref": "#/components/schemas/IndexAnalysis"
          },
          "index": {
            "$ref": "#/components/schemas/IndexInformation"
          }
        },
        "required": [
          "analysis",
          "index"
        ],
        "type": "object"
      },
      "IndexCandidates": {
        "description": "Schema for the list of all the other indexes that were not chosen for serving the query.",
        "items": {
          "$ref": "#/components/schemas/IndexCandidate"
        },
        "maxItems": 4294967295,
        "minItems": 0,
        "type": "array"
      },
      "IndexConfiguration": {
        "additionalProperties": false,
        "description": "Schema for configuration options for creating an index.",
        "properties": {
          "ddoc": {
            "description": "Specifies the design document name in which the index will be\ncreated. The design document name is the design document ID\nexcluding the `_design/` prefix.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^[^_design/].*$",
            "type": "string"
          },
          "index": {
            "$ref": "#/components/schemas/IndexDefinition"
          },
          "name": {
            "description": "name",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^[^_].*$",
            "type": "string"
          },
          "partitioned": {
            "description": "The default value is `true` for databases with `partitioned: true` and `false` otherwise. For databases with `partitioned: false` if this option is specified the value must be `false`.",
            "type": "boolean"
          },
          "type": {
            "$ref": "#/components/schemas/IndexType"
          }
        },
        "required": [
          "index"
        ],
        "type": "object"
      },
      "IndexDefinition": {
        "additionalProperties": false,
        "description": "Schema for a `json` or `text` query index definition. Indexes of type `text` have additional configuration properties that do not apply to `json` indexes, these are:\n* `default_analyzer` - the default text analyzer to use\n* `default_field` - whether to index the text in all document fields and what analyzer to use for that purpose.",
        "properties": {
          "default_analyzer": {
            "$ref": "#/components/schemas/Analyzer"
          },
          "default_field": {
            "$ref": "#/components/schemas/IndexTextOperatorDefaultField"
          },
          "fields": {
            "description": "List of field objects to index.  Nested fields are also allowed,\ne.g. `person.name`.\n\nFor \"json\" type indexes each object is a mapping of field name to\nsort direction (asc or desc).\n\nFor \"text\" type indexes each object has a `name` property of the\nfield name and a `type` property of the field type (string, number,\nor boolean).",
            "items": {
              "$ref": "#/components/schemas/IndexField"
            },
            "maxItems": 65535,
            "minItems": 1,
            "type": "array"
          },
          "index_array_lengths": {
            "default": true,
            "description": "Whether to scan every document for arrays and store the length for each array found. Set the index_array_lengths field to false if:\n* You do not need to know the length of an array.\n* You do not use the `$size` operator.\n* The documents in your database are complex, or not completely under your control. As a result, it is difficult to estimate the impact of the extra processing that is needed to determine and store the arrays lengths.",
            "type": "boolean"
          },
          "partial_filter_selector": {
            "$ref": "#/components/schemas/Selector"
          },
          "selector": {
            "$ref": "#/components/schemas/IndexDefinitionSelector"
          }
        },
        "required": [
          "fields"
        ],
        "type": "object"
      },
      "IndexDefinitionSelector": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Selector"
          }
        ],
        "deprecated": true,
        "description": "Use `partial_filter_selector` instead.",
        "type": "object",
        "x-sdk-exclude": true
      },
      "IndexField": {
        "additionalProperties": {
          "$ref": "#/components/schemas/SortDirection"
        },
        "description": "Schema for indexed fields for use with declarative JSON query.",
        "properties": {
          "name": {
            "description": "Name of the field.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "type": {
            "description": "The type of the named field.",
            "enum": [
              "boolean",
              "number",
              "string"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "IndexInformation": {
        "additionalProperties": false,
        "description": "Schema for information about an index.",
        "properties": {
          "ddoc": {
            "$ref": "#/components/schemas/DesignDocumentIdNullable"
          },
          "def": {
            "$ref": "#/components/schemas/IndexDefinition"
          },
          "name": {
            "$ref": "#/components/schemas/IndexName"
          },
          "partitioned": {
            "description": "Indicates if index is partitioned.",
            "type": "boolean"
          },
          "type": {
            "$ref": "#/components/schemas/IndexType"
          }
        },
        "required": [
          "ddoc",
          "def",
          "name",
          "type"
        ],
        "type": "object"
      },
      "IndexName": {
        "description": "Index name.",
        "maxLength": 7168,
        "minLength": 1,
        "pattern": "^[^_].*$|^_all_docs$",
        "type": "string"
      },
      "IndexResult": {
        "additionalProperties": false,
        "description": "Schema for the result of creating an index.",
        "properties": {
          "id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DesignDocumentId"
              },
              {
                "description": "Id of the design document the index was created in."
              }
            ]
          },
          "name": {
            "description": "Name of the index created.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "result": {
            "description": "Flag to show whether the index was created or one already exists.",
            "enum": [
              "created",
              "exists"
            ],
            "type": "string"
          }
        },
        "required": [
          "id",
          "name",
          "result"
        ],
        "type": "object"
      },
      "IndexTextOperatorDefaultField": {
        "additionalProperties": false,
        "description": "Schema for the text index default field configuration. The default field is used to index the text of all fields within a document for use with the `$text` operator.",
        "properties": {
          "analyzer": {
            "$ref": "#/components/schemas/Analyzer"
          },
          "enabled": {
            "default": true,
            "description": "Whether or not the default_field is enabled.",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "IndexType": {
        "description": "Schema for the type of an index.",
        "enum": [
          "json",
          "special",
          "text"
        ],
        "type": "string"
      },
      "IndexesInformation": {
        "additionalProperties": false,
        "allOf": [
          {
            "$ref": "#/components/schemas/CommonViewResult"
          },
          {
            "description": "Schema for information about the indexes in a database.",
            "properties": {
              "indexes": {
                "description": "Indexes.",
                "items": {
                  "$ref": "#/components/schemas/IndexInformation"
                },
                "maxItems": 4294967295,
                "minItems": 1,
                "type": "array"
              },
              "total_rows": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/TotalRows"
                  },
                  {
                    "description": "Total number of query indexes in the database."
                  }
                ]
              }
            },
            "required": [
              "indexes"
            ]
          }
        ],
        "required": [
          "total_rows"
        ],
        "type": "object"
      },
      "JobId": {
        "description": "Schema for a replication job id.",
        "maxLength": 7168,
        "minLength": 1,
        "pattern": "^[^_].*$",
        "type": "string"
      },
      "MembershipInformation": {
        "additionalProperties": false,
        "description": "Schema for information about known nodes and cluster membership.",
        "properties": {
          "all_nodes": {
            "description": "List of nodes this node knows about, including the ones that are part of the cluster.",
            "items": {
              "maxLength": 255,
              "minLength": 1,
              "pattern": "^.+$",
              "type": "string"
            },
            "maxItems": 64,
            "minItems": 1,
            "type": "array"
          },
          "cluster_nodes": {
            "description": "All cluster nodes.",
            "items": {
              "maxLength": 255,
              "minLength": 1,
              "pattern": "^.+$",
              "type": "string"
            },
            "maxItems": 64,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "all_nodes",
          "cluster_nodes"
        ],
        "type": "object"
      },
      "MissingRevsResult": {
        "additionalProperties": false,
        "description": "Schema for mapping document IDs to lists of missing revisions.",
        "properties": {
          "missing_revs": {
            "$ref": "#/components/schemas/DocumentRevisions"
          }
        },
        "required": [
          "missing_revs"
        ],
        "type": "object"
      },
      "NodeStatsCounter": {
        "additionalProperties": false,
        "description": "Schema for a statistic of a monotonically increasing counter that resets on restart.",
        "properties": {
          "desc": {
            "description": "Description of the counter statistic.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "type": {
            "description": "counter",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "value": {
            "description": "Count value of the statistic.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "NodeStatsGauge": {
        "additionalProperties": false,
        "description": "Schema for a statistic of a single numerical value that can go up and down.",
        "properties": {
          "desc": {
            "description": "Description of the gauge statistic.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "type": {
            "description": "gauge",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "value": {
            "description": "Current numerical value of the statistic.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "NodeStatsHistogram": {
        "additionalProperties": false,
        "description": "Schema for a statistic of a histogram of binned values with meaningful subdivisions.",
        "properties": {
          "arithmetic_mean": {
            "description": "arithmetic_mean",
            "format": "double",
            "type": "number"
          },
          "desc": {
            "description": "Description of the historgram statistic.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "geometric_mean": {
            "description": "geometric_mean",
            "format": "double",
            "type": "number"
          },
          "harmonic_mean": {
            "description": "harmonic_mean",
            "format": "double",
            "type": "number"
          },
          "histogram": {
            "description": "histogram",
            "items": {
              "items": {
                "format": "double",
                "type": "number"
              },
              "maxItems": 2,
              "minItems": 2,
              "type": "array"
            },
            "maxItems": 4294967295,
            "minItems": 1,
            "type": "array"
          },
          "kurtosis": {
            "description": "kurtosis",
            "format": "double",
            "type": "number"
          },
          "max": {
            "description": "max",
            "format": "double",
            "type": "number"
          },
          "median": {
            "description": "median",
            "format": "double",
            "type": "number"
          },
          "min": {
            "description": "min",
            "format": "double",
            "type": "number"
          },
          "n": {
            "description": "n",
            "format": "int64",
            "maximum": 4294967295,
            "minimum": 0,
            "type": "integer"
          },
          "percentile": {
            "description": "percentile",
            "items": {
              "items": {
                "format": "double",
                "type": "number"
              },
              "maxItems": 2,
              "minItems": 2,
              "type": "array"
            },
            "maxItems": 6,
            "minItems": 6,
            "type": "array"
          },
          "skewness": {
            "description": "skewness",
            "format": "double",
            "type": "number"
          },
          "standard_deviation": {
            "description": "standard_deviation",
            "format": "double",
            "type": "number"
          },
          "variance": {
            "description": "variance",
            "format": "double",
            "type": "number"
          }
        },
        "required": [
          "histogram",
          "percentile"
        ],
        "type": "object"
      },
      "NodeStatsInformation": {
        "additionalProperties": false,
        "description": "Schema for node statistics.",
        "properties": {
          "cassim": {
            "$ref": "#/components/schemas/NodeStatsInformationCassim"
          },
          "couch_audit": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchAudit"
          },
          "couch_log": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchLog"
          },
          "couch_replicator": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchReplicator"
          },
          "couchdb": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchdb"
          },
          "dbcopy": {
            "$ref": "#/components/schemas/NodeStatsInformationDbcopy"
          },
          "ddoc_cache": {
            "$ref": "#/components/schemas/NodeStatsInformationDdocCache"
          },
          "dreyfus": {
            "$ref": "#/components/schemas/NodeStatsInformationDreyfus"
          },
          "epep": {
            "$ref": "#/components/schemas/NodeStatsInformationEpep"
          },
          "fabric": {
            "$ref": "#/components/schemas/NodeStatsInformationFabric"
          },
          "global_changes": {
            "$ref": "#/components/schemas/NodeStatsInformationGlobalChanges"
          },
          "mango": {
            "$ref": "#/components/schemas/NodeStatsInformationMango"
          },
          "mem3": {
            "$ref": "#/components/schemas/NodeStatsInformationMem3"
          },
          "pread": {
            "$ref": "#/components/schemas/NodeStatsInformationPread"
          },
          "rexi": {
            "$ref": "#/components/schemas/NodeStatsInformationRexi"
          }
        },
        "required": [
          "couch_log",
          "couch_replicator",
          "couchdb",
          "ddoc_cache",
          "dreyfus",
          "fabric",
          "global_changes",
          "mango",
          "mem3",
          "pread",
          "rexi"
        ],
        "type": "object"
      },
      "NodeStatsInformationCassim": {
        "additionalProperties": false,
        "description": "cassim",
        "properties": {
          "metadata_cache": {
            "$ref": "#/components/schemas/NodeStatsInformationCassimMetadataCache"
          },
          "security_migration": {
            "$ref": "#/components/schemas/NodeStatsInformationCassimSecurityMigration"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCassimMetadataCache": {
        "additionalProperties": false,
        "description": "metadata_cache\nhit: Number of cassim metadata cache lookup hits.\nmiss: Number of cassim metadata cache lookup misses.",
        "properties": {
          "hit": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "miss": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCassimSecurityMigration": {
        "additionalProperties": false,
        "description": "security_migration\nconflict: Number of conflicted cassim security doc migrations.\nsuccess: Number of successful cassim security doc migrations.",
        "properties": {
          "conflict": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "success": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchAudit": {
        "additionalProperties": false,
        "description": "couch_audit\nevent: Number of audit events.\nfailures: Number of failed tcp audit transmissions.\nsuccess: Number of successful tcp audit transmissions.\ntcp_send_latency: Tcp transmission latency.",
        "properties": {
          "audit": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchAuditAudit"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchAuditAudit": {
        "additionalProperties": false,
        "description": "audit",
        "properties": {
          "event": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "failure": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "success": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "tcp_send_latency": {
            "$ref": "#/components/schemas/NodeStatsHistogram"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchLog": {
        "additionalProperties": false,
        "description": "couch_log\nalert: Number of logged alert messages.\ncritical: Number of logged critical messages.\ndebug: Number of logged debug messages.\nemergency: Number of logged emergency messages.\nerror: Number of logged error messages.\ninfo: Number of logged info messages.\nnotice: Number of logged notice messages.\nwarning: Number of logged warning messages.",
        "properties": {
          "level": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchLogLevel"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchLogLevel": {
        "additionalProperties": false,
        "description": "level",
        "properties": {
          "alert": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "critical": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "debug": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "emergency": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "error": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "info": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "notice": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "warning": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchReplicator": {
        "additionalProperties": false,
        "description": "couch_replicator\nchanges_manager_deaths: Number of failed replicator changes managers.\nchanges_queue_deaths: Number of failed replicator changes work queues.\nchanges_read_failures: Number of failed replicator changes read\nfailures.\nchanges_reader_deaths: Number of failed replicator changes readers.\ncheckpoints: checkpoint statistics\ncluster_is_stable: 1 if cluster is stable, 0 if unstable.\nconnection: connection statistics\ndb_scans: Number of times replicator db scans have been started.\ndocs: doc statistics\nfailed_starts: Number of replications that have failed to start.\njobs: job statistics\nrequests: Number of http requests made by the replicator.\nresponses: response statistics\nstream_responses: stream response statistics\nworker_deaths: Number of failed replicator workers.\nworkers_started: Number of replicator workers started.",
        "properties": {
          "changes_manager_deaths": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "changes_queue_deaths": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "changes_read_failures": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "changes_reader_deaths": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "checkpoints": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchReplicatorCheckpoints"
          },
          "cluster_is_stable": {
            "$ref": "#/components/schemas/NodeStatsGauge"
          },
          "connection": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchReplicatorConnection"
          },
          "db_scans": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "docs": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchReplicatorDocs"
          },
          "failed_starts": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "jobs": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchReplicatorJobs"
          },
          "requests": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "responses": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchReplicatorResponses"
          },
          "stream_responses": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchReplicatorStreamResponses"
          },
          "worker_deaths": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "workers_started": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchReplicatorCheckpoints": {
        "additionalProperties": false,
        "description": "checkpoints\nfailure: Number of failed checkpoint saves.\nsuccess: Number of checkpoints successfully saves.",
        "properties": {
          "failure": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "success": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchReplicatorConnection": {
        "additionalProperties": false,
        "description": "connection\nacquires: Number of times connections are shared.\ncloses: Number of times a worker is gracefully shut down.\ncreates: Number of connections created.\nowner_crashes: Number of times a connection owner crashes while\nowning at least one connection.\nreleases: Number of times ownership of a connection is released.\nworker_crashes: Number of times a worker unexpectedly terminates.",
        "properties": {
          "acquires": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "closes": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "creates": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "owner_crashes": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "releases": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "worker_crashes": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchReplicatorDocs": {
        "additionalProperties": false,
        "description": "docs\ncompleted_state_updates: Number of completed state document\nupdates.\ndb_changes: Number of db changes processed by replicator doc\nprocessor.\ndbs_created: Number of db shard creations seen by replicator doc\nprocessor.\ndbs_deleted: Number of db shard deletions seen by replicator doc\nprocessor.\ndbs_found: Number of db shard found by replicator doc processor.\nfailed_state_updates: Number of failed state document updates.",
        "properties": {
          "completed_state_updates": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "db_changes": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "dbs_created": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "dbs_deleted": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "dbs_found": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "failed_state_updates": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchReplicatorJobs": {
        "additionalProperties": false,
        "description": "jobs\nadds: Number of jobs added to replicator scheduler.\ncrashed: Replicator scheduler crashed jobs.\ncrashes: Number of job crashed noticed by replicator scheduler.\nduplicate_adds: Number of duplicate jobs added to replicator\nscheduler.\npending: Replicator scheduler pending jobs.\nremoves: Number of jobs removed from replicator scheduler.\nrunning: Replicator scheduler running jobs.\nstarts: Number of jobs started by replicator scheduler.\nstops: Number of jobs stopped by replicator scheduler.\ntotal: Total number of replicator scheduler jobs.",
        "properties": {
          "adds": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "crashed": {
            "$ref": "#/components/schemas/NodeStatsGauge"
          },
          "crashes": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "duplicate_adds": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "pending": {
            "$ref": "#/components/schemas/NodeStatsGauge"
          },
          "removes": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "running": {
            "$ref": "#/components/schemas/NodeStatsGauge"
          },
          "starts": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "stops": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "total": {
            "$ref": "#/components/schemas/NodeStatsGauge"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchReplicatorResponses": {
        "additionalProperties": false,
        "description": "responses\nfailure: Number of failed http responses received by the replicator.\nsuccess: Number of successful http responses received by the\nreplicator.",
        "properties": {
          "failure": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "success": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchReplicatorStreamResponses": {
        "additionalProperties": false,
        "description": "stream_responses\nfailure: Number of failed streaming http responses received by the\nreplicator.\nsuccess: Number of successful streaming http responses received by\nthe replicator.",
        "properties": {
          "failure": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "success": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchdb": {
        "additionalProperties": false,
        "description": "couchdb\nauth_cache_hits: Number of authentication cache hits.\nauth_cache_misses: Number of authentication cache misses.\ncollect_results_time: Microsecond latency for calls to\ncouch_db:collect_results/3.\ncouch_server: server statistics\ndatabase_reads: Number of times a document was read from a database.\ndatabase_purges: Number of times a database was purged.\ndatabase_writes: Number of times a database was changed.\ndb_open_time: Milliseconds required to open a database.\ndbinfo: Distribution of latencies for calls to retrieve db info.\ndocument_inserts: Number of documents inserted.\ndocument_purges: Number of document purge operations.\ndocument_writes: Number of document write operations.\nhttpd: httpd statistics\nhttpd_request_methods: HTTP request method statistics\nhttpd_status_codes: HTTP status code statistics\nio_queue: IO queue statistics\nio_queue2: IO queue2 statistics\nio_queue_bypassed: IO queue bypass statistics\nlocal_document_writes: Number of _local document write operations.\nmrview: mrview statistics\nopen_databases: Number of open databases.\nopen_os_files: Number of file descriptors couchdb has open.\nquery_server: Query server statistics\nrequest_time: Length of a request inside couchdb without mochiweb.",
        "properties": {
          "auth_cache_hits": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "auth_cache_misses": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "collect_results_time": {
            "$ref": "#/components/schemas/NodeStatsHistogram"
          },
          "couch_server": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchdbCouchServer"
          },
          "database_purges": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "database_reads": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "database_writes": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "db_open_time": {
            "$ref": "#/components/schemas/NodeStatsHistogram"
          },
          "dbinfo": {
            "$ref": "#/components/schemas/NodeStatsHistogram"
          },
          "document_inserts": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "document_purges": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchdbDocumentPurges"
          },
          "document_writes": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "httpd": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchdbHttpd"
          },
          "httpd_request_methods": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchdbHttpdRequestMethods"
          },
          "httpd_status_codes": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchdbHttpdStatusCodes"
          },
          "io_queue": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchdbIoQueue"
          },
          "io_queue2": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchdbIoQueue2"
          },
          "io_queue_bypassed": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchdbIoQueueBypassed"
          },
          "local_document_writes": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "mrview": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchdbMrview"
          },
          "open_databases": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "open_os_files": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "query_server": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchdbQueryServer"
          },
          "request_time": {
            "$ref": "#/components/schemas/NodeStatsHistogram"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchdbCouchServer": {
        "additionalProperties": false,
        "description": "couch_server\nlru_skip: Number of couch_server lru operations skipped.",
        "properties": {
          "lru_skip": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchdbDocumentPurges": {
        "additionalProperties": false,
        "description": "Schema for document purge operations.",
        "properties": {
          "failure": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "success": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "total": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchdbHttpd": {
        "additionalProperties": false,
        "description": "httpd\naborted_requests: Number of aborted requests.\nbulk_docs: Distribution of the number of docs in _bulk_docs requests.\nbulk_requests: Number of bulk requests.\nclients_requesting_changes: Number of clients for continuous _changes.\nrequests: Number of http requests.\ntemporary_view_reads: Number of temporary view reads.\nview_reads: Number of view reads.",
        "properties": {
          "aborted_requests": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "all_docs_timeouts": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "bulk_docs": {
            "$ref": "#/components/schemas/NodeStatsHistogram"
          },
          "bulk_requests": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "clients_requesting_changes": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "explain_timeouts": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "find_timeouts": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "partition_all_docs_requests": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "partition_all_docs_timeouts": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "partition_explain_requests": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "partition_explain_timeouts": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "partition_find_requests": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "partition_find_timeouts": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "partition_view_requests": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "partition_view_timeouts": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "purge_requests": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "requests": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "temporary_view_reads": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "view_reads": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "view_timeouts": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchdbHttpdRequestMethods": {
        "additionalProperties": false,
        "description": "httpd_request_methods\nCOPY: Number of http copy requests.\nDELETE: Number of http delete requests.\nGET: Number of http get requests.\nHEAD: Number of http head requests.\nOPTIONS: Number of http options requests.\nPOST: Number of http post requests.\nPUT: Number of http put requests.",
        "properties": {
          "COPY": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "DELETE": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "GET": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "HEAD": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "OPTIONS": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "POST": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "PUT": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchdbHttpdStatusCodes": {
        "additionalProperties": false,
        "description": "httpd_status_codes\n200: Number of http 200 ok responses.\n201: Number of http 201 created responses.\n202: Number of http 202 accepted response.\n204: Number of http 204 no content responses.\n206: Number of http 206 partial content.\n301: Number of http 301 moved permanently responses.\n302: Number of http 302 found responses.\n304: Number of http 304 not modified responses.\n400: Number of http 400 bad request responses.\n401: Number of http 401 unauthorized responses.\n402: Number of http 402 payment required responses.\n403: Number of http 403 forbidden responses.\n404: Number of http 404 not found responses.\n405: Number of http 405 method not allowed responses.\n406: Number of http 406 not acceptable responses.\n409: Number of http 409 conflict responses.\n412: Number of http 412 precondition failed responses.\n413: Number of http 413 request entity too long responses.\n414: Number of http 414 request uri too long responses.\n415: Number of http 415 unsupported media type responses.\n416: Number of http 416 requested range not satisfiable responses.\n417: Number of http 417 expectation failed responses.\n500: Number of http 500 internal server error responses.\n501: Number of http 501 not implemented responses.\n503: Number of http 503 service unavailable responses.",
        "properties": {
          "200": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "201": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "202": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "204": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "206": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "301": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "302": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "304": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "400": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "401": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "402": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "403": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "404": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "405": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "406": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "409": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "412": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "413": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "414": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "415": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "416": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "417": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "500": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "501": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "503": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchdbIoQueue": {
        "additionalProperties": false,
        "description": "io_queue\ndb_compact: Db compaction requests routed through IO queue.\ndb_update: Db update requests routed through IO queue.\ninteractive: IO directly triggered by client requests.\ninternal_repl: IO related to internal replication.\nlatency: Delay introduced by routing request through IO queue.\nlow: Number of requests routed through IO at low priority.\nmerged: Number of requests routed through IO queue that were merged.\nosproc: Number of requests routed through IO OS queue.\nother: IO related to internal replication.\nreads: Number of read requests routed through IO queue.\nundefined: Number of requests routed through IO queue without class.\nunknown: Number of unknown requests routed through IO queue.\nview_compact: View compaction requests routed through IO queue.\nview_update: View indexing requests routed through IO queue.\nwrites: Number of write requests routed through IO queue.",
        "properties": {
          "db_compact": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "db_update": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "interactive": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "internal_repl": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "latency": {
            "$ref": "#/components/schemas/NodeStatsHistogram"
          },
          "low": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "merged": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "osproc": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "other": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "reads": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "search": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "undefined": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "unknown": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "view_compact": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "view_update": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "writes": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchdbIoQueue2": {
        "additionalProperties": false,
        "description": "io_queue2\nbypassed_count: Number of requests that bypassed IO queue.\ndb_compact: db_compact statistics\ndb_meta: db_meta statistics\ndb_update: db_update statistics\ninteractive: interactive statistics\ninternal_repl: internal_repl statistics\nio_errors: Number of IO errors.\niowait: Total time request spent waiting on IO.\nlow: low priority statistics\nmerged: Number of requests routed through IO queue that were merged.\nosproc: os proc statistics\nother: other statistics\nqueued: Number of requests queued into IO.\nreads: read statistics\nsearch: Number of Search IO requests\nsubmit_delay: Delay introduced by routing request through IO queue.\nsvctm: Time taken to service the IO request.\nundefined: statistics for undefined requests\nunknown: statistics for unknown requests\nview_compact: view_compact statistics\nview_update: view_update statistics\nwrites: write statistics",
        "properties": {
          "bypassed_count": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "db_compact": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchdbIoQueue2DbCompact"
          },
          "db_meta": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchdbIoQueue2DbMeta"
          },
          "db_update": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchdbIoQueue2DbUpdate"
          },
          "interactive": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchdbIoQueue2Interactive"
          },
          "internal_repl": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchdbIoQueue2InternalRepl"
          },
          "io_errors": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "iowait": {
            "$ref": "#/components/schemas/NodeStatsHistogram"
          },
          "low": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchdbIoQueue2Low"
          },
          "merged": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "osproc": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchdbIoQueue2Osproc"
          },
          "other": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchdbIoQueue2Other"
          },
          "queued": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "reads": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchdbIoQueue2Reads"
          },
          "search": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "submit_delay": {
            "$ref": "#/components/schemas/NodeStatsHistogram"
          },
          "svctm": {
            "$ref": "#/components/schemas/NodeStatsHistogram"
          },
          "undefined": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchdbIoQueue2Undefined"
          },
          "unknown": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchdbIoQueue2Unknown"
          },
          "view_compact": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchdbIoQueue2ViewCompact"
          },
          "view_update": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchdbIoQueue2ViewUpdate"
          },
          "writes": {
            "$ref": "#/components/schemas/NodeStatsInformationCouchdbIoQueue2Writes"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchdbIoQueue2DbCompact": {
        "additionalProperties": false,
        "description": "db_compact\ncount: Db compaction requests routed through IO queue.",
        "properties": {
          "count": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchdbIoQueue2DbMeta": {
        "additionalProperties": false,
        "description": "db_meta\ncount: IO related to db_meta.",
        "properties": {
          "count": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchdbIoQueue2DbUpdate": {
        "additionalProperties": false,
        "description": "db_update\ncount: DB update requests routed through IO queue.",
        "properties": {
          "count": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchdbIoQueue2Interactive": {
        "additionalProperties": false,
        "description": "interactive\ncount: IO directly triggered by client requests.",
        "properties": {
          "count": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchdbIoQueue2InternalRepl": {
        "additionalProperties": false,
        "description": "internal_repl\ncount: IO related to internal replication.",
        "properties": {
          "count": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchdbIoQueue2Low": {
        "additionalProperties": false,
        "description": "low\ncount: Number of requests routed through IO at low priority.",
        "properties": {
          "count": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchdbIoQueue2Osproc": {
        "additionalProperties": false,
        "description": "osproc\ncount: Number of requests routed through IO OS queue.",
        "properties": {
          "count": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchdbIoQueue2Other": {
        "additionalProperties": false,
        "description": "other\ncount: IO related to internal replication.",
        "properties": {
          "count": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchdbIoQueue2Reads": {
        "additionalProperties": false,
        "description": "reads\nbypassed_count: Number of read requests that bypassed IO queue.\ncount: Number of read requests routed through IO queue.\nqueued: Number of read requests queued into IO queue.",
        "properties": {
          "bypassed_count": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "count": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "queued": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchdbIoQueue2Undefined": {
        "additionalProperties": false,
        "description": "undefined\ncount: Number of requests routed through IO queue without class",
        "properties": {
          "count": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchdbIoQueue2Unknown": {
        "additionalProperties": false,
        "description": "unknown\nbypassed_count: Number of unknown requests that bypassed IO queue.\ncount: Number of unknown requests routed through IO queue.\nqueued: Number of unknown requests queued into IO queue.",
        "properties": {
          "bypassed_count": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "count": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "queued": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchdbIoQueue2ViewCompact": {
        "additionalProperties": false,
        "description": "view_compact\ncount: View compaction requests routed through IO queue.",
        "properties": {
          "count": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchdbIoQueue2ViewUpdate": {
        "additionalProperties": false,
        "description": "view_update\ncount: View indexing requests routed through IO queue.",
        "properties": {
          "count": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchdbIoQueue2Writes": {
        "additionalProperties": false,
        "description": "writes\nbypassed_count: Number of write requests that bypassed IO queue.\ncount: Number of write requests routed through IO queue.\nqueued: Number of write requests queued into IO queue.",
        "properties": {
          "bypassed_count": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "count": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "queued": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchdbIoQueueBypassed": {
        "additionalProperties": false,
        "description": "io_queue_bypassed\ndb_compact: DB compaction requests that bypassed IO queue.\ndb_update: DB update requests that bypassed IO queue.\ninteractive: Bypassed IO directly triggered by client requests.\ninternal_repl: Bypassed IO related to internal replication.\nlow: Number of requests that bypassed IO at low priority.\nmerged: Number of requests that bypassed IO queue that were merged.\nosproc: Number of requests that bypassed IO OS queue.\nother: Bypassed IO related to internal replication.\nreads: Number of read requests that bypassed IO queue.\nundefined: Number of requests that bypassed IO queue without class.\nunknown: Number of unknown requests that bypassed IO queue.\nview_compact: View compaction requests that bypassed IO queue.\nview_update: View indexing requests that bypassed IO queue.\nwrites: Number of write requests that bypassed IO queue.",
        "properties": {
          "db_compact": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "db_update": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "interactive": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "internal_repl": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "low": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "merged": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "osproc": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "other": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "reads": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "undefined": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "unknown": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "view_compact": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "view_update": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "writes": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchdbMrview": {
        "additionalProperties": false,
        "description": "mrview\nemits: Number of invocations of emit in map functions in the view\nserver.\nmap_doc: Number of documents mapped in the view server.",
        "properties": {
          "emits": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "map_doc": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationCouchdbQueryServer": {
        "additionalProperties": false,
        "description": "query_server\nvdu_process_time: Duration of validate_doc_update function calls.\nvdu_rejects: Number of rejections by validate_doc_update function.",
        "properties": {
          "vdu_process_time": {
            "$ref": "#/components/schemas/NodeStatsHistogram"
          },
          "vdu_rejects": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationDbcopy": {
        "additionalProperties": false,
        "deprecated": true,
        "description": "dbcopy\nacquire_lock: Number of lock acquisitions performed by dbcopy.\nnoop: Number of dbcopy writes skipped.\nupdate_doc: Number of dbcopy write operations attempted.\nupdate_error: Number of failed dbcopy writes.",
        "properties": {
          "acquire_lock": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "noop": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "update_doc": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "update_error": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationDdocCache": {
        "additionalProperties": false,
        "description": "ddoc_cache\nhit: Number of design doc cache hits.\nmiss: Number of design doc cache misses.\nrecovery: Number of design doc cache recoveries.",
        "properties": {
          "hit": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "miss": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "recovery": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationDreyfus": {
        "additionalProperties": false,
        "description": "dreyfus\nhttpd: httpd statistics\nindex: index statistics\nrpc: rpc statistics",
        "properties": {
          "httpd": {
            "$ref": "#/components/schemas/NodeStatsInformationDreyfusHttpd"
          },
          "index": {
            "$ref": "#/components/schemas/NodeStatsInformationDreyfusIndex"
          },
          "rpc": {
            "$ref": "#/components/schemas/NodeStatsInformationDreyfusRpc"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationDreyfusHttpd": {
        "additionalProperties": false,
        "description": "httpd\nsearch: Distribution of overall search request latency as experienced\nby the end user.",
        "properties": {
          "search": {
            "$ref": "#/components/schemas/NodeStatsHistogram"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationDreyfusIndex": {
        "additionalProperties": false,
        "description": "index\nawait: Length of an dreyfus_index await request.\ngroup1: Length of an dreyfus_index group1 request.\ngroup2: Length of an dreyfus_index group2 request.\ninfo: Length of an dreyfus_index info request.\nsearch: Length of an dreyfus_index search request.",
        "properties": {
          "await": {
            "$ref": "#/components/schemas/NodeStatsHistogram"
          },
          "group1": {
            "$ref": "#/components/schemas/NodeStatsHistogram"
          },
          "group2": {
            "$ref": "#/components/schemas/NodeStatsHistogram"
          },
          "info": {
            "$ref": "#/components/schemas/NodeStatsHistogram"
          },
          "search": {
            "$ref": "#/components/schemas/NodeStatsHistogram"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationDreyfusRpc": {
        "additionalProperties": false,
        "description": "rpc\ngroup1: Length of a group1 rpc worker.\ngroup2: Length of a group2 rpc worker.\ninfo: Length of an info rpc worker.\nsearch: Length of a search rpc worker.",
        "properties": {
          "group1": {
            "$ref": "#/components/schemas/NodeStatsHistogram"
          },
          "group2": {
            "$ref": "#/components/schemas/NodeStatsHistogram"
          },
          "info": {
            "$ref": "#/components/schemas/NodeStatsHistogram"
          },
          "search": {
            "$ref": "#/components/schemas/NodeStatsHistogram"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationEpep": {
        "additionalProperties": false,
        "description": "epep\naccess_token_latency: Distribution of latencies for calls to acquire\naccess tokens.\nauthz_latency: Distribution of latencies for calls to retrieve pdp\ndecisions.\nauthz_service_available: IAM PDP is currently available.\ndecision_cache: decision_cache statistics\nkeystore_service_available: IAM keystore service is currently available.\nreplicator_token: replicator_token statistics\nreplicator_token_latency: Distribution of latencies for replicator\naccess token requests.\ntoken_service_available: IAM token service is currently available.",
        "properties": {
          "access_token_latency": {
            "$ref": "#/components/schemas/NodeStatsHistogram"
          },
          "authz_latency": {
            "$ref": "#/components/schemas/NodeStatsHistogram"
          },
          "authz_service_available": {
            "$ref": "#/components/schemas/NodeStatsGauge"
          },
          "decision_cache": {
            "$ref": "#/components/schemas/NodeStatsInformationEpepDecisionCache"
          },
          "keystore_service_available": {
            "$ref": "#/components/schemas/NodeStatsGauge"
          },
          "replicator_token": {
            "$ref": "#/components/schemas/NodeStatsInformationEpepReplicatorToken"
          },
          "replicator_token_latency": {
            "$ref": "#/components/schemas/NodeStatsHistogram"
          },
          "token_service_available": {
            "$ref": "#/components/schemas/NodeStatsGauge"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationEpepDecisionCache": {
        "additionalProperties": false,
        "description": "decision_cache\nfresh_hit: Cache hit for PDP decision lookup when decision is fresh.\nmiss: Cache miss for PDP decision lookup.\nstale_hit: Cache hit for PDP decision lookup when decision is stale.",
        "properties": {
          "fresh_hit": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "miss": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "stale_hit": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationEpepReplicatorToken": {
        "additionalProperties": false,
        "description": "replicator_token\ncomplete: Complete replicator access token requests.\nfailure: Failed replicator access token requests.\nincomplete: Incomplete replicator access token requests.\nsuccess: Successful replicator access token requests.",
        "properties": {
          "complete": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "failure": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "incomplete": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "success": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationFabric": {
        "additionalProperties": false,
        "description": "fabric\ndoc_update: doc_update statistics\nopen_shard: open_shard statistics\nread_repairs: read_repairs statistics\nworker: worker statistics",
        "properties": {
          "doc_update": {
            "$ref": "#/components/schemas/NodeStatsInformationFabricDocUpdate"
          },
          "open_shard": {
            "$ref": "#/components/schemas/NodeStatsInformationFabricOpenShard"
          },
          "read_repairs": {
            "$ref": "#/components/schemas/NodeStatsInformationFabricReadRepairs"
          },
          "worker": {
            "$ref": "#/components/schemas/NodeStatsInformationFabricWorker"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationFabricDocUpdate": {
        "additionalProperties": false,
        "description": "doc_update\nerrors: Number of document update errors.\nmismatched_errors: Number of document update errors with multiple\nerror types.\nwrite_quorum_errors: Number of write quorum errors.",
        "properties": {
          "errors": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "mismatched_errors": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "write_quorum_errors": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationFabricOpenShard": {
        "additionalProperties": false,
        "description": "open_shard\ntimeouts: Number of open shard timeouts.",
        "properties": {
          "timeouts": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationFabricReadRepairs": {
        "additionalProperties": false,
        "description": "read_repairs\nfailure: Number of failed read repair operations.\nsuccess: Number of successful read repair operations.",
        "properties": {
          "failure": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "success": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationFabricWorker": {
        "additionalProperties": false,
        "description": "worker\ntimeouts: Number of worker timeouts.",
        "properties": {
          "timeouts": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationGlobalChanges": {
        "additionalProperties": false,
        "description": "global_changes\ndb_writes: Number of db writes performed by global changes.\nevent_doc_conflict: Number of conflicted event docs encountered by\nglobal changes.\nlistener_pending_updates: Number of global changes updates pending\nwrites in global_changes_listener.\nrpcs: Number of rpc operations performed by global_changes.\nserver_pending_updates: Number of global changes updates pending writes\nin global_changes_server.",
        "properties": {
          "db_writes": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "event_doc_conflict": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "listener_pending_updates": {
            "$ref": "#/components/schemas/NodeStatsGauge"
          },
          "rpcs": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "server_pending_updates": {
            "$ref": "#/components/schemas/NodeStatsGauge"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationMango": {
        "additionalProperties": false,
        "description": "mango\ndocs_examined: number of documents examined by mango queries coordinated\n  by this node\nevaluate_selector: number of mango selector evaluations\nquery_invalid_index: number of mango queries that generated an invalid\n  index warning\nquery_time: length of time processing a mango query\nquorum_docs_examined: number of documents examined by mango queries,\n  using cluster quorum\nresults_returned: number of rows returned by mango queries\ntoo_many_docs_scanned: number of mango queries that generated an index\n  scan warning\nunindexed_queries: number of mango queries that could not use an index",
        "properties": {
          "docs_examined": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "evaluate_selector": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "query_invalid_index": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "query_time": {
            "$ref": "#/components/schemas/NodeStatsHistogram"
          },
          "quorum_docs_examined": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "results_returned": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "too_many_docs_scanned": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "unindexed_queries": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationMem3": {
        "additionalProperties": false,
        "description": "mem3\nshard_cache: shard_cache statistics",
        "properties": {
          "shard_cache": {
            "$ref": "#/components/schemas/NodeStatsInformationMem3ShardCache"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationMem3ShardCache": {
        "additionalProperties": false,
        "description": "shard_cache\neviction: Number of shard cache evictions.\nhit: Number of shard cache hits.\nmiss: Number of shard cache misses.",
        "properties": {
          "eviction": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "hit": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "miss": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationPread": {
        "additionalProperties": false,
        "description": "pread\nexceed_eof: Number of the attempts to read beyond end of db file.\nexceed_limit: Number of the attempts to read beyond set limit.",
        "properties": {
          "exceed_eof": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "exceed_limit": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationRexi": {
        "additionalProperties": false,
        "description": "rexi\nbuffered: Number of rexi messages buffered.\ndown: Number of rexi_down messages handled.\ndropped: Number of rexi messages dropped from buffers.\nstreams: Stream statistics",
        "properties": {
          "buffered": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "down": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "dropped": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "streams": {
            "$ref": "#/components/schemas/NodeStatsInformationRexiStreams"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationRexiStreams": {
        "additionalProperties": false,
        "description": "streams\ntimeout: timeout statistics",
        "properties": {
          "timeout": {
            "$ref": "#/components/schemas/NodeStatsInformationRexiStreamsTimeout"
          }
        },
        "type": "object"
      },
      "NodeStatsInformationRexiStreamsTimeout": {
        "additionalProperties": false,
        "description": "timeout\ninit_stream: Number of rexi stream initialization timeouts.\nstream: Number of rexi stream timeouts.\nwait_for_ack: Number of rexi stream timeouts while waiting for acks",
        "properties": {
          "init_stream": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "stream": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          },
          "wait_for_ack": {
            "$ref": "#/components/schemas/NodeStatsCounter"
          }
        },
        "type": "object"
      },
      "NodeSystemInformation": {
        "additionalProperties": true,
        "description": "Schema for system-level statistics for the running server.",
        "type": "object"
      },
      "Ok": {
        "additionalProperties": false,
        "description": "Schema for an OK result.",
        "properties": {
          "ok": {
            "description": "ok",
            "type": "boolean"
          }
        },
        "type": "object"
      },
      "PartitionFindQuery": {
        "additionalProperties": false,
        "description": "Schema for a query find operation in a partition.",
        "properties": {
          "allow_fallback": {
            "default": true,
            "description": "Whether to allow fallback to other indexes. Default is true.",
            "type": "boolean"
          },
          "bookmark": {
            "$ref": "#/components/schemas/Bookmark"
          },
          "conflicts": {
            "description": "A boolean value that indicates whether or not to include information about existing conflicts in the document.",
            "type": "boolean"
          },
          "execution_stats": {
            "description": "Use this option to find information about the query that was run. This information includes total key lookups, total document lookups (when `include_docs=true` is used), and total quorum document lookups (when each document replica is fetched).",
            "type": "boolean"
          },
          "fields": {
            "$ref": "#/components/schemas/Fields"
          },
          "limit": {
            "default": 25,
            "description": "Maximum number of results returned. The `type: text` indexes are limited to 200 results when queried.",
            "format": "int64",
            "maximum": 4294967295,
            "minimum": 0,
            "type": "integer"
          },
          "selector": {
            "$ref": "#/components/schemas/Selector"
          },
          "skip": {
            "description": "Skip the first 'n' results, where 'n' is the value that is specified.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "sort": {
            "description": "The sort field contains a list of pairs, each mapping a field name\nto a sort direction (asc or desc).\nThe first field name and direction pair is the topmost level of\nsort. The second pair, if provided, is the next level of sort.\nThe field can be any field, using dotted notation if desired for\nsub-document fields.\n\nFor example in JSON:\n`[{\"fieldName1\": \"desc\"}, {\"fieldName2.subFieldName1\": \"desc\"}]`\n\nWhen sorting with multiple fields, ensure that there is an index\nalready defined with all the sort fields in the same order and each\nobject in the sort array has a single key or at least one of the\nsort fields is included in the selector. All sorting fields must\nuse the same sort direction, either all ascending or all descending.",
            "items": {
              "$ref": "#/components/schemas/FieldSort"
            },
            "maxItems": 65535,
            "minItems": 0,
            "type": "array"
          },
          "stable": {
            "description": "Whether or not the view results should be returned from a \"stable\" set of shards.",
            "type": "boolean"
          },
          "update": {
            "default": "true",
            "description": "Whether to update the index prior to returning the result.",
            "enum": [
              "false",
              "true",
              "lazy"
            ],
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "use_index": {
            "description": "Use this option to identify a specific index to answer the query,\nrather than letting the IBM Cloudant query planner choose an index.\nSpecified as a two element array of design document id\nfollowed by index name, for example `[\"my_design_doc\", \"my_index\"]`.\n\nIt’s recommended to specify indexes explicitly in your queries\nto prevent existing queries being affected by new indexes that might\nget added later.\n\nIf the specified index doesn't exist or can't answer the query\nthen the server ignores the value and answers using another index\nor a full scan of all documents.\nTo change this behavior set `allow_fallback` to `false` and the\nserver responds instead with a `400` status code if the requested\nindex is unsuitable to answer the query.",
            "items": {
              "maxLength": 7168,
              "minLength": 1,
              "pattern": "^.+$",
              "type": "string"
            },
            "maxItems": 2,
            "minItems": 2,
            "type": "array"
          }
        },
        "required": [
          "selector"
        ],
        "type": "object"
      },
      "PartitionInformation": {
        "additionalProperties": false,
        "description": "Schema for information about a database partition.",
        "properties": {
          "db_name": {
            "$ref": "#/components/schemas/DatabaseName"
          },
          "doc_count": {
            "description": "A count of the documents in the specified database partition.",
            "format": "int64",
            "maximum": 195225786,
            "minimum": 0,
            "type": "integer"
          },
          "doc_del_count": {
            "description": "Number of deleted documents.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "partition": {
            "$ref": "#/components/schemas/PartitionKey"
          },
          "partitioned_indexes": {
            "$ref": "#/components/schemas/PartitionInformationIndexes"
          },
          "sizes": {
            "$ref": "#/components/schemas/PartitionInformationSizes"
          }
        },
        "required": [
          "db_name",
          "doc_count",
          "doc_del_count",
          "partition",
          "sizes"
        ],
        "type": "object"
      },
      "PartitionInformationIndexes": {
        "additionalProperties": false,
        "description": "Schema for information about the partition index count and limit in a database.",
        "properties": {
          "count": {
            "description": "Total count of the partitioned indexes.",
            "format": "int64",
            "maximum": 10,
            "minimum": 0,
            "type": "integer"
          },
          "indexes": {
            "$ref": "#/components/schemas/PartitionInformationIndexesIndexes"
          },
          "limit": {
            "description": "The partitioned index limit.",
            "format": "int64",
            "maximum": 10,
            "minimum": 0,
            "type": "integer"
          }
        }
      },
      "PartitionInformationIndexesIndexes": {
        "additionalProperties": false,
        "description": "The count breakdown of partitioned indexes.",
        "properties": {
          "search": {
            "description": "Number of partitioned search indexes.",
            "format": "int64",
            "maximum": 10,
            "minimum": 0,
            "type": "integer"
          },
          "view": {
            "description": "Number of partitioned view indexes.",
            "format": "int64",
            "maximum": 10,
            "minimum": 0,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "PartitionInformationSizes": {
        "description": "The size of active and external data, in bytes.",
        "properties": {
          "active": {
            "description": "The size of live data inside the database, in bytes.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "external": {
            "description": "The uncompressed size of database contents in bytes.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        }
      },
      "PartitionKey": {
        "description": "Schema for a partition key.",
        "maxLength": 7168,
        "minLength": 1,
        "pattern": "^[^_:][^:]*$",
        "type": "string"
      },
      "PartitionSearchQuery": {
        "additionalProperties": false,
        "description": "Schema for a query search operation in a partition.",
        "properties": {
          "bookmark": {
            "$ref": "#/components/schemas/Bookmark"
          },
          "highlight_fields": {
            "description": "Specifies which fields to highlight. If specified, the result object contains a highlights field with an entry for each specified field.",
            "items": {
              "maxLength": 7168,
              "minLength": 1,
              "pattern": "^.+$",
              "type": "string"
            },
            "maxItems": 65535,
            "minItems": 0,
            "type": "array"
          },
          "highlight_number": {
            "default": 1,
            "description": "Number of fragments that are returned in highlights. If the search term occurs less often than the number of fragments that are specified, longer fragments are returned.",
            "format": "int64",
            "maximum": 1048521,
            "minimum": 1,
            "type": "integer"
          },
          "highlight_post_tag": {
            "default": "</em>",
            "description": "A string that is inserted after the highlighted word in the highlights output.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^</.*>$",
            "type": "string"
          },
          "highlight_pre_tag": {
            "default": "<em>",
            "description": "A string that is inserted before the highlighted word in the highlights output.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^<.*>$",
            "type": "string"
          },
          "highlight_size": {
            "default": 100,
            "description": "Number of characters in each fragment for highlights.",
            "format": "int64",
            "maximum": 1048521,
            "minimum": 1,
            "type": "integer"
          },
          "include_docs": {
            "default": false,
            "description": "Include the full content of the documents in the return.",
            "type": "boolean"
          },
          "include_fields": {
            "description": "A JSON array of field names to include in search results. Any fields that are included must be indexed with the store:true option. The default is all fields.",
            "items": {
              "maxLength": 7168,
              "minLength": 1,
              "pattern": "^.+$",
              "type": "string"
            },
            "maxItems": 65535,
            "minItems": 0,
            "type": "array"
          },
          "limit": {
            "description": "Limit the number of the returned documents to the specified number.",
            "format": "int64",
            "maximum": 200,
            "minimum": 0,
            "type": "integer"
          },
          "query": {
            "description": "The Lucene query to execute.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string",
            "x-alias": "q"
          },
          "sort": {
            "description": "Specifies the sort order of the results. In a grouped search (when group_field is used), this parameter specifies the sort order within a group. The default sort order is relevance. A JSON string of the form \"fieldname&lt;type&gt;\" or \"-fieldname&lt;type&gt;\" for descending order, where fieldname is the name of a string or number field, and type is either a number, a string, or a JSON array of strings. The type part is optional, and defaults to number. Some examples are \"foo\", \"-foo\", \"bar&lt;string&gt;\", \"-foo&lt;number&gt;\" and [\"-foo&lt;number&gt;\", \"bar&lt;string&gt;\"]. String fields that are used for sorting must not be analyzed fields. Fields that are used for sorting must be indexed by the same indexer that is used for the search query.",
            "items": {
              "$ref": "#/components/schemas/SearchSort"
            },
            "maxItems": 65535,
            "minItems": 0,
            "type": "array"
          },
          "stale": {
            "description": "Do not wait for the index to finish building to return results.",
            "enum": [
              "ok"
            ],
            "type": "string"
          }
        },
        "required": [
          "query"
        ],
        "type": "object"
      },
      "PartitionViewQuery": {
        "additionalProperties": false,
        "allOf": [
          {
            "$ref": "#/components/schemas/CommonViewQuery"
          },
          {
            "additionalProperties": false,
            "description": "Schema for a partitioned query view operation.",
            "properties": {
              "end_key": {
                "$ref": "#/components/schemas/AnyJsonType"
              },
              "end_key_doc_id": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/DocumentId"
                  },
                  {
                    "description": "Stop returning rows at the specified document ID. No effect if using `group` or not providing end key."
                  }
                ]
              },
              "group": {
                "default": false,
                "description": "Parameter to specify whether to group reduced results by key. Valid only if a reduce function defined in the view. If the view emits key in JSON array format, then it is possible to reduce groups further based on the number of array elements with the `group_level` parameter.",
                "type": "boolean"
              },
              "group_level": {
                "description": "Parameter to specify a group level to be used. Only applicable if the view uses keys that are JSON arrays. Implies group is `true`. Group level groups the reduced results by the specified number of array elements. If unset, results are grouped by the entire array key, returning a reduced value for each complete key.",
                "format": "int64",
                "maximum": 4294967295,
                "minimum": 1,
                "type": "integer"
              },
              "key": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/AnyJsonType"
                  },
                  {
                    "description": "Parameter to specify to return only rows that match the specified key. String representation of any JSON type that matches the key type emitted by the view function."
                  }
                ]
              },
              "keys": {
                "description": "Parameter to specify returning only rows that match any of the specified keys. A JSON array of keys that match the key type emitted by the view function.",
                "items": {
                  "$ref": "#/components/schemas/AnyJsonType"
                },
                "maxItems": 65535,
                "minItems": 0,
                "type": "array"
              },
              "reduce": {
                "default": true,
                "description": "Parameter to specify whether to use the reduce function in\na map-reduce view. Default is true when a reduce function is\ndefined.\n\nA default `reduce` view type can be disabled to behave like a\n`map` by setting `reduce=false` explicitly.\n\nBe aware that `include_docs=true` is only for `map` views.\nReduced views do not include document IDs in view rows.",
                "type": "boolean"
              },
              "start_key": {
                "$ref": "#/components/schemas/AnyJsonType"
              },
              "start_key_doc_id": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/DocumentId"
                  },
                  {
                    "description": "Start returning rows at the specified document ID. No effect if using `group` or not providing start key."
                  }
                ]
              },
              "update": {
                "default": "true",
                "description": "Parameter to specify whether or not the view in question\nshould be updated prior to responding to the user.\n\n* `true` - Return results after the view is updated.\n* `false` - Return results without updating the view.\n* `lazy` - Return the view results without waiting for an\nupdate, but update them immediately after the request.",
                "enum": [
                  "true",
                  "false",
                  "lazy"
                ],
                "type": "string"
              }
            },
            "type": "object",
            "x-alias": {
              "end_key": "endkey",
              "end_key_doc_id": "endkey_docid",
              "start_key": "startkey",
              "start_key_doc_id": "startkey_docid"
            }
          }
        ],
        "description": "Schema for a partitioned query view operation.",
        "type": "object"
      },
      "PartitionedIndexesDetailedInformation": {
        "description": "Number of partitioned indexes by type.",
        "properties": {
          "search": {
            "description": "Number of partitioned indexes of search type.",
            "format": "int64",
            "maximum": 10,
            "minimum": 0,
            "type": "integer"
          },
          "view": {
            "description": "Number of partitioned indexes of view type.",
            "format": "int64",
            "maximum": 10,
            "minimum": 0,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "PartitionedIndexesInformation": {
        "description": "Information about database's partitioned indexes.",
        "properties": {
          "count": {
            "description": "Total number of partitioned indexes in the database.",
            "format": "int64",
            "maximum": 10,
            "minimum": 0,
            "type": "integer"
          },
          "indexes": {
            "$ref": "#/components/schemas/PartitionedIndexesDetailedInformation"
          },
          "limit": {
            "default": 10,
            "description": "Maximum allowed number of partitioned indexes in the database.",
            "format": "int64",
            "maximum": 10,
            "minimum": 0,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "PathDocumentId": {
        "description": "Schema for a document ID.",
        "maxLength": 7168,
        "minLength": 1,
        "pattern": "^[^_].+$",
        "type": "string"
      },
      "QueryParameters": {
        "additionalProperties": {
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^.+$",
          "type": "string"
        },
        "description": "Schema for a map of string key value pairs, such as query parameters.",
        "type": "object"
      },
      "ReplicaCount": {
        "default": 3,
        "description": "Schema for the number of replicas of a database in a cluster. The cluster is using the default value and it cannot be changed by the user.",
        "format": "int64",
        "maximum": 3,
        "minimum": 3,
        "type": "integer"
      },
      "ReplicationCreateTargetParameters": {
        "additionalProperties": false,
        "description": "Request parameters to use during target database creation.",
        "properties": {
          "n": {
            "$ref": "#/components/schemas/ReplicaCount"
          },
          "partitioned": {
            "default": false,
            "description": "Parameter to specify whether to enable database partitions when creating the target database.",
            "type": "boolean"
          },
          "q": {
            "$ref": "#/components/schemas/ShardCount"
          }
        },
        "type": "object"
      },
      "ReplicationDatabase": {
        "additionalProperties": false,
        "description": "Schema for a replication source or target database.",
        "properties": {
          "auth": {
            "$ref": "#/components/schemas/ReplicationDatabaseAuth"
          },
          "headers": {
            "additionalProperties": {
              "maxLength": 7168,
              "minLength": 1,
              "pattern": "^.+$",
              "type": "string"
            },
            "description": "Replication request headers.",
            "type": "object"
          },
          "url": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DatabaseUrl"
              },
              {
                "description": "Replication database URL."
              }
            ]
          }
        },
        "required": [
          "url"
        ],
        "type": "object"
      },
      "ReplicationDatabaseAuth": {
        "additionalProperties": false,
        "description": "Schema for replication source or target database authentication.",
        "properties": {
          "basic": {
            "$ref": "#/components/schemas/ReplicationDatabaseAuthBasic"
          },
          "iam": {
            "$ref": "#/components/schemas/ReplicationDatabaseAuthIam"
          }
        },
        "type": "object"
      },
      "ReplicationDatabaseAuthBasic": {
        "additionalProperties": false,
        "description": "Schema for basic authentication of replication source or target database.",
        "properties": {
          "password": {
            "description": "The password associated with the username.",
            "maxLength": 7168,
            "minLength": 16,
            "pattern": "^[^\\n\\t]{16,}$",
            "type": "string"
          },
          "username": {
            "$ref": "#/components/schemas/Username"
          }
        },
        "required": [
          "password",
          "username"
        ],
        "type": "object"
      },
      "ReplicationDatabaseAuthIam": {
        "additionalProperties": false,
        "description": "Schema for an IAM API key for replication database authentication.",
        "properties": {
          "api_key": {
            "description": "IAM API key.",
            "maxLength": 44,
            "minLength": 1,
            "pattern": "^[A-Za-z0-9_-]{2,}$",
            "type": "string"
          }
        },
        "required": [
          "api_key"
        ],
        "type": "object"
      },
      "ReplicationDocument": {
        "additionalProperties": false,
        "allOf": [
          {
            "$ref": "#/components/schemas/Document"
          },
          {
            "additionalProperties": false,
            "properties": {
              "cancel": {
                "description": "Cancels the replication.",
                "type": "boolean"
              },
              "checkpoint_interval": {
                "default": 30000,
                "description": "Defines replication checkpoint interval in milliseconds.",
                "format": "int64",
                "maximum": 2147483647,
                "minimum": 0,
                "type": "integer"
              },
              "connection_timeout": {
                "default": 30000,
                "description": "HTTP connection timeout per replication. Even for very fast/reliable networks it might need to be increased if a remote database is too busy.",
                "format": "int64",
                "maximum": 2147483647,
                "minimum": 0,
                "type": "integer"
              },
              "continuous": {
                "default": false,
                "description": "Configure the replication to be continuous.",
                "type": "boolean"
              },
              "create_target": {
                "default": false,
                "description": "Creates the target database. Requires administrator privileges on target server.",
                "type": "boolean"
              },
              "create_target_params": {
                "$ref": "#/components/schemas/ReplicationCreateTargetParameters"
              },
              "doc_ids": {
                "$ref": "#/components/schemas/DocumentIds"
              },
              "filter": {
                "description": "The name of a filter function which is defined in a design document in the source database in {ddoc_id}/{filter} format. It determines which documents get replicated. Using the selector option provides performance benefits when compared with using the filter option. Use the selector option when possible.",
                "maxLength": 7168,
                "minLength": 1,
                "pattern": "^[^/]+/.+$",
                "type": "string"
              },
              "http_connections": {
                "default": 20,
                "description": "Maximum number of HTTP connections per replication.",
                "format": "int64",
                "maximum": 100,
                "minimum": 1,
                "type": "integer"
              },
              "owner": {
                "description": "The replication document owner. The server sets an appropriate value if the field is unset when writing a replication document. Only administrators can modify the value to an owner other than themselves.",
                "maxLength": 7168,
                "minLength": 1,
                "pattern": "^.+$",
                "type": "string"
              },
              "proxy": {
                "deprecated": true,
                "description": "Deprecated: see `source_proxy` and `target_proxy`. Address of a (http or socks5 protocol) proxy server through which replication with the source and target databases should occur.",
                "maxLength": 7168,
                "minLength": 1,
                "pattern": "^.+$",
                "type": "string",
                "x-sdk-exclude": true
              },
              "query_params": {
                "$ref": "#/components/schemas/QueryParameters"
              },
              "retries_per_request": {
                "default": 5,
                "description": "Number of times a replication request is retried. The requests are retried with a doubling exponential backoff starting at 0.25 seconds, with a cap at 5 minutes.",
                "format": "int64",
                "maximum": 5000,
                "minimum": 0,
                "type": "integer"
              },
              "selector": {
                "$ref": "#/components/schemas/Selector"
              },
              "since_seq": {
                "description": "Start the replication at a specific sequence value.",
                "maxLength": 7168,
                "minLength": 1,
                "pattern": "^.+$",
                "type": "string"
              },
              "socket_options": {
                "description": "Replication socket options.",
                "maxLength": 7168,
                "minLength": 1,
                "pattern": "^.+$",
                "type": "string"
              },
              "source": {
                "$ref": "#/components/schemas/ReplicationDatabase"
              },
              "source_proxy": {
                "deprecated": true,
                "description": "This setting is forbidden in IBM Cloudant replication documents. This setting may be used with alternative replication mediators.\n\nAddress of a (http or socks5 protocol) proxy server through which replication with the source database should occur.",
                "maxLength": 7168,
                "minLength": 1,
                "nullable": true,
                "pattern": "^http(s)?:\\/\\/.*$",
                "type": "string"
              },
              "target": {
                "$ref": "#/components/schemas/ReplicationDatabase"
              },
              "target_proxy": {
                "deprecated": true,
                "description": "This setting is forbidden in IBM Cloudant replication documents. This setting may be used with alternative replication mediators.\n\nAddress of a (http or socks5 protocol) proxy server through which replication with the target database should occur.",
                "maxLength": 7168,
                "minLength": 1,
                "nullable": true,
                "pattern": "^http(s)?:\\/\\/.*$",
                "type": "string"
              },
              "use_bulk_get": {
                "description": "Specify whether to use _bulk_get for fetching documents from the source. If unset, the server configured default will be used.",
                "type": "boolean"
              },
              "use_checkpoints": {
                "default": true,
                "description": "Specify if checkpoints should be saved during replication. Using checkpoints means a replication can be efficiently resumed.",
                "type": "boolean"
              },
              "user_ctx": {
                "$ref": "#/components/schemas/UserContext"
              },
              "winning_revs_only": {
                "default": false,
                "description": "Replicate only the winning revisions. Replication with this mode discards conflicting revisions. Replication IDs and checkpoints generated by this mode are different to those generated by default, so it is possible to first replicate the winning revisions then later backfill remaining revisions with a regular replication job.",
                "type": "boolean"
              },
              "worker_batch_size": {
                "default": 500,
                "description": "Controls how many documents are processed. After each batch a checkpoint is written so this controls how frequently checkpointing occurs.",
                "format": "int64",
                "maximum": 65535,
                "minimum": 1,
                "type": "integer"
              },
              "worker_processes": {
                "default": 4,
                "description": "Controls how many separate processes will read from the changes manager and write to the target. A higher number can improve throughput.",
                "format": "int64",
                "maximum": 16,
                "minimum": 1,
                "type": "integer"
              }
            },
            "required": [
              "source",
              "target"
            ],
            "type": "object"
          }
        ],
        "description": "Schema for a replication document. Note that `selector`, `doc_ids`, and `filter` are incompatible with each other.",
        "type": "object"
      },
      "ReplicationHistory": {
        "additionalProperties": false,
        "description": "Schema for replication history information.",
        "properties": {
          "bulk_get_attempts": {
            "description": "Number of attempted _bulk_get fetches",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "bulk_get_docs": {
            "description": "Number of documents read with _bulk_get",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "doc_write_failures": {
            "description": "Number of document write failures.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "docs_read": {
            "description": "Number of documents read.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "docs_written": {
            "description": "Number of documents written to target.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "end_last_seq": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Sequence"
              },
              {
                "description": "Last sequence number in changes stream."
              }
            ]
          },
          "end_time": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DateTimeRFC2822"
              },
              {
                "description": "Date/Time replication operation completed in RFC 2822 format."
              }
            ]
          },
          "missing_checked": {
            "description": "Number of missing documents checked.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "missing_found": {
            "description": "Number of missing documents found.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "recorded_seq": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Sequence"
              },
              {
                "description": "Last recorded sequence number."
              }
            ]
          },
          "session_id": {
            "description": "Session ID for this replication operation.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "start_last_seq": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Sequence"
              },
              {
                "description": "First sequence number in changes stream."
              }
            ]
          },
          "start_time": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DateTimeRFC2822"
              },
              {
                "description": "Date/Time replication operation started in RFC 2822 format."
              }
            ]
          }
        },
        "required": [
          "doc_write_failures",
          "docs_read",
          "docs_written",
          "end_last_seq",
          "end_time",
          "missing_checked",
          "missing_found",
          "recorded_seq",
          "session_id",
          "start_last_seq",
          "start_time"
        ],
        "type": "object"
      },
      "ReplicationInformation": {
        "additionalProperties": false,
        "description": "Schema for information about a replication request.",
        "properties": {
          "_local_id": {
            "description": "Replication local ID.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "ok": {
            "default": true,
            "description": "Replication status.",
            "type": "boolean"
          }
        },
        "required": [
          "_local_id",
          "ok"
        ],
        "type": "object"
      },
      "ReplicationResult": {
        "additionalProperties": false,
        "description": "Schema for a replication result.",
        "properties": {
          "history": {
            "description": "Replication history.",
            "items": {
              "$ref": "#/components/schemas/ReplicationHistory"
            },
            "maxItems": 4294967295,
            "minItems": 1,
            "type": "array"
          },
          "no_changes": {
            "description": "Changes since last checkpoint in replication history.",
            "type": "boolean"
          },
          "ok": {
            "default": true,
            "description": "Replication status.",
            "type": "boolean"
          },
          "replication_id_version": {
            "description": "Replication protocol version.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "session_id": {
            "description": "Unique session ID.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "source_last_seq": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Sequence"
              },
              {
                "description": "Last sequence number read from source database."
              }
            ]
          }
        },
        "required": [
          "history",
          "ok",
          "replication_id_version",
          "session_id",
          "source_last_seq"
        ],
        "type": "object"
      },
      "ReplicationState": {
        "description": "Schema for replication state.",
        "enum": [
          "initializing",
          "error",
          "pending",
          "running",
          "crashing",
          "completed",
          "failed"
        ],
        "type": "string"
      },
      "RequestId": {
        "description": "A UUIDv4 value to uniquely identify a request.",
        "maxLength": 36,
        "minLength": 36,
        "pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
        "type": "string"
      },
      "ReshardInformation": {
        "additionalProperties": false,
        "description": "Schema for the shard splitting cluster summary.",
        "properties": {
          "completed": {
            "description": "Number of complete jobs.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "failed": {
            "description": "Number of failed jobs.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "running": {
            "description": "Number of running jobs.",
            "format": "int64",
            "maximum": 48,
            "minimum": 0,
            "type": "integer"
          },
          "state": {
            "description": "States of the shard splitting application. When shard splitting is running on the cluster then all the jobs that haven't been individually stopped will be running as well. When shard splitting is stopped then all the shard splitting jobs will be stopped on the cluster.",
            "enum": [
              "running",
              "stopped"
            ],
            "type": "string"
          },
          "state_reason": {
            "description": "State reason.",
            "maxLength": 7168,
            "minLength": 1,
            "nullable": true,
            "pattern": "^.+$",
            "type": "string"
          },
          "stopped": {
            "description": "Number of stopped jobs.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "total": {
            "description": "Total number of jobs.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "completed",
          "failed",
          "running",
          "state",
          "state_reason",
          "stopped",
          "total"
        ],
        "type": "object"
      },
      "ReshardJobInformation": {
        "additionalProperties": false,
        "description": "Schema for the state of a shard splitting job.",
        "properties": {
          "history": {
            "description": "The timeline of job state transitions with a timestamp and additional details (if available).",
            "items": {
              "$ref": "#/components/schemas/ReshardJobInformationItems"
            },
            "maxItems": 20,
            "minItems": 0,
            "type": "array"
          },
          "id": {
            "description": "The ID of the job.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "job_state": {
            "description": "This is the running state of the job.",
            "enum": [
              "completed",
              "failed",
              "new",
              "running",
              "stopped"
            ],
            "type": "string"
          },
          "node": {
            "description": "Node where this job is running.",
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "source": {
            "description": "Source shard.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "split_state": {
            "description": "How far along the shard splitting process has progressed.",
            "enum": [
              "build_indices",
              "completed",
              "copy_local_docs",
              "initial_copy",
              "new",
              "source_delete",
              "topoff1",
              "topoff2",
              "topoff3",
              "update_shard_map",
              "wait_source_close"
            ],
            "type": "string"
          },
          "start_time": {
            "description": "Time when job had started running last. A job might have been stopped or the node restarted to this time might not match with the creation time.",
            "format": "date-time",
            "maxLength": 26,
            "minLength": 1,
            "type": "string"
          },
          "state_info": {
            "$ref": "#/components/schemas/ReshardJobInformationStateInfo"
          },
          "target": {
            "description": "Target shards.",
            "items": {
              "maxLength": 7168,
              "minLength": 1,
              "pattern": "^.+$",
              "type": "string"
            },
            "maxItems": 4294967295,
            "minItems": 0,
            "type": "array"
          },
          "type": {
            "$ref": "#/components/schemas/ReshardJobType"
          },
          "update_time": {
            "description": "Time of the last update to the job state.",
            "format": "date-time",
            "maxLength": 26,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "history",
          "id",
          "job_state",
          "node",
          "source",
          "split_state",
          "start_time",
          "state_info",
          "target",
          "type",
          "update_time"
        ],
        "type": "object"
      },
      "ReshardJobInformationItems": {
        "additionalProperties": false,
        "properties": {
          "detail": {
            "description": "Detail.",
            "maxLength": 7168,
            "minLength": 1,
            "nullable": true,
            "pattern": "^.+$",
            "type": "string"
          },
          "timestamp": {
            "description": "Timestamp.",
            "format": "date-time",
            "maxLength": 26,
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "description": "Type.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          }
        },
        "required": [
          "detail",
          "timestamp",
          "type"
        ],
        "type": "object"
      },
      "ReshardJobInformationStateInfo": {
        "additionalProperties": true,
        "description": "Additional information about the current running state. On retry it will include the last error that cause the retry to happen.",
        "properties": {
          "reason": {
            "description": "Failure reason.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          }
        },
        "type": "object"
      },
      "ReshardJobResult": {
        "additionalProperties": false,
        "allOf": [
          {
            "$ref": "#/components/schemas/Ok"
          },
          {
            "$ref": "#/components/schemas/Error"
          },
          {
            "properties": {
              "id": {
                "$ref": "#/components/schemas/DocumentId"
              },
              "node": {
                "description": "Node name.",
                "maxLength": 255,
                "minLength": 1,
                "pattern": "^.+$",
                "type": "string"
              },
              "shard": {
                "description": "Database shard.",
                "maxLength": 7168,
                "minLength": 1,
                "pattern": "^.+$",
                "type": "string"
              }
            },
            "type": "object"
          }
        ],
        "description": "Schema for a reshard job configuration.",
        "required": [
          "node",
          "shard"
        ]
      },
      "ReshardJobType": {
        "description": "Job type. Currently the only type accepted is split.",
        "enum": [
          "split"
        ],
        "type": "string"
      },
      "ReshardJobsConfiguration": {
        "additionalProperties": false,
        "description": "Schema for a reshard job configuration.",
        "properties": {
          "db": {
            "$ref": "#/components/schemas/DatabaseName"
          },
          "node": {
            "description": "Node name.",
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "range": {
            "description": "Shard range.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "shard": {
            "description": "Database shard.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/ReshardJobType"
          }
        },
        "required": [
          "type"
        ],
        "type": "object"
      },
      "ReshardJobsInformation": {
        "additionalProperties": false,
        "allOf": [
          {
            "$ref": "#/components/schemas/CommonViewResult"
          },
          {
            "additionalProperties": false,
            "description": "Schema for a list of shard splitting jobs.",
            "properties": {
              "jobs": {
                "description": "All split jobs.",
                "items": {
                  "$ref": "#/components/schemas/ReshardJobInformation"
                },
                "maxItems": 48,
                "minItems": 0,
                "type": "array"
              },
              "total_rows": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/TotalRows"
                  },
                  {
                    "description": "Total number of shard splitting jobs."
                  }
                ]
              }
            },
            "required": [
              "jobs"
            ],
            "type": "object"
          }
        ],
        "required": [
          "offset",
          "total_rows"
        ]
      },
      "ReshardJobsResult": {
        "description": "Schema for the result of a shard splitting jobs response.",
        "items": {
          "$ref": "#/components/schemas/ReshardJobResult"
        },
        "maxItems": 4294967295,
        "minItems": 0,
        "type": "array"
      },
      "ReshardState": {
        "additionalProperties": false,
        "description": "Schema for the state information of a shard splitting job.",
        "properties": {
          "reason": {
            "description": "Reason for job state.",
            "maxLength": 7168,
            "minLength": 1,
            "nullable": true,
            "pattern": "^.+$",
            "type": "string"
          },
          "state": {
            "description": "Job state.",
            "enum": [
              "completed",
              "failed",
              "running",
              "stopped"
            ],
            "type": "string"
          }
        },
        "required": [
          "reason",
          "state"
        ],
        "type": "object"
      },
      "Revisions": {
        "additionalProperties": false,
        "description": "Schema for list of revision information.",
        "properties": {
          "ids": {
            "description": "Array of valid revision IDs, in reverse order (latest first).",
            "items": {
              "maxLength": 7168,
              "minLength": 1,
              "pattern": "^[0-9a-fA-F]{32}$",
              "type": "string"
            },
            "maxItems": 4294967295,
            "minItems": 1,
            "type": "array"
          },
          "start": {
            "description": "Prefix number for the latest revision.",
            "format": "int64",
            "maximum": 4294967295,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "ids",
          "start"
        ],
        "type": "object"
      },
      "RevsDiff": {
        "additionalProperties": false,
        "description": "Schema for information about missing revs and possible ancestors.",
        "properties": {
          "missing": {
            "description": "List of missing revisions.",
            "items": {
              "$ref": "#/components/schemas/DocumentRevisionIdentifier"
            },
            "maxItems": 4294967295,
            "minItems": 0,
            "type": "array"
          },
          "possible_ancestors": {
            "description": "List of possible ancestor revisions.",
            "items": {
              "$ref": "#/components/schemas/DocumentRevisionIdentifier"
            },
            "maxItems": 4294967295,
            "minItems": 0,
            "type": "array"
          }
        },
        "type": "object"
      },
      "RevsDiffResult": {
        "additionalProperties": {
          "$ref": "#/components/schemas/RevsDiff"
        },
        "description": "Schema for mapping document IDs to RevsDiff information.",
        "type": "object"
      },
      "RevsLimit": {
        "description": "Schema for the revision limit.",
        "format": "int64",
        "maximum": 4294967295,
        "minimum": 1,
        "type": "integer"
      },
      "Role": {
        "description": "Schema for a security role.",
        "enum": [
          "_reader",
          "_writer",
          "_admin",
          "_replicator",
          "_db_updates",
          "_design",
          "_shards",
          "_security"
        ],
        "type": "string"
      },
      "SchedulerDocsResult": {
        "additionalProperties": false,
        "allOf": [
          {
            "$ref": "#/components/schemas/CommonViewResult"
          },
          {
            "additionalProperties": false,
            "properties": {
              "docs": {
                "description": "Array of replication scheduler doc objects.",
                "items": {
                  "$ref": "#/components/schemas/SchedulerDocument"
                },
                "maxItems": 4294967295,
                "minItems": 0,
                "type": "array"
              },
              "total_rows": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/TotalRows"
                  },
                  {
                    "description": "Total number of replication scheduler documents."
                  }
                ]
              }
            },
            "required": [
              "docs"
            ],
            "type": "object"
          }
        ],
        "description": "Schema for a listing of replication scheduler documents.",
        "required": [
          "offset",
          "total_rows"
        ]
      },
      "SchedulerDocument": {
        "additionalProperties": false,
        "description": "Schema for a replication scheduler document.",
        "properties": {
          "database": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DatabaseName"
              },
              {
                "description": "Database where replication document came from"
              }
            ]
          },
          "doc_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DocumentId"
              },
              {
                "description": "Replication document ID"
              }
            ]
          },
          "error_count": {
            "description": "Consecutive errors count. Indicates how many times in a row this replication has crashed. Replication will be retried with an exponential backoff based on this number. As soon as the replication succeeds this count is reset to 0. To can be used to get an idea why a particular replication is not making progress.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "id": {
            "description": "Replication ID, or null if state is completed or failed.",
            "maxLength": 7168,
            "minLength": 1,
            "nullable": true,
            "pattern": "^.+$",
            "type": "string"
          },
          "info": {
            "$ref": "#/components/schemas/SchedulerInfo"
          },
          "last_updated": {
            "description": "Timestamp of last state update.",
            "format": "date-time",
            "maxLength": 26,
            "minLength": 1,
            "type": "string"
          },
          "node": {
            "description": "Cluster node where the job is running.",
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "source": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DatabaseUrl"
              },
              {
                "description": "Replication source."
              }
            ]
          },
          "source_proxy": {
            "deprecated": true,
            "description": "Forbidden in IBM Cloudant mediated replications.\n\nAddress of the (http or socks5 protocol) proxy server through which replication with the source database occurs.",
            "maxLength": 7168,
            "minLength": 1,
            "nullable": true,
            "pattern": "^.+$",
            "type": "string"
          },
          "start_time": {
            "description": "Timestamp of when the replication was started.",
            "format": "date-time",
            "maxLength": 26,
            "minLength": 1,
            "type": "string"
          },
          "state": {
            "$ref": "#/components/schemas/ReplicationState"
          },
          "target": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DatabaseUrl"
              },
              {
                "description": "Replication target."
              }
            ]
          },
          "target_proxy": {
            "deprecated": true,
            "description": "Forbidden in IBM Cloudant mediated replications.\n\nAddress of the (http or socks5 protocol) proxy server through which replication with the target database occurs.",
            "maxLength": 7168,
            "minLength": 1,
            "nullable": true,
            "pattern": "^.+$",
            "type": "string"
          }
        },
        "required": [
          "database",
          "doc_id",
          "error_count",
          "id",
          "info",
          "last_updated",
          "start_time",
          "state"
        ],
        "type": "object"
      },
      "SchedulerInfo": {
        "additionalProperties": false,
        "description": "Schema for scheduler document information. A JSON object that may contain additional information about the state. For error states this will contain an error field and string value.",
        "nullable": true,
        "properties": {
          "changes_pending": {
            "description": "The count of changes not yet replicated.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "nullable": true,
            "type": "integer"
          },
          "checkpointed_source_seq": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Sequence"
              },
              {
                "description": "The source sequence id which was last successfully replicated."
              }
            ]
          },
          "doc_write_failures": {
            "description": "The count of docs which failed to be written to the target.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "docs_read": {
            "description": "The count of docs which have been read from the source.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "docs_written": {
            "description": "The count of docs which have been written to the target.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "error": {
            "description": "Replication error message.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "missing_revisions_found": {
            "description": "The count of revisions which were found on the source, but missing from the target.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "revisions_checked": {
            "description": "The count of revisions which have been checked since this replication began.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "source_seq": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Sequence"
              },
              {
                "description": "The last sequence number obtained from the source database changes feed."
              }
            ]
          },
          "through_seq": {
            "allOf": [
              {
                "$ref": "#/components/schemas/Sequence"
              },
              {
                "description": "The last sequence number processed by the replicator."
              }
            ]
          }
        },
        "type": "object"
      },
      "SchedulerJob": {
        "additionalProperties": false,
        "description": "Schema for a replication scheduler job.",
        "properties": {
          "database": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DatabaseName"
              },
              {
                "description": "Replication document database."
              }
            ]
          },
          "doc_id": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DocumentId"
              },
              {
                "description": "Replication document ID"
              }
            ]
          },
          "history": {
            "description": "Timestamped history of events as a list of objects.",
            "items": {
              "$ref": "#/components/schemas/SchedulerJobEvent"
            },
            "maxItems": 20,
            "minItems": 0,
            "type": "array"
          },
          "id": {
            "$ref": "#/components/schemas/JobId"
          },
          "info": {
            "$ref": "#/components/schemas/SchedulerInfo"
          },
          "node": {
            "description": "Cluster node where the job is running.",
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "pid": {
            "description": "Replication process ID.",
            "maxLength": 34,
            "minLength": 1,
            "nullable": true,
            "pattern": "^.+$",
            "type": "string"
          },
          "source": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DatabaseUrl"
              },
              {
                "description": "Replication source."
              }
            ]
          },
          "start_time": {
            "description": "Timestamp of when the replication was started.",
            "format": "date-time",
            "maxLength": 26,
            "minLength": 1,
            "type": "string"
          },
          "target": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DatabaseUrl"
              },
              {
                "description": "Replication target."
              }
            ]
          },
          "user": {
            "$ref": "#/components/schemas/UsernameNullable"
          }
        },
        "required": [
          "database",
          "doc_id",
          "history",
          "id",
          "info",
          "node",
          "pid",
          "source",
          "start_time",
          "target",
          "user"
        ],
        "type": "object"
      },
      "SchedulerJobEvent": {
        "additionalProperties": false,
        "description": "Schema for a replication scheduler job event.",
        "properties": {
          "reason": {
            "description": "Reason for current state of event.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "timestamp": {
            "description": "Timestamp of the event.",
            "format": "date-time",
            "maxLength": 26,
            "minLength": 1,
            "type": "string"
          },
          "type": {
            "description": "Type of the event.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          }
        },
        "required": [
          "timestamp",
          "type"
        ],
        "type": "object"
      },
      "SchedulerJobsResult": {
        "additionalProperties": false,
        "allOf": [
          {
            "$ref": "#/components/schemas/CommonViewResult"
          },
          {
            "additionalProperties": false,
            "properties": {
              "jobs": {
                "description": "Array of replication job objects.",
                "items": {
                  "$ref": "#/components/schemas/SchedulerJob"
                },
                "maxItems": 500,
                "minItems": 0,
                "type": "array"
              },
              "total_rows": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/TotalRows"
                  },
                  {
                    "description": "Total number of replication jobs."
                  }
                ]
              }
            },
            "required": [
              "jobs"
            ],
            "type": "object"
          }
        ],
        "description": "Schema for a listing of replication scheduler jobs.",
        "required": [
          "offset",
          "total_rows"
        ]
      },
      "SearchAnalyzeQuery": {
        "additionalProperties": false,
        "description": "Schema for submitting sample data for testing a search analyzer.",
        "properties": {
          "analyzer": {
            "$ref": "#/components/schemas/SearchAnalyzer"
          },
          "text": {
            "$ref": "#/components/schemas/SearchAnalyzerText"
          }
        },
        "required": [
          "analyzer",
          "text"
        ],
        "type": "object"
      },
      "SearchAnalyzeResult": {
        "additionalProperties": false,
        "description": "Schema for the output of testing search analyzer tokenization.",
        "properties": {
          "tokens": {
            "description": "tokens",
            "items": {
              "maxLength": 7168,
              "minLength": 1,
              "pattern": "^.+$",
              "type": "string"
            },
            "maxItems": 7168,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "tokens"
        ]
      },
      "SearchAnalyzer": {
        "description": "The analyzer type that is being used at the tokenization.",
        "enum": [
          "arabic",
          "armenian",
          "basque",
          "brazilian",
          "bulgarian",
          "catalan",
          "chinese",
          "cjk",
          "classic",
          "czech",
          "danish",
          "dutch",
          "email",
          "english",
          "finnish",
          "french",
          "galician",
          "german",
          "greek",
          "hindi",
          "hungarian",
          "indonesian",
          "irish",
          "italian",
          "japanese",
          "keyword",
          "latvian",
          "norwegian",
          "persian",
          "polish",
          "portuguese",
          "romanian",
          "russian",
          "simple",
          "spanish",
          "standard",
          "swedish",
          "thai",
          "turkish",
          "whitespace"
        ],
        "type": "string"
      },
      "SearchAnalyzerText": {
        "description": "The text to tokenize with the analyzer.",
        "maxLength": 7168,
        "minLength": 1,
        "pattern": "^.+$",
        "type": "string"
      },
      "SearchDiskSize": {
        "description": "The size of the search index on disk.",
        "format": "int64",
        "maximum": 9007199254740991,
        "minimum": 0,
        "type": "integer"
      },
      "SearchDiskSizeInformation": {
        "additionalProperties": false,
        "description": "Schema for search index disk size.",
        "properties": {
          "name": {
            "description": "The name of the search index prefixed by the design document ID where the index is stored.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "search_index": {
            "$ref": "#/components/schemas/SearchIndexDiskSize"
          }
        },
        "required": [
          "name",
          "search_index"
        ],
        "type": "object"
      },
      "SearchIndexDefinition": {
        "additionalProperties": false,
        "description": "Schema for a search index definition.",
        "properties": {
          "analyzer": {
            "$ref": "#/components/schemas/AnalyzerConfiguration"
          },
          "index": {
            "description": "String form of a JavaScript function that is called for each\ndocument in the database. The function takes the document as a\nparameter, extracts some data from it, and then calls the `index`\nfunction to index that data. The index function takes 2, or\noptionally 3, parameters.\n\n* The first parameter is the name of the field you intend to use\n  when querying the index. If the special value `\"default\"` is used\n  when you define the name, you do not have to specify a field name\n  at query time.\n* The second parameter is the data to be indexed. This data must be\n  only a string, number, or boolean. Other types will cause an error\n  to be thrown by the index function call.\n* The optional third parameter is a JavaScript object with these\n  properties:\n\n    * `facet` - boolean, default `false` - Creates a faceted index.\n    * `index` - boolean, default `true` - If set to `false`, the\n      data cannot be used for searches, but can still be retrieved\n      from the index if `store` is set to `true`.\n    * `store` - boolean, default `true` -\tIf true, the value is\n      returned in the search result; otherwise, the value is not\n      returned.",
            "externalDocs": {
              "description": "Cloudant search index function documentation.",
              "url": "https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-cloudant-search#index-functions"
            },
            "maxLength": 1048488,
            "minLength": 1,
            "pattern": "^.*$",
            "type": "string"
          }
        },
        "required": [
          "index"
        ],
        "type": "object"
      },
      "SearchIndexDiskSize": {
        "description": "Schema for search index disk size.",
        "properties": {
          "disk_size": {
            "$ref": "#/components/schemas/SearchDiskSize"
          }
        }
      },
      "SearchIndexInfo": {
        "additionalProperties": false,
        "description": "Schema for metadata information about a search index.",
        "properties": {
          "committed_seq": {
            "description": "The committed sequence identifier.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "disk_size": {
            "$ref": "#/components/schemas/SearchDiskSize"
          },
          "doc_count": {
            "description": "The count of the number of indexed documents.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "doc_del_count": {
            "description": "The number of deleted documents.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "pending_seq": {
            "description": "The pending sequence identifier.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "signature": {
            "description": "Unique signature of the search index.",
            "maxLength": 32,
            "minLength": 32,
            "pattern": "^[\\da-f]{32}$",
            "type": "string"
          }
        },
        "required": [
          "committed_seq",
          "disk_size",
          "doc_count",
          "doc_del_count",
          "pending_seq",
          "signature"
        ],
        "type": "object"
      },
      "SearchInfoResult": {
        "additionalProperties": false,
        "description": "Schema for search index information.",
        "properties": {
          "name": {
            "description": "The name of the search index prefixed by the design document ID where the index is stored.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "search_index": {
            "$ref": "#/components/schemas/SearchIndexInfo"
          }
        },
        "required": [
          "name",
          "search_index"
        ],
        "type": "object"
      },
      "SearchQuery": {
        "additionalProperties": false,
        "allOf": [
          {
            "$ref": "#/components/schemas/PartitionSearchQuery"
          },
          {
            "additionalProperties": false,
            "properties": {
              "counts": {
                "description": "This field defines an array of names of string fields, for which counts are requested. The response contains counts for each unique value of this field name among the documents that match the search query. Faceting must be enabled for this parameter to function. This option is only available when making global queries.",
                "items": {
                  "maxLength": 7168,
                  "minLength": 1,
                  "pattern": "^.+$",
                  "type": "string"
                },
                "maxItems": 65535,
                "minItems": 0,
                "type": "array"
              },
              "drilldown": {
                "description": "Restrict results to documents with a dimension equal to the specified label(s). The search matches only documents containing the value that was provided in the named field. It differs from using \"fieldname:value\" in the q parameter only in that the values are not analyzed. Faceting must be enabled for this parameter to function.",
                "items": {
                  "$ref": "#/components/schemas/DrilldownQuery"
                },
                "maxItems": 65535,
                "minItems": 1,
                "type": "array"
              },
              "group_field": {
                "description": "Field by which to group search matches. A string that contains the name of a string field. Fields containing other data such as numbers, objects, or arrays cannot be used. This option is only available when making global queries.",
                "maxLength": 7168,
                "minLength": 1,
                "pattern": "^.+$",
                "type": "string"
              },
              "group_limit": {
                "description": "Maximum group count. This field can be used only if group_field is specified. This option is only available when making global queries.",
                "format": "int64",
                "maximum": 4294967295,
                "minimum": 1,
                "type": "integer"
              },
              "group_sort": {
                "description": "This field defines the order of the groups in a search that uses group_field. The default sort order is relevance. This field can have the same values as the sort field, so single fields and arrays of fields are supported. This option is only available when making global queries.",
                "items": {
                  "maxLength": 7168,
                  "minLength": 1,
                  "pattern": "^.+$",
                  "type": "string"
                },
                "maxItems": 65535,
                "minItems": 0,
                "type": "array"
              },
              "ranges": {
                "$ref": "#/components/schemas/SearchRanges"
              }
            },
            "type": "object"
          }
        ],
        "description": "Schema for a query search operation."
      },
      "SearchRange": {
        "additionalProperties": {
          "description": "The range facet syntax reuses the standard Lucene syntax for  ranges to return counts of results that fit into each specified category. Inclusive range queries are denoted by brackets (`[`, `]`). Exclusive range queries are denoted by curly brackets (`{`, `}`).",
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^[\\[\\{][+-]?(Infinity|([0-9]+\\.)?[0-9]+) TO [+-]?(Infinity|([0-9]+\\.)?[0-9]+)[\\]\\}]$",
          "type": "string"
        },
        "description": "Schema for mapping range count category names to the Apache Lucene range query syntax defining the category.",
        "type": "object"
      },
      "SearchRanges": {
        "additionalProperties": {
          "$ref": "#/components/schemas/SearchRange"
        },
        "description": "Object mapping faceted, numeric search field names to the required ranges. Each key is a field name and each value is another object defining the ranges by mapping range name keys to string values describing the numeric ranges, for example \"[0 TO 10]\". This option is only available when making global queries.",
        "type": "object"
      },
      "SearchResult": {
        "additionalProperties": false,
        "allOf": [
          {
            "$ref": "#/components/schemas/SearchResultProperties"
          },
          {
            "additionalProperties": false,
            "properties": {
              "groups": {
                "description": "Array of grouped search matches.",
                "items": {
                  "$ref": "#/components/schemas/SearchResultProperties"
                },
                "maxItems": 4294967295,
                "minItems": 1,
                "type": "array"
              }
            },
            "type": "object"
          }
        ],
        "description": "Schema for the result of a query search operation."
      },
      "SearchResultCounts": {
        "additionalProperties": {
          "$ref": "#/components/schemas/SearchResultCountsValue"
        },
        "description": "The counts facet syntax returns the number of query results for each unique value of each named field.",
        "type": "object"
      },
      "SearchResultCountsValue": {
        "additionalProperties": {
          "format": "int64",
          "maximum": 9007199254740991,
          "minimum": 0,
          "type": "integer"
        },
        "description": "The count of query results for each unique value.",
        "type": "object"
      },
      "SearchResultHighlights": {
        "additionalProperties": {
          "items": {
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "maxItems": 4294967295,
          "minItems": 0,
          "type": "array"
        },
        "description": "Returns the context in which a search term was mentioned so that you can display more emphasized results to a user.",
        "type": "object"
      },
      "SearchResultProperties": {
        "additionalProperties": false,
        "allOf": [
          {
            "$ref": "#/components/schemas/CommonViewResult"
          },
          {
            "additionalProperties": false,
            "description": "Schema for the result of a query search operation.",
            "properties": {
              "bookmark": {
                "$ref": "#/components/schemas/Bookmark"
              },
              "by": {
                "description": "Grouped search matches.",
                "maxLength": 7168,
                "minLength": 1,
                "pattern": "^.+$",
                "type": "string"
              },
              "counts": {
                "$ref": "#/components/schemas/SearchResultCounts"
              },
              "ranges": {
                "$ref": "#/components/schemas/SearchResultRanges"
              },
              "rows": {
                "description": "Array of row objects.",
                "items": {
                  "$ref": "#/components/schemas/SearchResultRow"
                },
                "maxItems": 200,
                "minItems": 0,
                "type": "array"
              },
              "total_rows": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/TotalRows"
                  },
                  {
                    "description": "Total number of rows in the index matching the search query. The limit may truncate the number of matches returned."
                  }
                ]
              }
            },
            "required": [
              "rows"
            ],
            "type": "object"
          }
        ],
        "required": [
          "total_rows"
        ]
      },
      "SearchResultRanges": {
        "additionalProperties": {
          "$ref": "#/components/schemas/SearchResultRangesValue"
        },
        "description": "The range facet syntax reuses the standard Lucene syntax for ranges to return counts of results that fit into each specified category.",
        "type": "object"
      },
      "SearchResultRangesValue": {
        "additionalProperties": {
          "description": "Counts of range results that fit into each specified category.",
          "format": "int64",
          "maximum": 9007199254740991,
          "minimum": 0,
          "type": "integer"
        },
        "description": "Search range result counts.",
        "type": "object"
      },
      "SearchResultRow": {
        "additionalProperties": false,
        "description": "Schema for a row of the result of a query search operation.",
        "properties": {
          "doc": {
            "$ref": "#/components/schemas/Document"
          },
          "fields": {
            "$ref": "#/components/schemas/SearchResultRowFields"
          },
          "highlights": {
            "$ref": "#/components/schemas/SearchResultHighlights"
          },
          "id": {
            "$ref": "#/components/schemas/DocumentId"
          },
          "order": {
            "deprecated": true,
            "description": "Geographical search distance.",
            "items": {
              "format": "double",
              "minimum": 0,
              "type": "number"
            },
            "maxItems": 4294967295,
            "minItems": 1,
            "type": "array",
            "x-sdk-exclude": true
          }
        },
        "required": [
          "fields",
          "id",
          "order"
        ],
        "type": "object"
      },
      "SearchResultRowFields": {
        "additionalProperties": true,
        "description": "Schema for the fields returned by a query search operation, a map of field name to value.",
        "type": "object"
      },
      "SearchSort": {
        "description": "Schema for search sort array items",
        "maxLength": 7168,
        "minLength": 1,
        "pattern": "^-?[^<>]+(<(?:string|number)>)?$",
        "type": "string"
      },
      "Security": {
        "additionalProperties": false,
        "description": "Schema for a Cloudant security document.",
        "properties": {
          "admins": {
            "$ref": "#/components/schemas/SecurityObject"
          },
          "cloudant": {
            "$ref": "#/components/schemas/SecurityObjectCloudant"
          },
          "couchdb_auth_only": {
            "description": "Manage permissions using the `_users` database only.",
            "type": "boolean"
          },
          "members": {
            "$ref": "#/components/schemas/SecurityObject"
          }
        },
        "type": "object"
      },
      "SecurityObject": {
        "additionalProperties": false,
        "description": "Schema for names and roles to map to a database permission.",
        "properties": {
          "names": {
            "description": "List of usernames.",
            "items": {
              "maxLength": 7168,
              "minLength": 1,
              "pattern": "^.+$",
              "type": "string"
            },
            "maxItems": 65535,
            "minItems": 0,
            "type": "array"
          },
          "roles": {
            "description": "List of roles.",
            "items": {
              "maxLength": 238,
              "minLength": 1,
              "pattern": "^.+$",
              "type": "string"
            },
            "maxItems": 65535,
            "minItems": 0,
            "type": "array"
          }
        },
        "type": "object"
      },
      "SecurityObjectCloudant": {
        "additionalProperties": {
          "items": {
            "$ref": "#/components/schemas/Role"
          },
          "maxItems": 65535,
          "minItems": 0,
          "type": "array"
        },
        "description": "Database permissions for Cloudant users, API keys or both.",
        "type": "object"
      },
      "Selector": {
        "additionalProperties": true,
        "description": "JSON object describing criteria used to select documents.\nThe selector specifies fields in the document, and provides\nan expression to evaluate with the field content or other data.\n\nThe selector object must:\n  * Be structured as valid JSON.\n  * Contain a valid query expression.\n\nUsing a selector is significantly more efficient than using a JavaScript\nfilter function, and is the recommended option if filtering on\ndocument attributes only.\n\nElementary selector syntax requires you to specify one or more fields,\nand the corresponding values required for those fields. You can create\nmore complex selector expressions by combining operators.\n\nOperators are identified by the use of a dollar sign `$` prefix in\nthe name field.\n\nThere are two core types of operators in the selector syntax:\n* Combination operators: applied at the topmost level of selection.\nThey are used to combine selectors. A combination operator takes a\nsingle argument. The argument is either another selector, or an\narray of selectors.\n* Condition operators: are specific to a field, and are used to evaluate\nthe value stored in that field. For instance, the basic `$eq` operator\nmatches when the specified field contains a value that is equal to the\nsupplied argument.\n\nIt is important for query performance to use appropriate selectors:\n* Only equality operators such as `$eq`, `$gt`, `$gte`, `$lt`, and\n`$lte` (but not `$ne`) can be used as the basis of a query. You should\ninclude at least one of these in a selector.\n* Some operators such as `$not`, `$or`, `$in`, and `$regex` cannot be\nanswered from an index. For query selectors use these operators in\nconjunction with equality operators or create and use a partial index to\nreduce the number of documents that will need to be scanned.\n\nSee [the Cloudant Docs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-operators)\nfor a list of all available combination and conditional operators.\n\nFor further reference see [selector syntax](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-selector-syntax)",
        "type": "object"
      },
      "SelectorHint": {
        "additionalProperties": false,
        "description": "Schema for extra information on the selector.",
        "properties": {
          "indexable_fields": {
            "description": "A list of fields in the given selector that can be used to restrict the query.",
            "items": {
              "maxLength": 7168,
              "minLength": 1,
              "pattern": "^.+$",
              "type": "string"
            },
            "maxItems": 4294967295,
            "minItems": 0,
            "type": "array"
          },
          "type": {
            "description": "A type of the index.",
            "enum": [
              "json",
              "text"
            ],
            "type": "string"
          },
          "unindexable_fields": {
            "description": "A list of fields in the given selector that can't be used to restrict the query.",
            "items": {
              "maxLength": 7168,
              "minLength": 1,
              "pattern": "^.+$",
              "type": "string"
            },
            "maxItems": 4294967295,
            "minItems": 0,
            "type": "array"
          }
        },
        "required": [
          "indexable_fields",
          "type",
          "unindexable_fields"
        ],
        "type": "object"
      },
      "SelectorHints": {
        "description": "Schema for a list of objects with extra information on the selector to provide insights about its usability.",
        "items": {
          "$ref": "#/components/schemas/SelectorHint"
        },
        "maxItems": 3,
        "minItems": 1,
        "type": "array"
      },
      "Sequence": {
        "description": "Schema for sequence.",
        "maxLength": 7168,
        "minLength": 1,
        "pattern": "^([1-9]\\d*-[A-Za-z0-9-_]+)$",
        "type": "string"
      },
      "ServerInformation": {
        "additionalProperties": false,
        "description": "Schema for information about the server instance.",
        "properties": {
          "couchdb": {
            "description": "Welcome message.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string",
            "x-terraform-exclude": true
          },
          "features": {
            "description": "List of enabled optional features.",
            "items": {
              "maxLength": 7168,
              "minLength": 1,
              "pattern": "^.+$",
              "type": "string"
            },
            "maxItems": 4294967295,
            "minItems": 0,
            "type": "array"
          },
          "features_flags": {
            "description": "List of feature flags.",
            "items": {
              "maxLength": 7168,
              "minLength": 1,
              "pattern": "^.+$",
              "type": "string"
            },
            "maxItems": 4294967295,
            "minItems": 1,
            "type": "array"
          },
          "vendor": {
            "$ref": "#/components/schemas/ServerVendor"
          },
          "version": {
            "description": "Apache CouchDB version.",
            "maxLength": 7168,
            "minLength": 5,
            "pattern": "^(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)\\.(?:0|[1-9]\\d*)(?:-([0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*))?(?:\\+[0-9A-Za-z-]+)?$",
            "type": "string",
            "x-terraform-exclude": true
          }
        },
        "required": [
          "couchdb",
          "features",
          "vendor",
          "version",
          "features_flags"
        ],
        "type": "object",
        "x-terraform-datasource-name": "cloudant_server_information"
      },
      "ServerVendor": {
        "additionalProperties": {
          "maxLength": 7168,
          "minLength": 1,
          "pattern": "^.+$",
          "type": "string"
        },
        "description": "Schema for server vendor information.",
        "properties": {
          "name": {
            "description": "Vendor name.",
            "maxLength": 12,
            "minLength": 12,
            "pattern": "^IBM Cloudant$",
            "type": "string",
            "x-terraform-exclude": true
          },
          "variant": {
            "description": "Vendor variant",
            "enum": [
              "paas"
            ],
            "type": "string",
            "x-terraform-exclude": true
          },
          "version": {
            "description": "Vendor version.",
            "maxLength": 9,
            "minLength": 1,
            "pattern": "^\\d+$",
            "type": "string"
          }
        },
        "required": [
          "name",
          "variant",
          "version"
        ],
        "type": "object"
      },
      "SessionAuthentication": {
        "additionalProperties": false,
        "description": "Schema for session authentication information.",
        "properties": {
          "authenticated": {
            "description": "authenticated",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "authentication_db": {
            "description": "authentication_db",
            "maxLength": 238,
            "minLength": 1,
            "pattern": "^_users$|^[a-z][a-z0-9_$()+/-]*$",
            "type": "string"
          },
          "authentication_handlers": {
            "description": "authentication_handlers",
            "items": {
              "maxLength": 7168,
              "minLength": 1,
              "pattern": "^.+$",
              "type": "string"
            },
            "maxItems": 4294967295,
            "minItems": 1,
            "type": "array"
          }
        },
        "required": [
          "authentication_handlers"
        ],
        "type": "object"
      },
      "SessionConfiguration": {
        "additionalProperties": false,
        "description": "Schema for configuring a session.",
        "properties": {
          "password": {
            "description": "The password associated with the username.",
            "maxLength": 7168,
            "minLength": 16,
            "pattern": "^(?:(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).*){8,}$",
            "type": "string"
          },
          "username": {
            "$ref": "#/components/schemas/SessionConfigurationUsername"
          }
        },
        "required": [
          "username",
          "password"
        ],
        "type": "object"
      },
      "SessionConfigurationUsername": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Username"
          }
        ],
        "x-alias": "name"
      },
      "SessionInformation": {
        "additionalProperties": false,
        "allOf": [
          {
            "$ref": "#/components/schemas/Ok"
          },
          {
            "additionalProperties": false,
            "properties": {
              "info": {
                "$ref": "#/components/schemas/SessionAuthentication"
              },
              "userCtx": {
                "$ref": "#/components/schemas/UserContext"
              }
            },
            "type": "object"
          }
        ],
        "description": "Schema for information about a session.",
        "required": [
          "ok",
          "info",
          "userCtx"
        ]
      },
      "SessionResult": {
        "additionalProperties": false,
        "description": "Schema for the result of requesting a session.",
        "properties": {
          "name": {
            "description": "name",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "ok": {
            "default": true,
            "description": "ok",
            "type": "boolean"
          },
          "roles": {
            "description": "roles",
            "items": {
              "$ref": "#/components/schemas/Role"
            },
            "maxItems": 4294967295,
            "minItems": 0,
            "type": "array"
          }
        },
        "required": [
          "name",
          "ok",
          "roles"
        ],
        "type": "object"
      },
      "ShardCount": {
        "default": 16,
        "description": "Schema for the number of shards in a database. Each shard is a partition of the hash value range.",
        "format": "int64",
        "maximum": 120,
        "minimum": 1,
        "type": "integer"
      },
      "ShardRange": {
        "additionalProperties": {
          "description": "List of node names.",
          "items": {
            "maxLength": 255,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "maxItems": 3,
          "minItems": 1,
          "type": "array"
        },
        "description": "Mapping of shard hash value range to a list of nodes.",
        "type": "object"
      },
      "ShardsInformation": {
        "additionalProperties": false,
        "description": "Schema for a shards object that maps the hash value range for each shard to the array of nodes that contain a copy of that shard.",
        "properties": {
          "shards": {
            "$ref": "#/components/schemas/ShardRange"
          }
        },
        "required": [
          "shards"
        ],
        "type": "object"
      },
      "Since": {
        "description": "Schema for 'since' parameter.",
        "maxLength": 7168,
        "minLength": 1,
        "pattern": "^0|([1-9]\\d*-[A-Za-z0-9-_]+)|now$",
        "type": "string"
      },
      "SortDirection": {
        "default": "asc",
        "description": "Schema for sort direction.",
        "enum": [
          "asc",
          "desc"
        ],
        "type": "string"
      },
      "ThroughputBlocks": {
        "description": "A number of blocks of throughput units. A block consists of 100 reads/sec, 50 writes/sec, and 5 global queries/sec of provisioned throughput capacity. Not available for some plans.",
        "format": "int64",
        "maximum": 100,
        "minimum": 1,
        "type": "integer"
      },
      "ThroughputInformation": {
        "additionalProperties": false,
        "description": "Schema for detailed information about throughput capacity with breakdown by specific throughput requests classes.",
        "properties": {
          "blocks": {
            "$ref": "#/components/schemas/ThroughputBlocks"
          },
          "query": {
            "description": "Provisioned global queries capacity in operations per second",
            "format": "int64",
            "maximum": 2500,
            "minimum": 0,
            "type": "integer"
          },
          "read": {
            "description": "Provisioned reads capacity in operations per second",
            "format": "int64",
            "maximum": 50000,
            "minimum": 0,
            "type": "integer"
          },
          "write": {
            "description": "Provisioned writes capacity in operations per second",
            "format": "int64",
            "maximum": 25000,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "read",
          "write",
          "query"
        ],
        "type": "object"
      },
      "Timestamp": {
        "description": "Schema for a Unix epoch timestamp.",
        "format": "int64",
        "maximum": 2147483647,
        "minimum": 0,
        "type": "integer"
      },
      "TotalRows": {
        "description": "Number of total rows.",
        "format": "int64",
        "maximum": 4294967295,
        "minimum": 0,
        "type": "integer"
      },
      "UpInformation": {
        "additionalProperties": false,
        "description": "Schema for information about the up state of the server.",
        "properties": {
          "cluster": {
            "description": "cluster",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "seeds": {
            "description": "seeds",
            "type": "object"
          },
          "status": {
            "description": "status",
            "enum": [
              "maintenance_mode",
              "nolb",
              "ok"
            ],
            "type": "string"
          }
        },
        "required": [
          "status"
        ],
        "type": "object"
      },
      "UpdatesPending": {
        "additionalProperties": false,
        "description": "Schema for an ability to tell if view is up-to-date without querying it.",
        "properties": {
          "minimum": {
            "description": "Sum of shard copies with the least amount of work to do.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "preferred": {
            "description": "Sum of unique shards. This value is zero when at least one copy of every shard range is up-to-date and the view is able to answer a query without index building delays.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "total": {
            "description": "Sum of all shard copies.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "minimum",
          "preferred",
          "total"
        ],
        "type": "object"
      },
      "UsageDataVolume": {
        "additionalProperties": false,
        "description": "Schema for UsageDataVolume.",
        "properties": {
          "data_vol": {
            "additionalProperties": {
              "$ref": "#/components/schemas/UsageDataVolumeDataPoint"
            },
            "description": "An object representing data points for an average amount of data stored over the granularity period.",
            "type": "object"
          },
          "end": {
            "description": "The timestamp of an endpoint for the usage report.",
            "format": "date-time",
            "maxLength": 26,
            "minLength": 1,
            "type": "string"
          },
          "granularity": {
            "default": "12h",
            "description": "The granularity is the period for each record in the 'data_vol' object. By default it is 12h, but the user may add a query string option with a different granularity between 1 and 24 which evenly divides 24.",
            "maxLength": 3,
            "minLength": 2,
            "pattern": "^([123468]|12|24)h$",
            "type": "string"
          },
          "start": {
            "description": "The timestamp of a start point for the usage report.",
            "format": "date-time",
            "maxLength": 26,
            "minLength": 1,
            "type": "string"
          }
        },
        "type": "object"
      },
      "UsageDataVolumeDataPoint": {
        "additionalProperties": false,
        "description": "Schema for UsageDataVolumeDataPoint.",
        "properties": {
          "dbs": {
            "description": "The average amount of data in bytes stored over the granularity period for requests of 'dbs' type.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "search": {
            "description": "The average amount of data in bytes stored over the granularity period for requests of 'search' type.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          },
          "views": {
            "description": "The average amount of data in bytes stored over the granularity period for requests of 'views' type.",
            "format": "int64",
            "maximum": 9007199254740991,
            "minimum": 0,
            "type": "integer"
          }
        },
        "type": "object"
      },
      "UserContext": {
        "additionalProperties": false,
        "description": "Schema for the user context of a session.",
        "properties": {
          "db": {
            "allOf": [
              {
                "$ref": "#/components/schemas/DatabaseName"
              },
              {
                "description": "Database name in the context of the provided operation."
              }
            ]
          },
          "name": {
            "$ref": "#/components/schemas/UsernameNullable"
          },
          "roles": {
            "description": "List of user roles.",
            "items": {
              "$ref": "#/components/schemas/Role"
            },
            "maxItems": 4294967295,
            "minItems": 0,
            "type": "array"
          }
        },
        "required": [
          "name",
          "roles"
        ],
        "type": "object"
      },
      "UserInformation": {
        "additionalProperties": true,
        "description": "Schema for UserInformation.",
        "type": "object"
      },
      "UserPlan": {
        "additionalProperties": false,
        "description": "Schema for UserPlan.",
        "properties": {
          "data_charging_model": {
            "description": "The data charging model for the authenticated user.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "data_quota": {
            "description": "The data quota for the authenticated user.",
            "maxLength": 7168,
            "minLength": 3,
            "pattern": "^[1-9][0-9]*(K|M|G)B$",
            "type": "string"
          },
          "history": {
            "description": "The history of plan changes for the authenticated user.",
            "items": {
              "description": "The data point for the history of plan changes for the authenticated user.",
              "items": {
                "description": "The date of the change or plan name for the data point.",
                "maxLength": 7168,
                "minLength": 1,
                "pattern": "^.+$",
                "type": "string"
              },
              "maxItems": 2,
              "minItems": 2,
              "type": "array"
            },
            "maxItems": 4294967295,
            "minItems": 0,
            "type": "array"
          },
          "name": {
            "description": "The plan for the authenticated user.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "plan": {
            "description": "The plan for the authenticated user.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "throughput": {
            "$ref": "#/components/schemas/CcmDiagnosticsThroughputInformation"
          }
        },
        "required": [
          "history"
        ],
        "type": "object"
      },
      "UserPlanConfiguration": {
        "additionalProperties": false,
        "description": "Schema for UserPlanConfiguration.",
        "properties": {
          "plan": {
            "description": "The name of the new plan for the account.",
            "maxLength": 7168,
            "minLength": 1,
            "pattern": "^.+$",
            "type": "string"
          },
          "plan_multiple": {
            "description": "The optional plan multiplier.",
            "format": "int64",
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "plan"
        ],
        "type": "object"
      },
      "Username": {
        "description": "Schema for a username.",
        "maxLength": 63,
        "minLength": 1,
        "pattern": "^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]*[a-zA-Z0-9])$",
        "type": "string"
      },
      "UsernameNullable": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Username"
          },
          {
            "description": "Name of user running the process."
          },
          {
            "nullable": true
          }
        ]
      },
      "UuidsResult": {
        "additionalProperties": false,
        "description": "Schema for a set of uuids generated by the server.",
        "properties": {
          "uuids": {
            "description": "uuids",
            "items": {
              "maxLength": 32,
              "minLength": 32,
              "pattern": "^[\\da-f]{32}$",
              "type": "string"
            },
            "maxItems": 1000,
            "minItems": 0,
            "type": "array"
          }
        },
        "required": [
          "uuids"
        ],
        "type": "object"
      },
      "ViewQueriesQuery": {
        "additionalProperties": false,
        "description": "Schema for a queries view operation.",
        "properties": {
          "queries": {
            "description": "An array of query objects with fields for the parameters of each individual view query to be executed. The field names and their meaning are the same as the query parameters of a regular view request.",
            "items": {
              "$ref": "#/components/schemas/ViewQuery"
            },
            "maxItems": 65535,
            "minItems": 0,
            "type": "array"
          }
        },
        "required": [
          "queries"
        ],
        "type": "object"
      },
      "ViewQueriesResult": {
        "additionalProperties": false,
        "description": "Schema for the results of a queries view operation.",
        "properties": {
          "results": {
            "description": "An array of result objects - one for each query. Each result object contains the same fields as the response to a regular view request.",
            "items": {
              "$ref": "#/components/schemas/ViewResult"
            },
            "maxItems": 65535,
            "minItems": 0,
            "type": "array"
          }
        },
        "required": [
          "results"
        ],
        "type": "object"
      },
      "ViewQuery": {
        "additionalProperties": false,
        "allOf": [
          {
            "$ref": "#/components/schemas/CommonViewQuery"
          },
          {
            "additionalProperties": false,
            "description": "Schema for a query view operation.",
            "properties": {
              "end_key": {
                "$ref": "#/components/schemas/AnyJsonType"
              },
              "end_key_doc_id": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/DocumentId"
                  },
                  {
                    "description": "Stop returning rows at the specified document ID. No effect if using `group` or not providing end key."
                  }
                ]
              },
              "group": {
                "default": false,
                "description": "Parameter to specify whether to group reduced results by key. Valid only if a reduce function defined in the view. If the view emits key in JSON array format, then it is possible to reduce groups further based on the number of array elements with the `group_level` parameter.",
                "type": "boolean"
              },
              "group_level": {
                "description": "Parameter to specify a group level to be used. Only applicable if the view uses keys that are JSON arrays. Implies group is `true`. Group level groups the reduced results by the specified number of array elements. If unset, results are grouped by the entire array key, returning a reduced value for each complete key.",
                "format": "int64",
                "maximum": 4294967295,
                "minimum": 1,
                "type": "integer"
              },
              "key": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/AnyJsonType"
                  },
                  {
                    "description": "Parameter to specify to return only rows that match the specified key. String representation of any JSON type that matches the key type emitted by the view function."
                  }
                ]
              },
              "keys": {
                "description": "Parameter to specify returning only rows that match any of the specified keys. A JSON array of keys that match the key type emitted by the view function.",
                "items": {
                  "$ref": "#/components/schemas/AnyJsonType"
                },
                "maxItems": 65535,
                "minItems": 0,
                "type": "array"
              },
              "reduce": {
                "default": true,
                "description": "Parameter to specify whether to use the reduce function in\na map-reduce view. Default is true when a reduce function is\ndefined.\n\nA default `reduce` view type can be disabled to behave like a\n`map` by setting `reduce=false` explicitly.\n\nBe aware that `include_docs=true` is only for `map` views.\nReduced views do not include document IDs in view rows.",
                "type": "boolean"
              },
              "stable": {
                "default": false,
                "description": "Query parameter to specify whether use the same replica of\nthe index on each request. The default value `false` contacts\nall replicas and returns the result from the first, fastest,\nresponder. Setting it to `true` when used in conjunction with\n`update=false` may improve consistency at the expense of\nincreased latency and decreased throughput if the selected\nreplica is not the fastest of the available replicas.\n\n**Note:** In general setting `true` is discouraged and is\nstrictly not recommended when using `update=true`.",
                "type": "boolean"
              },
              "start_key": {
                "$ref": "#/components/schemas/AnyJsonType"
              },
              "start_key_doc_id": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/DocumentId"
                  },
                  {
                    "description": "Start returning rows at the specified document ID. No effect if using `group` or not providing start key."
                  }
                ]
              },
              "update": {
                "default": "true",
                "description": "Parameter to specify whether or not the view in question\nshould be updated prior to responding to the user.\n\n* `true` - Return results after the view is updated.\n* `false` - Return results without updating the view.\n* `lazy` - Return the view results without waiting for an\nupdate, but update them immediately after the request.",
                "enum": [
                  "true",
                  "false",
                  "lazy"
                ],
                "type": "string"
              }
            },
            "type": "object",
            "x-alias": {
              "end_key": "endkey",
              "end_key_doc_id": "endkey_docid",
              "start_key": "startkey",
              "start_key_doc_id": "startkey_docid"
            }
          }
        ],
        "description": "Schema for a query view operation.",
        "type": "object"
      },
      "ViewResult": {
        "additionalProperties": false,
        "allOf": [
          {
            "$ref": "#/components/schemas/CommonViewResult"
          },
          {
            "$ref": "#/components/schemas/CommonViewResultUpdateSeq"
          },
          {
            "additionalProperties": false,
            "properties": {
              "rows": {
                "description": "rows",
                "items": {
                  "$ref": "#/components/schemas/ViewResultRow"
                },
                "maxItems": 4294967295,
                "minItems": 0,
                "type": "array"
              }
            },
            "required": [
              "rows"
            ],
            "type": "object"
          }
        ],
        "description": "Schema for the result of a query view operation."
      },
      "ViewResultRow": {
        "additionalProperties": false,
        "allOf": [
          {
            "$ref": "#/components/schemas/Error"
          },
          {
            "additionalProperties": false,
            "description": "Schema for a row of a view result.",
            "properties": {
              "doc": {
                "$ref": "#/components/schemas/Document"
              },
              "id": {
                "$ref": "#/components/schemas/DocumentId"
              },
              "key": {
                "$ref": "#/components/schemas/AnyJsonType"
              },
              "value": {
                "$ref": "#/components/schemas/AnyJsonType"
              }
            },
            "type": "object"
          }
        ],
        "description": "Schema for a row of a view result.",
        "required": [
          "key",
          "value"
        ]
      }
    },
    "securitySchemes": {
      "Basic": {
        "description": "Valid only for IBM Cloudant legacy authentication (including legacy IBM Cloudant API keys).\n\nAuthenticates with a `Authorization: Basic {credentials}` header where credentials is the Base64 encoding of your `username` and `password` joined by a single colon `:`. ",
        "scheme": "basic",
        "type": "http"
      },
      "Cookie": {
        "description": "Valid only for IBM Cloudant legacy authentication\n(including legacy IBM Cloudant API keys).\n\nCreate a login session cookie via the `POST /_session` endpoint and\nreceive it in the standard `Set-Cookie` header. Store this `AuthSession` cookie\nand return it to the server in the `Cookie` header on later requests.\nThis process is automatic in IBM Cloudant's\nSDKs and other cookie aware HTTP clients like browsers.",
        "in": "cookie",
        "name": "AuthSession",
        "type": "apiKey"
      },
      "IAM": {
        "bearerFormat": "JWT",
        "description": "Valid only for Cloud Identity and Access Management authentication.\n\nAuthenticates with a `Authorization: Bearer {access_token}` header\nwhere `access_token` is calculated from an appropriate IAM\nconfiguration (for example from\n[an IAM API key](/docs/account?topic=account-iamtoken_from_apikey),\nor IAM profile ID). This process is handled automatically by\nIBM Cloudant's SDKs.",
        "scheme": "bearer",
        "type": "http"
      }
    }
  },
  "externalDocs": {
    "description": "IBM Cloudant documentation",
    "url": "https://cloud.ibm.com/docs/Cloudant"
  },
  "info": {
    "contact": {
      "email": "cldtsdks@us.ibm.com",
      "name": "IBM",
      "url": "https://www.ibm.com/products/cloudant"
    },
    "description": "## Introduction\n\nIBM® Cloudant® for IBM Cloud® is a document-oriented\ndatabase as a service (DBaaS). It stores data as documents in JSON\nformat. It is built with scalability, high availability, and\ndurability in mind. It comes with a wide variety of indexing options\nthat include MapReduce, IBM Cloudant\nQuery, and full-text indexing. The replication\ncapabilities make it easy to keep data in sync between database\nclusters, desktop PCs, and mobile devices.\n\nDetailed documentation is also available such as a\n[Getting started tutorial][gs], [API overview documentation, tutorials, and guides][about].\n\nIf you intend to store sensitive information in an IBM® Cloudant® for IBM Cloud® database you **must** use client-side encryption to render data unreadable to Cloudant operators. For example for PCI DSS compliance you **must** encrypt the Primary Account Number (PAN) before sending a document containing it to the database.\n\nThis documentation describes the SDKs and examples. To see usage information and examples in your preferred SDK, select the language tab in the right pane.\n\nThis documentation describes the Java SDK and examples. To see usage information and examples in your preferred SDK, select the language tab in the right pane.\n\nThis documentation describes the Node SDK and examples. To see usage information and examples in your preferred SDK, select the language tab in the right pane.\n\nThis documentation describes the Python SDK and examples. To see usage information and examples in your preferred SDK, select the language tab in the right pane.\n\nThis documentation describes the Go SDK and examples. To see usage information and examples in your preferred SDK, select the language tab in the right pane.\n\nThe code examples on this tab use the IBM Cloudant SDK for Java&trade.\n\nGradle\n\n```groovy\nimplementation 'com.ibm.cloud:cloudant:0.+'\n```\n\nMaven\n\n[Maven installation instructions](https://github.com/IBM/cloudant-java-sdk/#maven)\n\nGitHub\n\n<https://github.com/ibm/cloudant-java-sdk>\n\nThe code examples on this tab use the IBM Cloudant SDK for Node.js.\n\nInstallation\n\n```bash\nnpm install --save @ibm-cloud/cloudant\n```\n\nGitHub\n\n<https://github.com/ibm/cloudant-node-sdk>\n\nThe code examples on this tab use the IBM Cloudant SDK for Python.\n\nInstallation\n\n```bash\npip3 install ibmcloudant\n```\n\nGitHub\n\n<https://github.com/ibm/cloudant-python-sdk>\n\nThe code examples on this tab use the IBM Cloudant SDK for Go.\n\nInstallation\n\n```bash\ngo get -u github.com/IBM/cloudant-go-sdk/cloudantv1\n```\n\nGitHub\n\n<https://github.com/ibm/cloudant-go-sdk>\n\n## Endpoint URLs\n\nThe IBM Cloudant API uses an instance-specific endpoint URL for all regions. You can find your external endpoint by following these steps:\n\n1.\tGo to the IBM Cloud dashboard and open an instance.\n2.\tClick the Service credentials tab.\n3.\tClick the chevron next to the service credentials to open the credentials pane.\n4.\tCopy the value from the `host` field and prefix it with the `https://` protocol.\n    This value is the external endpoint.\n\nFor more information, see the [Locating your service credentials][servicecreds] tutorial.\n\nOr you can copy your external endpoint by following these steps:\n\n1.\tGo to the IBM Cloud dashboard and open an instance.\n2.\tUnder the Manage tab on the Overview page, see the External endpoint in the table.\n3.\tClick **Copy** to copy the External endpoint.\n    Paste the endpoint where you need your credentials.\n\nA public endpoint looks something like these examples:\n\n`https://5lll032-dd12-536e-09b3-432fg9f07e78-bluemix.cloudantnosqldb.appdomain.cloud`\n\nor\n\n`https://5lll032-dd12-536e-09b3-432fg9f07e78-bluemix.cloudant.com`\n\nA private endpoint is one that is only accessible through a non-public network, like IBM's internal network. Private endpoints are available to customers who have the Dedicated Hardware plan.\n\n[servicecreds]: /docs/Cloudant?topic=Cloudant-locating-your-service-credentials\n\n## Authentication\n\nYou can access IBM Cloudant with IBM Cloud® Identity and Access Management (IAM) or IBM Cloudant legacy access controls.\nThe choice between _Use only IAM_ and _Use both legacy credentials and IAM access control_ affects how credentials are delivered to your application when you bind and generate service credentials.\n\nThe _Use only IAM_ option is preferred. Review [Must I use _Use only IAM_ or _Use both legacy credentials and IAM_?](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-managing-access-for-cloudant#must-i-use-use-only-iam-or-use-both-legacy-credentials-and-iam-ai) to help with making a decision.\n\n**IAM authentication**\n\nAccess to IBM Cloudant is centrally controlled by\nIBM Cloud® Identity and Access Management (IAM), which provides\na unified approach to managing user identities, and access control across your\nIBM Cloud® services and applications using the same set of credentials.\n\nTo work with the API, authenticate your application or service by including your\nIBM Cloud® [IAM access token][iamtoken] in API requests.\n\n**Cloudant legacy authentication**\n\nLegacy access controls are unique to IBM Cloudant, which means that accessing each service instance requires its own set of credentials. These credentials can be used with HTTP basic and cookie authentication. IBM Cloudant _legacy_ API keys authenticate identically to username and password credentials but are generated and assigned differently. For more information, see [the documentation about IBM Cloudant legacy API keys](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-work-with-your-account#api-keys).\n\n**Additional authentication resources**\n\n- IBM Cloudant [client libraries][cl]\nprovide full integration with IAM's access controls and automatically\nretrieve an IAM access token when an appropriate IAM configuration is provided (for example, an IAM API key or IAM profile ID).\n- View IBM Cloudant [authentication documentation][1].\n\n### Authentication with external configuration\n\nIn this scenario, the configuration is defined with an external credentials file and an authenticator that is constructed by SDK's authenticator factory during client initialization. Using the external credentials file avoids hardcoded credentials within the application code.\n\nThe default name of the credentials file is `ibm-credentials.env`. It is expected to be located in either the current directory or in the user's home directory. The path and name of the file can be controlled by using the `IBM_CREDENTIALS_FILE` environment variable.\n\nCloudant configuration properties start with a chosen\nservice name prefix that identifies your service.\nBy default it is `CLOUDANT`.\n\nIf you would like to rename your Cloudant service from `CLOUDANT`, or\nuse multiple services at the same time you must use your defined\nservice name as the prefix for all of your Cloudant related configuration properties.\nYou also must use the same service name at instantiating your service.\n\nThis way, each configuration property includes both the name of the service and the specific attribute, combined in a format like `CLOUDANT_APIKEY`.\n\nIt is not necessary to use a .env file. These properties can be set by using environment variables with the same name in the environment where the application is run.\n\n#### Variable guide for the authentication code samples\n\n| Attribute name | Description |\n|----------|-------------|\n| `{apikey}` | IAM API key |\n| `{username}` | Cloudant username |\n| `{password}` | Cloudant password |\n| `{url}` | URL of Cloudant instance |\n| `{service-name}` | Chosen service name of your Cloudant instance.  \\n Same as the prefix of your configuration properties.  \\n Default value is `CLOUDANT`. |\n\nSDK managing the IAM token. Replace {apikey} and {url}.\n\n```generic\n{service-name}_URL={url}\n{service-name}_APIKEY={apikey}\n```\n\n```java\nimport com.ibm.cloud.cloudant.v1.Cloudant;\n\nCloudant service = Cloudant.newInstance(\"{service-name}\");\n```\n\n```javascript\nimport { CloudantV1 } from '@ibm-cloud/cloudant';\n\nconst service = CloudantV1.newInstance({\n    serviceName: '{service-name}'\n});\n```\n\n```python\nfrom ibmcloudant.cloudant_v1 import CloudantV1\n\nservice = CloudantV1.new_instance(service_name=\"{service-name}\")\n```\n\n```go\nimport (\n    \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n)\n\nservice, err := cloudantv1.NewCloudantV1UsingExternalConfig(\n    &cloudantv1.CloudantV1Options{\n        ServiceName: \"{service-name}\",\n    },\n)\n```\n\nSDK managing session cookie.\n\n```generic\n{service-name}_AUTH_TYPE=COUCHDB_SESSION\n{service-name}_URL={url}\n{service-name}_USERNAME={username}\n{service-name}_PASSWORD={password}\n```\n\n```java\nimport com.ibm.cloud.cloudant.v1.Cloudant;\n\nCloudant service = Cloudant.newInstance(\"{service-name}\");\n```\n\n```javascript\nimport { CloudantV1 } from '@ibm-cloud/cloudant';\n\nconst service = CloudantV1.newInstance({\n    serviceName: '{service-name}'\n});\n```\n\n```python\nfrom ibmcloudant.cloudant_v1 import CloudantV1\n\nservice = CloudantV1.new_instance(service_name=\"{service-name}\")\n```\n\n```go\nimport (\n    \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n)\n\nservice, err := cloudantv1.NewCloudantV1UsingExternalConfig(\n    &cloudantv1.CloudantV1Options{\n        ServiceName: \"{service-name}\",\n    },\n)\n```\n\nBasic authentication.\n\n```generic\n{service-name}_AUTH_TYPE=BASIC\n{service-name}_URL={url}\n{service-name}_USERNAME={username}\n{service-name}_PASSWORD={password}\n```\n\n```java\nimport com.ibm.cloud.cloudant.v1.Cloudant;\n\nCloudant service = Cloudant.newInstance(\"{service-name}\");\n```\n\n```javascript\nimport { CloudantV1 } from '@ibm-cloud/cloudant';\n\nconst service = CloudantV1.newInstance({\n    serviceName: '{service-name}'\n});\n```\n\n```python\nfrom ibmcloudant.cloudant_v1 import CloudantV1\n\nservice = CloudantV1.new_instance(service_name=\"{service-name}\")\n```\n\n```go\nimport (\n    \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n)\n\nservice, err := cloudantv1.NewCloudantV1UsingExternalConfig(\n    &cloudantv1.CloudantV1Options{\n        ServiceName: \"{service-name}\",\n    },\n)\n```\n\n### Programmatic authentication\n\nIn this scenario, authentication is configured by constructing an authenticator instance, supplying the configuration attributes programmatically, and then passing this instance to a client constructor.\n\nSDK managing the IAM token.\n\n```java\nimport com.ibm.cloud.cloudant.v1.Cloudant;\nimport com.ibm.cloud.sdk.core.security.IamAuthenticator;\n\nIamAuthenticator authenticator = new IamAuthenticator.Builder()\n    .apikey(\"{apikey}\")\n    .build();\n\nCloudant service = new Cloudant(Cloudant.DEFAULT_SERVICE_NAME, authenticator);\n\nservice.setServiceUrl(\"{url}\");\n```\n\n```javascript\nimport { CloudantV1 } from '@ibm-cloud/cloudant';\nimport { IamAuthenticator } from 'ibm-cloud-sdk-core';\n\nconst authenticator = new IamAuthenticator({\n    apikey: '{apikey}'\n});\n\nconst service = new CloudantV1({\n    authenticator: authenticator\n});\n\nservice.setServiceUrl('{url}');\n```\n\n```python\nfrom ibmcloudant.cloudant_v1 import CloudantV1\nfrom ibm_cloud_sdk_core.authenticators import IAMAuthenticator\n\nauthenticator = IAMAuthenticator('{apikey}')\n\nservice = CloudantV1(authenticator=authenticator)\n\nservice.set_service_url('{url}')\n```\n\n```go\nimport (\n    \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n    \"github.com/IBM/go-sdk-core/core\"\n)\n\nauthenticator := &core.IamAuthenticator{\n    ApiKey: \"{apikey}\",\n}\n\nservice, err := cloudantv1.NewCloudantV1(\n    &cloudantv1.CloudantV1Options{\n        URL:           \"{url}\",\n        Authenticator: authenticator,\n    },\n)\nif err != nil {\n    panic(err)\n}\n```\n\nSDK managing session cookie.\n\n```java\nimport com.ibm.cloud.cloudant.v1.Cloudant;\nimport com.ibm.cloud.sdk.core.security.Authenticator;\nimport com.ibm.cloud.cloudant.security.CouchDbSessionAuthenticator;\n\nAuthenticator authenticator = CouchDbSessionAuthenticator.newAuthenticator(\"{username}\", \"{password}\");\n\nCloudant service = new Cloudant(Cloudant.DEFAULT_SERVICE_NAME, authenticator);\n\nservice.setServiceUrl(\"{url}\");\n```\n\n```javascript\nimport { CloudantV1, CouchdbSessionAuthenticator } from '@ibm-cloud/cloudant';\n\nconst authenticator = new CouchdbSessionAuthenticator({\n    username: '{username}',\n    password: '{password}'\n});\n\nconst service = new CloudantV1({\n    authenticator: authenticator\n});\n\nservice.setServiceUrl('{url}');\n```\n\n```python\nfrom ibmcloudant.cloudant_v1 import CloudantV1\nfrom ibmcloudant import CouchDbSessionAuthenticator\n\nauthenticator = CouchDbSessionAuthenticator('{username}', '{password}')\n\nservice = CloudantV1(authenticator=authenticator)\n\nservice.set_service_url('{url}')\n```\n\n```go\nimport (\n    \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n    \"github.com/IBM/cloudant-go-sdk/auth\"\n)\n\nauthenticator, err := auth.NewCouchDbSessionAuthenticator(\n    \"{username}\",\n    \"{password}\",\n)\nif err != nil {\n    panic(err)\n}\n\nservice, err := cloudantv1.NewCloudantV1(\n    &cloudantv1.CloudantV1Options{\n        URL:           \"{url}\",\n        Authenticator: authenticator,\n    },\n)\nif err != nil {\n    panic(err)\n}\n```\n\nBasic authentication.\n\n```java\nimport com.ibm.cloud.cloudant.v1.Cloudant;\nimport com.ibm.cloud.sdk.core.security.BasicAuthenticator;\n\nBasicAuthenticator authenticator = new BasicAuthenticator.Builder()\n    .username(\"{username}\")\n    .password(\"{password}\")\n    .build();\n\nCloudant service = new Cloudant(Cloudant.DEFAULT_SERVICE_NAME, authenticator);\n\nservice.setServiceUrl(\"{url}\");\n```\n\n```javascript\nimport { CloudantV1 } from '@ibm-cloud/cloudant';\nimport { BasicAuthenticator } from 'ibm-cloud-sdk-core';\n\nconst authenticator = new BasicAuthenticator({\n    username: '{username}',\n    password: '{password}'\n});\n\nconst service = new CloudantV1({\n    authenticator: authenticator\n});\n\nservice.setServiceUrl('{url}');\n```\n\n```python\nfrom ibmcloudant.cloudant_v1 import CloudantV1\nfrom ibm_cloud_sdk_core.authenticators import BasicAuthenticator\n\nauthenticator = BasicAuthenticator('{username}', '{password}')\n\nservice = CloudantV1(authenticator=authenticator)\n\nservice.set_service_url('{url}')\n```\n\n```go\nimport (\n    \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n    \"github.com/IBM/go-sdk-core/core\"\n)\n\nauthenticator, err := core.NewBasicAuthenticator(\n    \"{username}\",\n    \"{password}\",\n)\nif err != nil {\n    panic(err)\n}\n\nservice, err := cloudantv1.NewCloudantV1(\n    &cloudantv1.CloudantV1Options{\n        URL:           \"{url}\",\n        Authenticator: authenticator,\n    },\n)\nif err != nil {\n    panic(err)\n}\n```\n\n[about]: /docs/Cloudant\n[gs]: /docs/Cloudant?topic=Cloudant-getting-started-with-cloudant#getting-started-with-cloudant\n[1]: /docs/Cloudant?topic=Cloudant-work-with-your-account\n[cl]: /docs/Cloudant?topic=Cloudant-client-libraries#client-libraries\n[iamtoken]: /docs/account?topic=account-iamtoken_from_apikey\n\n## Error handling\n\nIBM Cloudant operation uses\nstandard HTTP response codes to indicate the status of the operation.\nHTTP response codes in the `2xx` range indicate success.\nA `4xx` range indicates a failure, and a `5xx` range usually indicates\nan internal system error. More detailed error information is available\nin the body of the response.\n\nFor some HTTP requests, for example bulk operations, a `2xx` response may\nindicate overall request success, but individual actions may have failed.\nFor these cases the HTTP status code is insufficient to indicate success\nor failure and the caller must inspect the response body contents.\n\n| HTTP Code                               | Meaning                                                                                                                                                                                                                                                                     |\n|-----------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `200 - OK`                              | Request completed successfully.                                                                                                                                                                                                                                             |\n| `201 - Created`                         | Resource created or updated successfully. The resource could be a database or a document, for example.                                                                                                                                                                      |\n| `202 - Accepted`                        | Request accepted, but failed to meet the [quorum](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-documents#quorum-writing-and-reading-data) for the operation.                                                                                                                               |\n| `206 - Partial Content`                 | Request was successful and the body contains the ranges of data, as described in the `Range` header of the request.                                                                                                                                                         |\n| `304 - Not Modified`                    | The requested content has not changed. The [ETag](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-how-http-works-with-cloudant#etag) system that identifies the version of information returned uses this code.                                                                               |\n| `400 - Bad Request`                     | Bad request structure. The error can indicate an error with the request URL, path, or headers. Differences in the supplied MD5 hash and content also trigger this error, as this error might indicate message corruption.                                                   |\n| `401 - Unauthorized`                    | The item requested was not available with the supplied authorization, or authorization was not supplied.                                                                                                                                                                    |\n| `402 - Payment required`                | Either the account is in arrears or the amount of data exceeds the plan quota. You can delete data, upgrade plan, or bring the account up to date.                                                                                                                          |\n| `403 - Forbidden`                       | The server forbids access to the requested item or operation.                                                                                                                                                                                                               |\n| `404 - Not Found`                       | The requested resource does not exist or is not visible. The content includes further information as a JSON object, if available. The structure contains two keys, `error` and `reason`, similar to the following example: `{ \"error\":\"not_found\", \"reason\":\"no_db_file\" }` |\n| `405 - Resource Not Allowed`            | A request was made by using an invalid HTTP request type for the URL requested. For example, you requested a `PUT` when a `POST` is expected. Errors of this type can also be triggered by invalid URL strings.                                                             |\n| `406 - Not Acceptable`                  | The requested response content type is not supported by the server.                                                                                                                                                                                                         |\n| `408 - Request Timeout`                 | Timeout during reading client request.                                                                                                                                                                                                                                      |\n| `410 - Gone`                            | The requested resource is no longer available.                                                                                                                                                                                                                              |\n| `409 - Conflict`                        | Request resulted in an update conflict. The two most common causes are firstly, trying to update or delete a document without providing a revision and secondly, that the latest revision of the document on the server changed between a fetch and an update.              |\n| `412 - Precondition Failed`             | The request headers from the client and the capabilities of the server do not match. Alternatively, a request to create a database was denied because the database exists.                                                                                                  |\n| `413 - Request Entity Too Large`        | The request size exceeded the [limit](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-limits#request-payload-overview) for the IBM Cloudant API.                                                                                                                 |\n| `415 - Bad Content Type`                | The content type of the request is not supported by the server.                                                                                                                                                                                                             |\n| `416 - Requested Range Not Satisfiable` | The server cannot satisfy the range specified in the request header.                                                                                                                                                                                                        |\n| `429 - Too Many Requests`               | The user sent too many requests in a specific amount of time. More information is available in the corresponding [RFC 6585](https://datatracker.ietf.org/doc/html/rfc6585#section-4).                                                                           |\n| `500 - Internal Server Error`           | The server could not complete the request. It could be due to an internal error or sometimes invalid data in the request.                                                                                                                                                   |\n| `502 - Bad Gateway`                     | The server while acting as a gateway or proxy, received an invalid response from the upstream server.                                                                                                                                                                       |\n| `503 - Service Unavailable`             | The service is not available for the request. Seeing this response might indicate a misspelled IBM Cloudant account name.                                                                                                                      |\n| `504 - Gateway Timeout`                 | Timeout when the server is acting as a gateway and cannot get a response in time.                                                                                                                                                                                           |\n| `507 - Insufficient Storage`            | There is insufficient storage space to complete the request.                                                                                                                                                                                                                |\n\nIBM Cloudant HTTP API requests may also fail due to external factors,\nfor example, network errors. These kinds of errors may prevent the server receiving the request or\nthe client receiving the HTTP response. As a result the error format is different in these cases.\n\n### Error response\n\n| Name                         | Description                                                                           |\n|------------------------------|---------------------------------------------------------------------------------------|\n| error `string`               | the error message returned in the response                                            |\n| reason `string`              | a more detailed description about the cause of the failure                            |\n| caused_by (optional) `string`| the cause of the error                                                                |\n\n| Name                         | Description                                                     |\n|------------------------------|-----------------------------------------------------------------|\n| code `integer`               | HTTP error code                                                 |\n| error `string`               | a more detailed description about the cause of the failure code |\n\n| Name                         | Description                                         |\n|------------------------------|-----------------------------------------------------|\n| message `string`             | detailed description about the cause of the failure |\n\nThe [HTTP response headers](#response-headers) may contain additional information useful for tracing errors.\n\n```sh\ncurl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET 'https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/products'\n```\nError response\n```json\n{\n  \"error\": \"not_found\",\n  \"reason\": \"Database does not exist.\"\n}\n```\n\nError Responses specific to `/_api/v2/` endpoints\n\n```sh\ncurl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" 'https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/_api/v2/db/products/_security'\n```\n```json\n{\n  \"code\": 400,\n  \"error\": \"No DB products belonging to 00000000-0000-0000-0000-000000000000-bluemix\"\n}\n```\n\n```sh\ncurl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -d '' 'https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/_api/v2/user/capacity/throughput'\n```\n```json\n{\n    \"message\": \"The method is not allowed for the requested URL.\"\n}\n```\n\n### Error response\n\nWhen the Go SDK receives an error response from the server endpoint it returns a\nstandard Go `error`.\nThe `Error()` function of the `error` returns either the HTTP response error message\nor a generic error message.\n\nIn addition to an `error` SDK operations may also return a `DetailedResponse` with\nmethods to retrieve additional information.\n\n| Field      | Method         | Description                                                          |\n|------------|----------------|----------------------------------------------------------------------|\n| StatusCode | GetStatusCode  | HTTP response status code.                                           |\n| Result     | GetResultAsMap | JSON error response object unmarshalled as `map[string]interface{}`. |\n| RawResult  | GetRawResult   | Raw error response body as `[]byte`.                                 |\n\n| Key       | Value description                                                                                                                                     |\n|-----------|-------------------------------------------------------------------------------------------------------------------------------------------------------|\n| message   | Human readable and printable error message of error and reason.                                                                                       |\n| error     | Error type, for example `not_found`.                                                                                                                  |\n| reason    | Error reason, for example `Database does not exist`.                                                                                                 |\n| caused_by | Additional error cause information if available.                                                                                                      |\n| trace     | Trace UUID from the [`X-Request-ID`](#response-headers-x-request-id) or [`X-Couch-Request-ID`](#response-headers-x-couch-request-id) response header. |\n\n#### Other errors\n\nHTTP API requests may also fail with other error conditions, for example,\nvalidation or networking issues.\n\nFor errors unrelated to the HTTP status code the SDK still returns a\nstandard Go `error`. However, the `DetailedResponse` information is absent or limited.\n\nAn example would be an HTTP request that the server terminates when it exceeds a timeout.\nIn this case the request returns a `DetailedResponse` with only a `StatusCode`.\nThe `Result` and `RawResult` elements are `nil`.\n\nArgument validation prevents some invalid values and the SDK does not send the request.\nThis results in `Result` and `RawResult` being `nil`, and a returned\nerror message with no status code or reason.\n\nIn all other cases, `DetailedResponse` is `nil` because there is no JSON error\nresponse from the IBM Cloudant Service.\n\nExample error handling\n\n```go\nimport (\n\t\"encoding/json\"\n\t\"fmt\"\n\n\t\"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n\t\"github.com/IBM/go-sdk-core/v5/core\"\n)\n\nfunc errorHandlingExample() {\n\tservice, err := cloudantv1.NewCloudantV1(\n\t\t&cloudantv1.CloudantV1Options{},\n\t)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tgetDatabaseInformationOptions := service.NewGetDatabaseInformationOptions(\n\t\t\"products\",\n\t)\n\n\tvar response core.DetailedResponse\n\tdatabaseInformation, response, err := service.GetDatabaseInformation(getDatabaseInformationOptions)\n\tif err != nil {\n\t\t// Use the DetailedResponse to check the HTTP status code\n\t\tif response.StatusCode == 404 {\n\t\t\t// Handle database not existing, maybe create it\n\t\t} else {\n\t\t\tfmt.Println(\"Error: \", err.Error())\n\t\t\tfmt.Println(\"Error status code: \", response.StatusCode)\n\t\t\t// Handle other errors\n\t\t\terrorMap, ok := response.GetResultAsMap()\n\t\t\tif ok {\n\t\t\t\t// Get the request UUID for what went wrong\n\t\t\t\tfmt.Println(\"Trace request UUID: \", errorMap[\"trace\"])\n\t\t\t} else {\n\t\t\t\t// For example to handle non-JSON response bodies\n\t\t\t\tfmt.Println(\"Raw error response: \", response.RawResult)\n\t\t\t}\n\t\t}\n\t}\n\n\tb, _ := json.MarshalIndent(databaseInformation, \"\", \"  \")\n\tfmt.Println(string(b))\n}\n```\n\n### Error response\n\nWhen the Java SDK receives an error response from the server endpoint it throws a\n`RuntimeException`. Specifically a subclass of `ServiceResponseException` from the\n`com.ibm.cloud.sdk.core.service.exception` package. The specific subclass depends\non the error encountered.\n\n| Exception class                 | Description including HTTP status code where applicable                                                                                |\n|---------------------------------|----------------------------------------------------------------------------------------------------------------------------------------|\n| ServiceResponseException        | Super class for all service response exceptions.                                                                                       |\n| BadRequestException             | `400` Bad Request.                                                                                                                     |\n| UnauthorizedException           | `401` Unauthorized.                                                                                                                    |\n| ForbiddenException              | `403` Forbidden.                                                                                                                       |\n| NotFoundException               | `404` Not Found.                                                                                                                       |\n| NotAcceptableException          | `406` Not Acceptable.                                                                                                                  |\n| ConflictException               | `409` Conflict.                                                                                                                        |\n| RequestTooLargeException        | `413` Request Entity Too Large.                                                                                                        |\n| UnsupportedException            | `415` Unsupported media type.                                                                                                          |\n| TooManyRequestsException        | `429` Too Many Requests.                                                                                                               |\n| InternalServerErrorException    | `500` Internal server error.                                                                                                           |\n| ServiceUnavailableException     | `503` Service Unavailable.                                                                                                             |\n| InvalidServiceResponseException | Could not process the response body. Most commonly caused when the server truncates a long running query that exceeded the time limit. |\n\nAll `ServiceResponseException` types have methods to retrieve additional error information.\n\n| Method             | Description                                                               |\n|--------------------|---------------------------------------------------------------------------|\n| getStatusCode()    | HTTP response status code.                                                |\n| getMessage()       | Human readable and printable error message.                               |\n| getDebuggingInfo() | JSON error response body as a `Map<String, Object>`                       |\n| getHeaders()       | HTTP response headers.                                                    |\n| getResponseBody()  | Raw error response body as `String`.                                      |\n\n| Key       | Value description                                                                                                                                     |\n|-----------|-------------------------------------------------------------------------------------------------------------------------------------------------------|\n| message   | Human readable and printable error message of error and reason.                                                                                       |\n| error     | Error type, for example `not_found`.                                                                                                                  |\n| reason    | Error reason, for example `Database does not exist`.                                                                                                 |\n| caused_by | Additional error cause information if available.                                                                                                      |\n| trace     | Trace UUID from the [`X-Request-ID`](#response-headers-x-request-id) or [`X-Couch-Request-ID`](#response-headers-x-couch-request-id) response header. |\n\n#### Other errors\n\nHTTP API requests may also fail with other error conditions, for example,\nvalidation or networking issues.\n\nFor errors unrelated to the HTTP status code the SDK throws other `RuntimeException` types.\n\nFor example for many networking errors the SDK throws an `IOException` wrapped in a `RuntimeException`.\n\nArgument validation prevents some invalid values and the SDK does not send the request.\nFor these cases the SDK throws an `IllegalArgumentException`.\n\n| Exception class          | Description                                                                                                |\n|--------------------------|------------------------------------------------------------------------------------------------------------|\n| RuntimeException         | Use `getCause()` to identify the underlying cause. Typically an `IOException` caused by networking issues. |\n| IllegalArgumentException | Invalid argument passed to the method.                                                                     |\n| IllegalStateException    | The operation cannot be performed, for example starting a changes follower that is already started.       |\n\nExample error handling\n\n```java\nimport com.ibm.cloud.cloudant.v1.Cloudant;\nimport com.ibm.cloud.cloudant.v1.model.DatabaseInformation;\nimport com.ibm.cloud.cloudant.v1.model.GetDatabaseInformationOptions;\nimport com.ibm.cloud.sdk.core.service.exception.NotFoundException;\nimport com.ibm.cloud.sdk.core.service.exception.ServiceResponseException;\n\npublic class ErrorHandlingExample {\n\n    public static void main() {\n        Cloudant service = Cloudant.newInstance();\n\n        GetDatabaseInformationOptions databaseInfoOptions =\n                new GetDatabaseInformationOptions.Builder().db(\"products\").build();\n\n        try {\n            DatabaseInformation response =\n                    service.getDatabaseInformation(databaseInfoOptions).execute().getResult();\n            System.out.println(response);\n        } catch (NotFoundException e) {\n            // Handle database not existing, maybe create it\n        } catch (ServiceResponseException e) {\n            System.out.println(\"Error: \" + e.getMessage());\n            System.out.println(\"Error status code: \" + e.getStatusCode());\n            System.out.println(\"Trace UUID: \" + e.getDebuggingInfo().getOrDefault(\"trace\", \"No trace available\"));\n        } catch (RuntimeException e) {\n            e.printStackTrace();\n        }\n    }\n}\n```\n\n### Error response\n\nWhen the Node SDK receives an error response from the server endpoint it creates\nan `Error` that contains either the HTTP response error message or a generic error message.\nThe `Promise` returned from the SDK operation rejects with this `Error`.\n\nFor HTTP response errors the properties of the of `Error` include additional information.\n\n| Property   | Description                                 |\n|------------|---------------------------------------------|\n| status     | HTTP response status code.                  |\n| statusText | Text description of the status code.        |\n| message    | Human readable and printable error message. |\n| result     | Error JSON response body as an object.      |\n| body       | Raw error response body as a `string`.      |\n\n| Key       | Value description                                                                                                                                     |\n|-----------|-------------------------------------------------------------------------------------------------------------------------------------------------------|\n| error     | Error type, for example `not_found`.                                                                                                                  |\n| reason    | Error reason, for example `Database does not exist`.                                                                                                 |\n| caused_by | Additional error cause information if available.                                                                                                      |\n| trace     | Trace UUID from the [`X-Request-ID`](#response-headers-x-request-id) or [`X-Couch-Request-ID`](#response-headers-x-couch-request-id) response header. |\n\n#### Other errors\n\nHTTP API requests may also fail with other error conditions, for example,\nvalidation or networking issues.\n\nFor errors unrelated to the HTTP status code the SDK still rejects with an\n`Error`. However, the available error properties may be more limited.\n\nFor these errors `message` still provides a summary of the problem.\nThere is no `status` defined since there is no HTTP response status code.\nThe `statusText` or `body` contain additional information.\n\nWhen an error prevents the request reaching the service the `Error`\n`code` property may be useful.\n\nAn example is argument validation that prevents some invalid values\nand the SDK does not send the request. Invalid argument values reject\nwith an `Error` object containing a `code` field with the value\n`ERR_INVALID_ARG_VALUE`.\n\n| Property   | Description                                               |\n|------------|-----------------------------------------------------------|\n| message    | Human readable and printable error message.               |\n| statusText | Text description of the status code.                      |\n| body       | Raw error response body as a `string`.                    |\n| code       | Code for some errors that occur before sending a request. |\n\nExample error handling\n\n```javascript\nimport { CloudantV1 } from '@ibm-cloud/cloudant';\n\nfunction errorHandlingExample() {\n  const service = CloudantV1.newInstance({});\n\n  return service.getDatabaseInformation({ db: \"products\"})\n    .then(response => {\n      console.log(response.result);\n    }).catch((error) => {\n      console.log(`Error message:      ${error.message}`);\n      console.log(`Error status text:  ${error.statusText}`);\n      if (error.status) {\n        if (error.status === 404) {\n          // Handle database not existing, maybe create it\n        } else {\n          console.log(`Error status code:  ${error.status}`);\n          console.log(`Trace request UUID: ${error?.result?.trace}`);\n        }\n      } else if (error.code) {\n        console.log(`Error code:         ${error.code}`);\n      } else {\n        console.log(`Error body:         ${error.body}`);\n      }\n    });\n}\n\nawait errorHandlingExample();\n```\n\n### Error response\n\nWhen the Python SDK receives an error response from the server endpoint it raises\na standard Python `Exception`. For HTTP response errors the subclass is `ApiException`\nfrom the `ibm_cloud_sdk_core` module. The `ApiException` includes more information about\nthe cause of the failure.\n\n| Attribute     | Description                                                |\n|---------------|------------------------------------------------------------|\n| code          | HTTP response status code                                  |\n| message       | Human readable and printable error message.                |\n| http_response | Raw `requests.response` object for the HTTP response body. |\n\nUse the `json()` method of the `http_response` attribute to obtain even more\ndetailed error information.\n\n| Key       | Value description                                                                                                                                     |\n|-----------|-------------------------------------------------------------------------------------------------------------------------------------------------------|\n| error     | Error type, for example `not_found`.                                                                                                                  |\n| reason    | Error reason, for example `Database does not exist`.                                                                                                 |\n| caused_by | Additional error cause information if available.                                                                                                      |\n| trace     | Trace UUID from the [`X-Request-ID`](#response-headers-x-request-id) or [`X-Couch-Request-ID`](#response-headers-x-couch-request-id) response header. |\n\n#### Other errors\n\nHTTP API requests may also fail with other error conditions, for example,\nvalidation or networking issues.\n\nFor errors unrelated to the HTTP status code the SDK still raises an `Exception`.\nHowever, the available error properties are different.\n\nNetworking errors and issues like timeouts raise a `requests.RequestException`.\nConsult the `requests` documentation for details of the available subclasses for\nspecific connection related error conditions.\n\nArgument validation prevents some invalid values and the request is not sent.\nInvalid argument values raise a `ValueError` exception.\n\nExample error handling\n\n```python\nfrom ibmcloudant.cloudant_v1 import CloudantV1\nfrom ibm_cloud_sdk_core import ApiException\nfrom requests import RequestException\n\nservice = CloudantV1.new_instance()\n\ntry:\n    response = service.get_database_information(db=\"products\").get_result()\n    print(response)\nexcept ApiException as ae:\n    print(\"Error message: \" + ae.message)\n    if ae.status_code == 404:\n        # Handle database not existing, maybe create it\n        pass\n    else:\n        print(f'Error status code: {ae.status_code}')\n        if 'trace' in (debugInfo := ae.http_response.json()):\n            print(f'Trace request UUID: {debugInfo[\"trace\"]}')\nexcept (RequestException, ValueError) as err:\n    print(err)\n\n```\n\n## Auditing\n\nYou can monitor API activity within your account by using the IBM Cloud® Activity Tracker service. An event is generated for most of the API endpoints when they are called, and you can then track and audit from within Activity Tracker. The specific event type is listed for each individual method. For methods that don't list any events, no events are generated.\n\nFor more information about how to track IBM Cloudant activity, see [Audit logging](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-audit-logging).\n\n## Additional headers\n\nIBM Cloudant uses HTTP.\nSet the correct HTTP request headers and process the response headers inline with the HTTP specification.\nThis course of action ensures that you get the correct format and encoding.\nDifferent environments and clients are more or less strict on the effect of these HTTP headers,\nespecially when they are not present.\nTo reduce the likelihood of problems or unexpected behavior,\nbe as specific as possible for your client environment.\n\nIBM Cloudant SDKs handle required headers automatically.\nThe SDKs also allow for setting some headers as part of the request options\nwithout needing to use custom header code.\n\nYou can pass additional request header parameters in all requests or in a single request to the service.\n\nTo pass header parameters in a single `curl` request, use the `-H` option.\n\nExample header parameter in a request\n\n```sh\ncurl -H 'Custom-Header:custom_value' -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud\n```\n\nTo pass header parameters with every request, use the `SetDefaultHeaders` method of the service object.\n\nTo pass header parameters in a single request, use `SetHeaders` to include the headers in the options struct before calling the operation.\n\nExample header parameter in all requests\n\n```go\ncustomHeaders := http.Header{}\ncustomHeaders.Add(\"Custom-Header\", \"custom_value\")\nservice.SetDefaultHeaders(customHeaders)\n```\n\nExample header parameter in a request\n\n```go\noptions := service.NewGetServerInformationOptions()\n\ncustomHeaders := make(map[string]string)\ncustomHeaders[\"Custom-Header\"] = \"custom_value\"\n\noptions.SetHeaders(customHeaders)\n\nserverInformation, response, err := service.GetServerInformation(options)\n```\n\nYou can pass request header parameters in all requests or in a single request to the service.\n\nTo pass header parameters with every request, use the `setDefaultHeaders` method of the service object.\n\nTo pass header parameters in a single request, use the `addHeader` method as a modifier before you execute the request.\n\nExample header parameter in all requests\n\n```java\nMap<String, String> headers = new HashMap<String, String>();\nheaders.put(\"Customer-Header\", \"custom_value\");\n\nservice.setDefaultHeaders(headers);\n```\n\nExample header parameter in a request\n\n```java\nServerInformation response = service.getServerInformation()\n        .addHeader(\"Custom-Header\", \"custom_value\")\n        .execute();\n```\n\nYou can pass request header parameters in all requests or in a single request to the service.\n\nTo pass header parameters with every request, specify the `set_default_headers` method of the service object.\n\nTo pass header parameters in a single request, include `headers` as a `dict` in the request.\n\nExample header parameter in all requests\n\n```javascript\nconst service = CloudantV1.newInstance({\n  headers: {\n    'Custom-Header': 'custom_value',\n  },\n});\n```\n\nExample header parameter in a request\n\n```javascript\nservice.getServerInformation({\n  headers: {\n    'Custom-Header': 'custom_value'\n  }\n}).then(response => {\n  console.log(response.result);\n});\n```\n\nYou can pass request header parameters in all requests or in a single request to the service.\n\nTo pass header parameters with every request, specify the `set_default_headers` method of the service object.\n\nTo pass header parameters in a single request, include `headers` as a `dict` in the request.\n\nExample header parameter in all requests\n\n```python\nheaders = {\n    'Custom-Header': 'custom_value'\n}\n\nservice.set_default_headers(headers)\n```\n\nExample header parameter in a request\n\n```python\nresponse = service.get_server_information(\n    headers = {\n        'Custom-Header': 'custom_value'\n    })\n```\n\n### Request headers\n\nAdditional supported HTTP request headers are:\n\n*\t`Accept`\n*\t`Accept-Encoding`\n*\t`Content-Type`\n*\t`Content-Encoding`\n*\t`If-None-Match`\n*\t`Range`\n*\t`X-Request-ID`\n\n#### Accept\n\nThe `Accept` header specifies the list of potential data types returned by the server that\nthe client accepts.\nThe format is a list of one or more MIME types, separated by colons.\n\nFor the most requests,\nthe accepted list must include JSON data (`application/json`).\n\nFor attachments,\nyou can either specify the MIME type explicitly,\nor use `*/*` to specify that the client accepts any type.\n\nIf the `Accept` header is not supplied,\nthen the server assumes the `*/*` MIME type,\nwhich means that the client accepts all formats.\n\nThe use of `Accept` in queries to IBM Cloudant is not required,\nbut is highly recommended as it helps to ensure that the client can process the data returned.\n\nIf you specify a data type that uses the `Accept` header,\nIBM Cloudant honors the specified type in the `Content-Type` header field of responses.\nFor example,\nif you explicitly request `application/json` in the `Accept` of a request,\nthe returned HTTP headers use this value in the returned `Content-Type` field.\n\nIBM Cloudant SDKs set this header automatically except for requests\nwhere the user controls the content type, for example, attachments.\n\nExample of sending a request without an explicit `Accept` header, or when you specify `*/*`.\n```http\nGET /recipes HTTP/1.1\nHost: username.cloudant.com\nAccept: */*\n```\n\nExample of a returned header when the client accepts all formats.\n\nThe returned content type is `text/plain` even though the information returned by the request is in JSON format.\n\n```http\nServer: CouchDB/1.0.2 (Erlang OTP/R14B)\nDate: Thu, 13 Jan 2011 13:39:34 GMT\nContent-Type: text/plain;charset=utf-8\nContent-Length: #7\nCache-Control: must-revalidate\n```\n\nExample request that explicitly specifies the `Accept` header.\n\n```http\nGET /recipes HTTP/1.1\nHost: username.cloudant.com\nAccept: application/json\n```\n\nExample of the headers returned in response, including the `application/json` content type.\n\n```http\nServer: CouchDB/1.0.2 (Erlang OTP/R14B)\nDate: Thu, 13 Jan 2011 13:40:11 GMT\nContent-Type: application/json\nContent-Length: #7\nCache-Control: must-revalidate\n```\n\n#### Accept-Encoding\n\nThe `Accept-Encoding` header specifies the server encoding of the response body the client accepts.\nThe supported values are:\n\n* `gzip`\n* `identity`\n\n#### Content-Encoding\n\nThe `Content-Encoding` header specifies the encoding of the request body.\nThe supported value is `gzip`.\nIf the header is used,\nthe request body must be encoded with the corresponding format.\n\nIBM Cloudant SDKs set this header and compress request bodies automatically.\n\nYou can also send compressed request bodies using `gzip` and `curl`.\n\nExample creating a gzipped document.\n\n```sh\necho '{\"foo\":\"bar\"}' | gzip > doc.gzip\n```\n\nExample using the gzipped document in a `curl` request.\n\n```sh\ncurl \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/db/doc\" \\\n\t-X PUT \\\n\t-T doc.gzip \\\n\t-H \"Content-Encoding: gzip\"\n```\n\n#### Content-Type\n\nThe `Content-Type` header specifies the content type of the HTTP request body.\nThe specification uses MIME type specifications.\nFor most requests,\nthe content type is JSON (`application/json`).\n\nFor some settings, the MIME type is plain text.\n\nIn particular,\nwhen you upload attachments the type must be the corresponding\nMIME type for the attachment or binary (`application/octet-stream`).\n\nThe use of the `Content-Type` on a request is highly recommended.\n\n#### If-None-Match\n\nThe `If-None-Match` header is optional.\nYou might send it to determine whether a document changed since it was last read or updated.\nThe value of the `If-None-Match` header must match the last `Etag` value received.\nIf the value matches the current revision of the document,\nthe server sends a `304 Not Modified` status code,\nand the response itself has no body.\n\nIf the document changed,\nyou get a normal `200` response,\nprovided the document still exists and no other errors occurred.\n\n#### Range\n\nThe `Range` header specifies the parts of an attachment that the server should return. Several parts can be requested at the same time in one `Range` header, and the server may send back these ranges in a multipart document. If the server sends back ranges, it uses the status line `206 Partial Content` for the response.\n\n#### X-Request-ID\n\nAssign a [UUIDv4 (random)](https://datatracker.ietf.org/doc/html/rfc9562#name-uuid-version-4) to a request for tracing.\nIf the supplied `X-Request-ID` header value is a valid UUIDv4 it is also returned in the response [`X-Request-ID` header](#response-headers-x-request-id).\nIf the `X-Request-ID` is not set on a request or the supplied value is not a valid UUIDv4 then the server generates a valid value and returns it in the response [`X-Couch-Request-ID` header](#response-headers-x-couch-request-id).\n\n### Response headers\n\nThe server returns response headers when you receive content.\nThey include a number of different fields. Many of the fields are standard HTTP response headers and have no significance regarding how IBM Cloudant operates.\nThe supported HTTP response headers that are important to IBM Cloudant are:\n\n* `Cache-Control`\n* `Content-Encoding`\n* `Content-Length`\n* `Content-Range`\n* `Content-Type`\n* `Etag`\n* `Via`\n* `X-Cloudant-Action`\n* `X-Cloudant-Backend`\n* `X-Cloudant-Request-Class`\n* `X-Content-Type-Options`\n* `X-Couch-Request-ID`\n* `X-Frame-Options`\n* `X-Request-ID`\n\nYou can access response headers returned by IBM Cloudant operations to retrieve metadata such as request IDs for tracing and debugging.\n\nThe examples show how to retrieve the `X-Couch-Request-ID` header from a response.\n\nTo view response headers in a `curl` request, use the `-i` or `--include` option.\n\nAccess the `Headers` field of the `DetailedResponse` returned by operations.\n\nAccess the `Headers` object from the `Response` returned by operations.\n\nAccess the `headers` field of the response object returned by operations.\n\nAccess headers using the `get_headers()` method of the `DetailedResponse` returned by operations.\n\n#### Cache-Control\n\nThe `Cache-Control` HTTP response header provides a suggestion for the client cache mechanisms\non how to treat the returned information.\nIBM Cloudant typically returns the `must-revalidate` value,\nwhich indicates that the information must be revalidated if possible.\nRevalidation ensures that the dynamic nature of the content is correctly updated.\n\n#### Content-Encoding\n\nIndicates the encoding of the response body as negotiated by the `Accept-Encoding` request header.\n\n#### Content-Length\n\nThe `Content-Length` header reports the length in bytes of the returned content.\n\n#### Content-Range\n\nThe `Content-Range` header specifies where in the full document's attachment a partial content belongs.\nThe value is in the form of `bytes <range>/<total content length>`.\nThe `Range` request header is required to specify the partial content to be returned.\n\n#### Content-Type\n\nThe `Content-Type` header specifies the MIME type of the returned data.\nFor most request,\nthe returned MIME type is `text/plain`.\nAll text is encoded in Unicode (UTF-8),\nwhich is explicitly stated in the returned `Content-Type` as `text/plain;charset=utf-8`.\n\n#### Etag\n\nThe `Etag` header is used to show the revision for a document,\nor the response from a show function.\nFor documents,\nthe value is identical to the revision of the document.\nThe value can be used with an `If-None-Match` request header\nto get a `304 Not Modified` response if the revision is still current.\n\nETags cannot currently be used with views or lists,\nsince the ETags returned from those requests are random numbers that change on every request.\n\n#### Via\n\nA name of an individual reverse proxy server that processed the request.\n\n#### X-Cloudant-Action\n\nAn auditing event's action name generated for the request.\n\n#### X-Cloudant-Backend\n\nA name of an individual backend server that processed the request.\n\n#### X-Cloudant-Request-Class\n\nA request class assigned to the request that count toward\nthe instance's throughput capacity's budget.\n\n#### X-Content-Type-Options\n\nThe `X-Content-Type-Options` response HTTP header is a marker\nused by the server to indicate that the MIME types advertised\nin the `Content-Type` headers should be followed and not be changed.\nThis is a security feature to block content sniffing that could transform\nnon-executable MIME types into executable MIME types.\nBy default Cloudant returns `X-Content-Type-Options: nosniff` that blocks\na request if the request destination is of type style and the MIME type\nis not `text/css`, or of type script and the MIME type is not\na JavaScript MIME type.\n\n#### X-Couch-Request-ID\n\nA unique identifier generated by the server if the request did not have a valid `X-Request-ID` header.\n\n#### X-Frame-Options\n\nThe `X-Frame-Options` is a response header that controls whether\nan HTTP response can be embedded in a `<frame>`, `<iframe>` or `<object>`.\nThis is a security feature to help against clickjacking.\nCloudant returns `X-Frame-Options: DENY` by default.\n\n#### X-Request-ID\n\nThis header contains a UUIDv4 value matching the one supplied on the request.\nIf a value was not supplied then the server assigns a UUIDv4 in the [`X-Couch-Request-ID` response header](#response-headers-x-couch-request-id).\n\nExample showing response headers\n```sh\ncurl -i -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/products/1000042\n```\n\nThe response includes headers such as `X-Couch-Request-ID`:\n```http\nHTTP/1.1 200 OK\nX-Couch-Request-ID: 00000000-0000-0000-0000-000000000000\nContent-Type: application/json\n...\n```\n\nExample retrieving response headers\n```go\ngetDocumentOptions := service.NewGetDocumentOptions(\n    \"products\",\n    \"1000042\",\n)\n\ndocument, response, err := service.GetDocument(getDocumentOptions)\nif err != nil {\n    panic(err)\n}\n\n// Access response headers\nresponseHeaders := response.GetHeaders()\ncouchRequestID := responseHeaders.Get(\"X-Couch-Request-ID\")\nfmt.Printf(\"X-Couch-Request-ID: %s\\n\", couchRequestID)\n```\n\nExample retrieving response headers\n```java\nGetDocumentOptions getDocumentOptions = new GetDocumentOptions.Builder()\n    .db(\"products\")\n    .docId(\"1000042\")\n    .build();\n\nResponse<Document> response = service.getDocument(getDocumentOptions).execute();\n\n// Access response headers\nHeaders responseHeaders = response.getHeaders();\nString couchRequestId = responseHeaders.values(\"X-Couch-Request-ID\").get(0);\nSystem.out.println(\"X-Couch-Request-ID: \" + couchRequestId);\n```\n\nExample retrieving response headers\n```javascript\nservice.getDocument({\n  db: 'products',\n  docId: '1000042'\n}).then(response => {\n  // Access response headers\n  const couchRequestId = response.headers['x-couch-request-id'];\n  console.log('X-Couch-Request-ID: ' + couchRequestId);\n});\n```\n\nExample retrieving response headers\n```python\nresponse = service.get_document(\n    db='products',\n    doc_id='1000042'\n)\n\n## Access response headers\nresponse_headers = response.get_headers()\ncouch_request_id = response_headers.get('X-Couch-Request-ID')\nprint(f'X-Couch-Request-ID: {couch_request_id}')\n```\n\n## Pagination\n\nPagination is a best-practice to break apart large queries into multiple server requests.\nFor performance reasons, if you are displaying large amounts of data, you must consider using pagination.\nIt is essential when dealing with large result sets or API endpoints that impose a limit on results returned.\nAdvantages of using pagination include:\n\n* Keeps requests within server imposed limits, for example\n    * 200 max results for text search\n    * 2000 max results for partitioned queries\n* Fetches only the necessary data, for example\n    * User finds required result on first page, no need to continue fetching results\n* Reduces the duration of any individual query\n    * Reduces the risk of a query running for longer than the server timeout limit\n    * Reduces the risk of network request timeouts\n\nDifferent request types in IBM Cloudant use\ndifferent pagination approaches. In all cases use the `limit` parameter to control number of results returned, which is the page size. The chosen page size for an application depends on service limits, document size, latency demands, memory consumption, and other tradeoffs.\n\nThe IBM Cloudant SDKs provide built-in pagination to\ncorrectly paginate different request types.\n\nDo not use the `skip` parameter or `offset` value to paginate.\nIt is not recommended for two reasons. Firstly, entries added or removed from the index between\nrequests can result in missed or duplicated results. Secondly, performance will degrade with\nincreasing `skip` values. Use the pagination recipes outlined in this section or the built-in\npagination of the SDKs instead.\n\n### Index key pagination\n\nThe primary (document ID) index and\n[IBM Cloudant Views](#postview)\nuse the index key from the last entry of the previous page to identify the start position of the\nnext page of the query.\n\nFor details of how to paginate these request types visit the sections:\n* [Paging all documents](#paging-on-all-documents)\n* [Paging view queries](#paging-on-view-queries)\n\n### Bookmark pagination\n\nImagine you're creating a web application that shows a set of search results, whether they be books, actors, or products in your store. As the user scrolls through the search results, another page of matches is appended at the end. This behavior is known as an \"infinite scroll\" design pattern. It allows the user to endlessly scroll through a large data set with ease, while they fetch only smaller batches of data from the database each time.\n\nIt's this sort of access pattern that IBM Cloudant bookmarks are built for. Here's how it works:\n- Your application runs a search on an IBM Cloudant database, for example, find me the first 10 cities where the country is \"US\".\n- IBM Cloudant provides an array of 10 documents and a bookmark, an opaque key that represents a pointer to the next documents in the result set.\n- When the next set of results is required, the search is repeated. However, the query is sent, with the bookmark from the first response, to IBM Cloudant in the request.\n- IBM Cloudant replies with the second set of documents and another bookmark, which can be used to get a third page of results.\n- Repeat!\n\n[IBM Cloudant Query](#postfind) and\n[IBM Cloudant Search](#postsearch)\nprovide a bookmark in the response. When passed to the next request the bookmark identifies the next\npage of results.\n\nFor details of how to paginate these request types visit the sections:\n* [Paging selector syntax queries](#paging-on-selector-syntax-queries)\n* [Paging search index queries](#paging-on-search-index-queries)\n\nThe [IBM Cloudant database changes feed](#postchanges)\nis similar, but uses a sequence identifier instead of a bookmark. For details of how to paginate changes visit the section:\n* [Paging the changes feed](#paging-the-changes-feed)\n\nThe SDK pagination feature accepts options for a single operation and automatically\ncreates the multiple requests to the server necessary to page through the results a fixed number at a time.\n\nFor simplicity the examples shown here demonstrate only iterating the result rows.\nThe SDK pagination feature provides multiple alternative pagination options, for full details\nand examples visit the [SDK repository pagination documentation](https://github.com/IBM/cloudant-java-sdk/blob/main/docs/Pagination.md) [SDK repository pagination documentation](https://github.com/IBM/cloudant-node-sdk/blob/main/docs/Pagination.md) [SDK repository pagination documentation](https://github.com/IBM/cloudant-python-sdk/blob/main/docs/Pagination.md) [SDK repository pagination documentation](https://github.com/IBM/cloudant-go-sdk/blob/main/docs/Pagination.md)\n\n### Paging on all documents\n\nThe all documents pagination recipe applies to these endpoints:\n\n* [GET /{db}/_all_docs](#getalldocs)\n* [POST /{db}/_all_docs](#postalldocs)\n* [GET /{db}/_partition/{partition_key}/_all_docs](#getpartitionalldocs-partitioned-databases)\n* [POST /{db}/_partition/{partition_key}/_all_docs](#postpartitionalldocs)\n* [GET /{db}/_design_docs](#getdesigndocs)\n* [POST /{db}/_design_docs](#postdesigndocs)\n\nPrimary indexes based on the document ID have unique keys.\nTo paginate you need to calculate a value of `start_key`,\nwhich means `the next ID after the last _id in the result set`.\n\nThere are two options to either get or calculate the next `start_key`.\n\n#### Option 1 - Fetch one document too many\n\nInstead of fetching five documents `limit=5`, fetch 5+1 `limit=6`, but hide the sixth document\nfrom your users. The `_id` of the sixth document becomes the `start_key` of your request for\nthe next page of results.\n\nThis option always works, but you end up fetching `n+1` documents when only `n` are required.\n\n#### Option 2 - The \\u0000 trick\n\nIf you're determined to fetch only `n` documents each time, then you need to calculate a value of `start_key`.\nFor example, if the last document\nin the first page of results is \"example\", what must the `start_key` of the next call to `_all_docs` be?\nIt can't be \"example\", otherwise you get the same document ID again. It turns out that you can append\n`\\u0000` to the end of a key string to indicate the \"next key\" because it is the earliest sorting value.\n\nThe `\\u0000` trick does not work in a descending direction because it is the first sort.\n\n`\\u0000` is a Unicode null character, which can be placed in a URL as-is or with the percent code `%00`.\n\nExample of fetch one document too many\n\n[embedmd]:# (curl/examples/pagination/all_docs_fetch_one_too_many.bash sh)\n```sh\ncurl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/orders/_all_docs?limit=6\"\n\n{\n  \"total_rows\": 11,\n  \"offset\": 0,\n  \"rows\": [\n    { \"id\": \"4eee973603bf77f30b1f880ed83df76a\" ....},\n    { \"id\": \"4eee973603bf77f30b1f880ed83f469a\" ....},\n    { \"id\": \"65fa623a384648740ec1f39b495d591c\" ....},\n    { \"id\": \"d7404903579d6d5880514c22ad983529\" ....},\n    { \"id\": \"example\" ....},\n    { \"id\": \"mydoc\" ....} // <-- This is the 6th result we use as the start_key of the next request\n   ]\n}\n\ncurl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/orders/_all_docs?limit=6&start_key=\\\"mydoc\\\"\"\n\n{\n  \"total_rows\": 11,\n  \"offset\": 5,\n  \"rows\": [\n    { \"id\": \"mydoc\" ....},\n    { \"id\": \"order00057\" ....},\n    ...\n   ]\n}\n```\n\nExample of the \\u0000 trick\n\n[embedmd]:# (curl/examples/pagination/all_docs_the_u0000_trick.bash sh)\n```sh\ncurl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/orders/_all_docs?limit=5\"\n\n{\n  \"total_rows\": 11,\n  \"offset\": 0,\n  \"rows\": [\n    { \"id\": \"4eee973603bf77f30b1f880ed83df76a\" ....},\n    { \"id\": \"4eee973603bf77f30b1f880ed83f469a\" ....},\n    { \"id\": \"65fa623a384648740ec1f39b495d591c\" ....},\n    { \"id\": \"d7404903579d6d5880514c22ad983529\" ....},\n    { \"id\": \"example\" ....} // <-- append \\u0000 to this to get the start_key of the next request\n   ]\n}\n\ncurl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/orders/_all_docs?limit=5&start_key=\\\"example\\u0000\\\"\"\n\n{\n  \"total_rows\": 11,\n  \"offset\": 5,\n  \"rows\": [\n    { \"id\": \"mydoc\" ....},\n    { \"id\": \"order00057\" ....},\n    ...\n    { \"id\": \"order00067\" ....} <-- append \\u0000 to this to get the start_key of the next request\n   ]\n}\n```\n\nThe SDK pagination feature is the recommended method to page results on these endpoints.\n\n* [postAllDocs](#postalldocs)\n* [postPartitionAllDocs](#postpartitionalldocs)\n* [postDesignDocs](#postdesigndocs)\n\n* [post_all_docs](#postalldocs)\n* [post_partition_all_docs](#postpartitionalldocs)\n* [post_design_docs](#postdesigndocs)\n\n* [PostAllDocs](#postalldocs)\n* [PostPartitionAllDocs](#postpartitionalldocs)\n* [PostDesignDocs](#postdesigndocs)\n\n- The known limitations:\n  - Cannot reverse direction during pagination.\n  - No pagination for key option. There is no need to paginate as IDs are unique and this returns only a single row. This is better achieved with a single document get request.\n  - No pagination for keys option.\n\nExample of paging on all documents\n\n[embedmd]:# (java/modules/examples/src/main/java/features/pagination/AllDocsPagination.java /^import/ /^$/)\n```java\nimport java.util.List;\nimport com.ibm.cloud.cloudant.v1.Cloudant;\nimport com.ibm.cloud.cloudant.v1.model.DocsResultRow;\nimport com.ibm.cloud.cloudant.v1.model.PostAllDocsOptions;\nimport com.ibm.cloud.cloudant.features.pagination.Pager;\nimport com.ibm.cloud.cloudant.features.pagination.Pagination;\n```\n\n[embedmd]:# (java/modules/examples/src/main/java/features/pagination/AllDocsPagination.java /^.+\\/\\/ Initialize service$/ /^$/)\n```java\n// Initialize service\nCloudant service = Cloudant.newInstance();\n```\n\n[embedmd]:# (java/modules/examples/src/main/java/features/pagination/AllDocsPagination.java /^.+\\/\\/ Setup options$/ /^$/)\n```java\n// Setup options\nPostAllDocsOptions options = new PostAllDocsOptions.Builder()\n  .db(\"orders\") // example database name\n  .limit(50) // limit option sets the page size\n  .startKey(\"abc\") // start from example doc ID abc\n  .build();\n```\n\n[embedmd]:# (java/modules/examples/src/main/java/features/pagination/AllDocsPagination.java /^.+\\/\\/ Create pagination$/ /^$/)\n```java\n// Create pagination\nPagination<PostAllDocsOptions, DocsResultRow> pagination = Pagination.newPagination(service, options);\n// pagination can be reused without side-effects as a factory for iterables, streams or pagers\n// options are fixed at pagination creation time\n```\n\n[embedmd]:# (java/modules/examples/src/main/java/features/pagination/AllDocsPagination.java /^.+\\/\\/ Option: iterate rows$/ /^$/)\n```java\n// Option: iterate rows\n// Ideal for using an enhanced for loop with each row.\n// The Iterable returned from rows() is reusable in that\n// calling iterator() returns a new iterator each time.\n// The returned iterators, however, are single use.\nfor (DocsResultRow row : pagination.rows()) {\n  // Do something with row\n}\n```\n\n[embedmd]:# (node/test/examples/src/features/pagination/js/allDocsPagination.js javascript /^import/ /^$/)\n```javascript\nimport { CloudantV1, Pagination, PagerType } from '@ibm-cloud/cloudant';\nimport { Writable } from 'node:stream';\nimport { pipeline } from 'node:stream/promises';\n```\n\n[embedmd]:# (node/test/examples/src/features/pagination/js/allDocsPagination.js javascript /^\\/\\/ Initialize service$/ /^$/)\n```javascript\n// Initialize service\nconst client = CloudantV1.newInstance();\n```\n\n[embedmd]:# (node/test/examples/src/features/pagination/js/allDocsPagination.js javascript /^\\/\\/ Setup params$/ /^$/)\n```javascript\n// Setup params\nconst paginationParams = {\n  db: 'orders', // Required: the database name.\n  limit: 50, // Optional: limit parameter sets the page size. Default and max is 200.\n  startKey: 'abc', // start from example doc ID abc\n};\n```\n\n[embedmd]:# (node/test/examples/src/features/pagination/js/allDocsPagination.js javascript /^\\/\\/ Create pagination$/ /^$/)\n```javascript\n// Create pagination\n// pagination can be reused without side-effects as a factory for async iterables, streams or pagers\nconst pagination = Pagination.newPagination(\n  client, // Required: the Cloudant service client instance.\n  PagerType.POST_ALL_DOCS, // Required: Pager type\n  paginationParams // Required: pagination configuration params are fixed at pagination creation time\n);\n```\n\n[embedmd]:# (node/test/examples/src/features/pagination/js/allDocsPagination.js javascript /^\\/\\/ Option: iterate rows/ /^$/)\n```javascript\n// Option: iterate rows with for await...of statement\n(async () => {\n  for await (const row of pagination.rows()) {\n    // Do something with row\n  }\n})();\n// Note: Alternatively to for await....of the iterator protocol functions and properties:\n// `next()`, `done`, value`, can be also used on rows().\n// As `next(`)` returns with a Promise, make sure using `await` or `.then()` on it.\n```\n\n[embedmd]:# (python/test/examples/src/features/pagination/all_docs_pagination.py /^from/ /^$/)\n```py\nfrom ibmcloudant import Pager, Pagination, PagerType\nfrom ibmcloudant.cloudant_v1 import CloudantV1\n```\n\n[embedmd]:# (python/test/examples/src/features/pagination/all_docs_pagination.py /^# Initialize service$/ /^$/)\n```py\n## Initialize service\nservice = CloudantV1.new_instance()\n```\n\n[embedmd]:# (python/test/examples/src/features/pagination/all_docs_pagination.py /^# Setup options$/ /^$/)\n```py\n## Setup options\nopts = {\n    'db': 'orders',  # example database name\n    'limit': 50,  # limit option sets the page size,\n    'start_key':  'abc' # start from example doc ID abc\n}\n```\n\n[embedmd]:# (python/test/examples/src/features/pagination/all_docs_pagination.py /^# Create pagination$/ /^$/)\n```py\n## Create pagination\npagination = Pagination.new_pagination(\n    service, PagerType.POST_ALL_DOCS, **opts)\n## pagination can be reused without side-effects as a factory for iterables or pagers\n## options are fixed at pagination creation time\n```\n\n[embedmd]:# (python/test/examples/src/features/pagination/all_docs_pagination.py /^# Option: iterate rows$/ /^$/)\n```py\n## Option: iterate rows\n## Ideal for using a for loop with each row.\n## Each call to rows() returns a fresh iterator that can be traversed once.\nfor row in pagination.rows():\n    # Do something with row\n    pass\n```\n\n[embedmd]:# (go/test/examples/src/pagination/all_docs_pagination.go /^import/ /^$/)\n```go\nimport (\n\t\"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n\t\"github.com/IBM/cloudant-go-sdk/features\"\n)\n```\n\n[embedmd]:# (go/test/examples/src/pagination/all_docs_pagination.go /^.+\\/\\/ Initialize service$/ /^$/)\n```go\n// Initialize service\nservice, err := cloudantv1.NewCloudantV1UsingExternalConfig(\n\t&cloudantv1.CloudantV1Options{},\n)\nif err != nil {\n\tpanic(err)\n}\n```\n\n[embedmd]:# (go/test/examples/src/pagination/all_docs_pagination.go /^.+\\/\\/ Setup options$/ /^$/)\n```go\n// Setup options\nopts := service.NewPostAllDocsOptions(\"orders\")\nopts.SetLimit(50)\nopts.SetStartKey(\"abc\")\n```\n\n[embedmd]:# (go/test/examples/src/pagination/all_docs_pagination.go /^.+\\/\\/ Create pagination$/ /^$/)\n```go\n// Create pagination\n// pagination can be reused without side-effects as a factory for iterators or pagers\n// options are fixed at pagination creation time\npagination := features.NewAllDocsPagination(service, opts)\n```\n\n[embedmd]:# (go/test/examples/src/pagination/all_docs_pagination.go /^.+\\/\\/ Option: iterate rows$/ /^$/)\n```go\n// Option: iterate rows\n// Ideal for using a for/range loop with each row.\n// The iter.Seq2 returned from Rows() has an error as a second element.\nfor row, err := range pagination.Rows() {\n\t// Break on err != nil\n\t// Do something with row\n}\n```\n\n### Paging on view queries\n\nMapReduce views are secondary indexes defined by `key-value` pairs produced from user-supplied JavaScript functions. This view pagination approach applies to these endpoints:\n\n* [GET /{db}/_design/{ddoc}/_view/{view}](#getview)\n* [POST /{db}/_design/{ddoc}/_view/{view}](#postview)\n* [GET /{db}/_partition/{partition_key}/_design/{ddoc}/_view/{view}](#getpartitionview-views)\n* [POST /{db}/_partition/{partition_key}/_design/{ddoc}/_view/{view}](#postpartitionview)\n\nQuerying MapReduce views is similar to all documents and view pagination methods also work for all documents.\nHowever, unlike the primary index, where every `_id` is unique, the secondary index might have entries with the same key. For example, lots of entries that include the key `\"fulfilled\"`. This situation makes pagination by using only `start_key`/`end_key` tricky, so you can use other parameters to help: `start_key_doc_id`/`end_key_doc_id`.\n\nThe best way to paginate view is to fetch one result more than necessary and use that extra result to determine the next page `start_key` and `start_key_doc_id`.\nInstead of fetching five results with `limit=5`, fetch 5+1 with `limit=6`, but hide the sixth document\nfrom your users. The `key` of the sixth result becomes the `start_key` and the `_id` becomes the `start_key_doc_id` of your request for the next page of results.\n\nThe `start_key_doc_id` parameter works only if a `start_key` is supplied and where all index entries\nshare a key. If they don't share a key, then pagination can be achieved with manipulation of\n`start_key`/`end_key` parameters only. Also, the `start_key_doc_id` parameter is not JSON encoded.\n\nExample of paging on view queries with the \\u0000 trick\n\n[embedmd]:# (curl/examples/pagination/view_query.bash sh)\n```sh\n## get first page of fulfilled orders\ncurl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/orders/_design/allClients/_view/getStatus?limit=3&start_key=\\\"fulfilled\\\"&end_key=\\\"fulfilled\\\"\"\n\n{\n  \"total_rows\": 10,\n  \"offset\": 2,\n  \"rows\": [\n    {\n      \"id\": \"order00057\",\n      \"key\": \"fulfilled\",\n      \"value\": 1\n    },\n    {\n      \"id\": \"order00058\",\n      \"key\": \"fulfilled\",\n      \"value\": 1\n    },\n    {\n      \"id\": \"order00067\", // <-- append \\u0000 to the start_key_doc_id to of the next request\n      \"key\": \"fulfilled\",\n      \"value\": 1\n    }\n  ]\n}\n\n## get next page of fulfilled orders\ncurl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud//orders/_design/allClients/_view/getStatus?limit=3&start_key=\\\"fulfilled\\\"&end_key=\\\"fulfilled\\\"&start_key_doc_id=order00067%00\"\n\n{\n  \"total_rows\": 10,\n  \"offset\": 5,\n  \"rows\": [\n    {\n      \"id\": \"order00077\",\n      \"key\": \"fulfilled\",\n      \"value\": 1\n    }\n  ]\n}\n```\n\nThe SDK pagination feature is the recommended method to page results on these endpoints.\n\n* [postView](#postview)\n* [postPartitionView](#postpartitionview)\n\n* [post_view](#postview)\n* [post_partition_view](#postpartitionview)\n\n* [PostView](#postview)\n* [PostPartitionView](#postpartitionview)\n\n- The known limitations:\n  - Cannot reverse direction during pagination.\n  - No pagination for key option. Pass the same key as a start and end key instead.\n  - No pagination for keys option.\n  - Views that emit multiple identical keys (with the same or different values) from the same document cannot paginate if those key rows with the same ID span a page boundary. The pagination feature detects this condition and an error occurs. It may be possible to workaround using a different page size.\n\nExample of paging on view queries\n\n[embedmd]:# (java/modules/examples/src/main/java/features/pagination/ViewPagination.java /^import/ /^$/)\n```java\nimport java.util.List;\nimport com.ibm.cloud.cloudant.v1.Cloudant;\nimport com.ibm.cloud.cloudant.v1.model.ViewResultRow;\nimport com.ibm.cloud.cloudant.v1.model.PostViewOptions;\nimport com.ibm.cloud.cloudant.features.pagination.Pager;\nimport com.ibm.cloud.cloudant.features.pagination.Pagination;\n```\n\n[embedmd]:# (java/modules/examples/src/main/java/features/pagination/ViewPagination.java /^.+\\/\\/ Initialize service$/ /^$/)\n```java\n// Initialize service\nCloudant service = Cloudant.newInstance();\n```\n\n[embedmd]:# (java/modules/examples/src/main/java/features/pagination/ViewPagination.java /^.+\\/\\/ Setup options$/ /^$/)\n```java\n// Setup options\nPostViewOptions options = new PostViewOptions.Builder()\n  .db(\"shoppers\") // example database name\n  .limit(50) // limit option sets the page size\n  .ddoc(\"allUsers\") // use the allUsers design document\n  .view(\"getVerifiedEmails\") // the view to use\n  .build();\n```\n\n[embedmd]:# (java/modules/examples/src/main/java/features/pagination/ViewPagination.java /^.+\\/\\/ Create pagination$/ /^$/)\n```java\n// Create pagination\nPagination<PostViewOptions, ViewResultRow> pagination = Pagination.newPagination(service, options);\n// pagination can be reused without side-effects as a factory for iterables, streams or pagers\n// options are fixed at pagination creation time\n```\n\n[embedmd]:# (java/modules/examples/src/main/java/features/pagination/ViewPagination.java /^.+\\/\\/ Option: iterate rows$/ /^$/)\n```java\n// Option: iterate rows\n// Ideal for using an enhanced for loop with each row.\n// The Iterable returned from rows() is reusable in that\n// calling iterator() returns a new iterator each time.\n// The returned iterators, however, are single use.\nfor (ViewResultRow row : pagination.rows()) {\n  // Do something with row\n}\n```\n\n[embedmd]:# (node/test/examples/src/features/pagination/js/viewPagination.js javascript /^import/ /^$/)\n```javascript\nimport { CloudantV1, Pagination, PagerType } from '@ibm-cloud/cloudant';\nimport { Writable } from 'node:stream';\nimport { pipeline } from 'node:stream/promises';\n```\n\n[embedmd]:# (node/test/examples/src/features/pagination/js/viewPagination.js javascript /^\\/\\/ Initialize service$/ /^$/)\n```javascript\n// Initialize service\nconst client = CloudantV1.newInstance();\n```\n\n[embedmd]:# (node/test/examples/src/features/pagination/js/viewPagination.js javascript /^\\/\\/ Setup params$/ /^$/)\n```javascript\n// Setup params\nconst paginationParams = {\n  db: 'shoppers', // Required: the database name.\n  limit: 50, // Optional: limit parameter sets the page size. Default and max is 200.\n  ddoc: 'allUsers', // use the allUsers design document\n  view: 'getVerifiedEmails', // the view to use\n};\n```\n\n[embedmd]:# (node/test/examples/src/features/pagination/js/viewPagination.js javascript /^\\/\\/ Create pagination$/ /^$/)\n```javascript\n// Create pagination\n// pagination can be reused without side-effects as a factory for async iterables, streams or pagers\nconst pagination = Pagination.newPagination(\n  client, // Required: the Cloudant service client instance.\n  PagerType.POST_VIEW, // Required: Pager type\n  paginationParams // Required: pagination configuration params are fixed at pagination creation time\n);\n```\n\n[embedmd]:# (node/test/examples/src/features/pagination/js/viewPagination.js javascript /^\\/\\/ Option: iterate rows/ /^$/)\n```javascript\n// Option: iterate rows with for await...of statement\n(async () => {\n  for await (const row of pagination.rows()) {\n    // Do something with row\n  }\n})();\n// Note: Alternatively to for await....of the iterator protocol functions and properties:\n// `next()`, `done`, value`, can be also used on rows().\n// As `next(`)` returns with a Promise, make sure using `await` or `.then()` on it.\n```\n\n[embedmd]:# (python/test/examples/src/features/pagination/view_pagination.py /^from/ /^$/)\n```py\nfrom ibmcloudant import Pager, Pagination, PagerType\nfrom ibmcloudant.cloudant_v1 import CloudantV1\n```\n\n[embedmd]:# (python/test/examples/src/features/pagination/view_pagination.py /^# Initialize service$/ /^$/)\n```py\n## Initialize service\nservice = CloudantV1.new_instance()\n```\n\n[embedmd]:# (python/test/examples/src/features/pagination/view_pagination.py /^# Setup options$/ /^$/)\n```py\n## Setup options\nopts = {\n    'db': 'shoppers',  # example database name\n    'limit': 50,  # limit option sets the page size\n    'ddoc': 'allUsers',  # use the allUsers design document\n    'view': 'getVerifiedEmails' # the view to use\n}\n```\n\n[embedmd]:# (python/test/examples/src/features/pagination/view_pagination.py /^# Create pagination$/ /^$/)\n```py\n## Create pagination\npagination = Pagination.new_pagination(\n    service, PagerType.POST_VIEW, **opts)\n## pagination can be reused without side-effects as a factory for iterables or pagers\n## options are fixed at pagination creation time\n```\n\n[embedmd]:# (python/test/examples/src/features/pagination/view_pagination.py /^# Option: iterate rows$/ /^$/)\n```py\n## Option: iterate rows\n## Ideal for using a for loop with each row.\n## Each call to rows() returns a fresh iterator that can be traversed once.\nfor row in pagination.rows():\n    # Do something with row\n    pass\n```\n\n[embedmd]:# (go/test/examples/src/pagination/view_pagination.go /^import/ /^$/)\n```go\nimport (\n\t\"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n\t\"github.com/IBM/cloudant-go-sdk/features\"\n)\n```\n\n[embedmd]:# (go/test/examples/src/pagination/view_pagination.go /^.+\\/\\/ Initialize service$/ /^$/)\n```go\n// Initialize service\nservice, err := cloudantv1.NewCloudantV1UsingExternalConfig(\n\t&cloudantv1.CloudantV1Options{},\n)\nif err != nil {\n\tpanic(err)\n}\n```\n\n[embedmd]:# (go/test/examples/src/pagination/view_pagination.go /^.+\\/\\/ Setup options$/ /^$/)\n```go\n// Setup options\nopts := service.NewPostViewOptions(\"shoppers\", \"allUsers\", \"getVerifiedEmails\")\nopts.SetLimit(50)\n```\n\n[embedmd]:# (go/test/examples/src/pagination/view_pagination.go /^.+\\/\\/ Create pagination$/ /^$/)\n```go\n// Create pagination\n// pagination can be reused without side-effects as a factory for iterators or pagers\n// options are fixed at pagination creation time\npagination := features.NewViewPagination(service, opts)\n```\n\n[embedmd]:# (go/test/examples/src/pagination/view_pagination.go /^.+\\/\\/ Option: iterate rows$/ /^$/)\n```go\n// Option: iterate rows\n// Ideal for using a for/range loop with each row.\n// The iter.Seq2 returned from Rows() has an error as a second element.\nfor row, err := range pagination.Rows() {\n\t// Break on err != nil\n\t// Do something with row\n}\n```\n\n### Paging on selector syntax queries\n\nThe following endpoints' responses contain a bookmark - a token that IBM Cloudant\nuses to determine where to resume from when later queries are made. To get the next set of query results,\nadd the bookmark that was received in the previous response to your next request.\n\n* [POST /{db}/_find](#postfind)\n* [POST /{db}/_partition/{partition_key}/_find](#postpartitionfind)\n\nTo get the next set of query results for IBM Cloudant Query,\nadd the bookmark that was received in the previous response to your next request. Remember to keep\nthe selector and `sort` the same, otherwise you receive unexpected results.\n\nThe presence of a bookmark doesn’t guarantee more results. You can test whether\nyou are at the end of the result set by comparing the number of results that are returned with the page size\nrequested. If the results returned are less than limit, no more results are available in the result set.\n\nWhen supplied an incorrect bookmark IBM Cloudant responds with\nan `HTTP 400 Bad Request { error: 'invalid_bookmark'}` response.\n\nExample of paging on selector syntax queries\n\n[embedmd]:# (curl/examples/pagination/selector_query.bash sh)\n```sh\ncurl -X POST \\\n     -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" \\\n     -H 'Content-type: application/json' \\\n     -d '{\"selector\":{\"country\":{\"$eq\": \"US\"}},\"limit\":5}' \\\n     \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/cities/_find\"\n\n{\n  \"docs\":[\n    {\"_id\":\"10104153\",\"_rev\":\"1-32aab6258c65c5fc5af044a153f4b994\",\"name\":\"Silver Lake\",\"latitude\":34.08668,\"longitude\":-118.27023,\"country\":\"US\",\"population\":32890,\"timezone\":\"America/Los_Angeles\"},\n    {\"_id\":\"10104154\",\"_rev\":\"1-125f589bf4e39d8e119b4b7b5b18caf6\",\"name\":\"Echo Park\",\"latitude\":34.07808,\"longitude\":-118.26066,\"country\":\"US\",\"population\":43832,\"timezone\":\"America/Los_Angeles\"},\n    {\"_id\":\"4046704\",\"_rev\":\"1-2e4b7820872f108c077dab73614067da\",\"name\":\"Fort Hunt\",\"latitude\":38.73289,\"longitude\":-77.05803,\"country\":\"US\",\"population\":16045,\"timezone\":\"America/New_York\"},\n    {\"_id\":\"4048023\",\"_rev\":\"1-744baaba02218fd84b350e8982c0b783\",\"name\":\"Bessemer\",\"latitude\":33.40178,\"longitude\":-86.95444,\"country\":\"US\",\"population\":27456,\"timezone\":\"America/Chicago\"},\n    {\"_id\":\"4048662\",\"_rev\":\"1-e95c97013ece566b37583e451c1864ee\",\"name\":\"Paducah\",\"latitude\":37.08339,\"longitude\":-88.60005,\"country\":\"US\",\"population\":25024,\"timezone\":\"America/Chicago\"}\n  ],\n  \"bookmark\": \"g1AAAAA-eJzLYWBgYMpgSmHgKy5JLCrJTq2MT8lPzkzJBYqzmxiYWJiZGYGkOWDSyBJZAPCBD58\"\n}\n\ncurl -X POST \\\n     -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" \\\n     -H 'Content-type: application/json' \\\n     -d '{\"selector\":{\"country\":{\"$eq\": \"US\"}},\"limit\":5,\"bookmark\":\"g1AAAAA-eJzLYWBgYMpgSmHgKy5JLCrJTq2MT8lPzkzJBYqzmxiYWJiZGYGkOWDSyBJZAPCBD58\"}' \\\n     \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/cities/_find\"\n\n{\n  \"docs\":[\n    {\"_id\":\"4049979\",\"_rev\":\"1-1fa2591477c774a07c230571568aeb66\",\"name\":\"Birmingham\",\"latitude\":33.52066,\"longitude\":-86.80249,\"country\":\"US\",\"population\":212237,\"timezone\":\"America/Chicago\"},\n    {\"_id\":\"4054378\",\"_rev\":\"1-a750085697685e7bc0e49d103d2de59d\",\"name\":\"Center Point\",\"latitude\":33.64566,\"longitude\":-86.6836,\"country\":\"US\",\"population\":16921,\"timezone\":\"America/Chicago\"},\n    {\"_id\":\"4058219\",\"_rev\":\"1-9b4eb183c9cdf57c19be660ec600330c\",\"name\":\"Daphne\",\"latitude\":30.60353,\"longitude\":-87.9036,\"country\":\"US\",\"population\":21570,\"timezone\":\"America/Chicago\"},\n    {\"_id\":\"4058553\",\"_rev\":\"1-56100f7e7742028facfcc50ab6b07a04\",\"name\":\"Decatur\",\"latitude\":34.60593,\"longitude\":-86.98334,\"country\":\"US\",\"population\":55683,\"timezone\":\"America/Chicago\"},\n    {\"_id\":\"4059102\",\"_rev\":\"1-612ae37d982dc71eeecf332c1e1c16aa\",\"name\":\"Dothan\",\"latitude\":31.22323,\"longitude\":-85.39049,\"country\":\"US\",\"population\":65496,\"timezone\":\"America/Chicago\"}\n  ],\n  \"bookmark\": \"g1AAAAA-eJzLYWBgYMpgSmHgKy5JLCrJTq2MT8lPzkzJBYqzmxiYWhoaGIGkOWDSyBJZAO9qD40\"\n}\n```\n\nThe SDK pagination feature is the recommended method to page results on these endpoints.\n\n* [postFind](#postfind)\n* [postPartitionFind](#postpartitionfind-queries)\n\n* [post_find](#postfind)\n* [post_partition_find](#postpartitionfind-queries)\n\n* [PostFind](#postfind)\n* [PostPartitionFind](#postpartitionfind-queries)\n\n- The known limitations:\n  - Cannot reverse direction during pagination.\n\nExample of paging on selector syntax queries\n\n[embedmd]:# (java/modules/examples/src/main/java/features/pagination/FindPagination.java /^import/ /^$/)\n```java\nimport java.util.Collections;\nimport java.util.List;\nimport com.ibm.cloud.cloudant.v1.Cloudant;\nimport com.ibm.cloud.cloudant.v1.model.Document;\nimport com.ibm.cloud.cloudant.v1.model.PostFindOptions;\nimport com.ibm.cloud.cloudant.features.pagination.Pager;\nimport com.ibm.cloud.cloudant.features.pagination.Pagination;\n```\n\n[embedmd]:# (java/modules/examples/src/main/java/features/pagination/FindPagination.java /^.+\\/\\/ Initialize service$/ /^$/)\n```java\n// Initialize service\nCloudant service = Cloudant.newInstance();\n```\n\n[embedmd]:# (java/modules/examples/src/main/java/features/pagination/FindPagination.java /^.+\\/\\/ Setup options$/ /^$/)\n```java\n// Setup options\nPostFindOptions options = new PostFindOptions.Builder()\n  .db(\"shoppers\") // Database name\n  .limit(50) // limit option sets the page size\n  .fields(List.of(\"_id\", \"type\", \"name\", \"email\")) // return these fields\n  .selector(Collections.singletonMap(\"email_verified\", \"true\")) // select docs with verified emails\n  .sort(Collections.singletonList(Collections.singletonMap(\"email\", \"desc\"))) // sort descending by email\n  .build();\n```\n\n[embedmd]:# (java/modules/examples/src/main/java/features/pagination/FindPagination.java /^.+\\/\\/ Create pagination$/ /^$/)\n```java\n// Create pagination\nPagination<PostFindOptions, Document> pagination = Pagination.newPagination(service, options);\n// pagination can be reused without side-effects as a factory for iterables, streams or pagers\n// options are fixed at pagination creation time\n```\n\n[embedmd]:# (java/modules/examples/src/main/java/features/pagination/FindPagination.java /^.+\\/\\/ Option: iterate rows$/ /^$/)\n```java\n// Option: iterate rows\n// Ideal for using an enhanced for loop with each row.\n// The Iterable returned from rows() is reusable in that\n// calling iterator() returns a new iterator each time.\n// The returned iterators, however, are single use.\nfor (Document row : pagination.rows()) {\n  // Do something with row\n}\n```\n\n[embedmd]:# (node/test/examples/src/features/pagination/js/findPagination.js javascript /^import/ /^$/)\n```javascript\nimport { CloudantV1, Pagination, PagerType } from '@ibm-cloud/cloudant';\nimport { Writable } from 'node:stream';\nimport { pipeline } from 'node:stream/promises';\n```\n\n[embedmd]:# (node/test/examples/src/features/pagination/js/findPagination.js javascript /^\\/\\/ Initialize service$/ /^$/)\n```javascript\n// Initialize service\nconst client = CloudantV1.newInstance();\n```\n\n[embedmd]:# (node/test/examples/src/features/pagination/js/findPagination.js javascript /^\\/\\/ Setup params$/ /^$/)\n```javascript\n// Setup params\nconst paginationParams = {\n  db: 'shoppers', // Required: the database name.\n  limit: 50, // Optional: limit parameter sets the page size. Default and max is 200.\n  fields: ['_id', 'type', 'name', 'email'], // return these fields\n  selector: { email_verified: { '$eq': true } }, // select docs with verified emails\n  sort: [{ email: 'desc' }],\n};\n```\n\n[embedmd]:# (node/test/examples/src/features/pagination/js/findPagination.js javascript /^\\/\\/ Create pagination$/ /^$/)\n```javascript\n// Create pagination\n// pagination can be reused without side-effects as a factory for async iterables, streams or pagers\nconst pagination = Pagination.newPagination(\n  client, // Required: the Cloudant service client instance.\n  PagerType.POST_FIND, // Required: Pager type\n  paginationParams // Required: pagination configuration params are fixed at pagination creation time\n);\n```\n\n[embedmd]:# (node/test/examples/src/features/pagination/js/findPagination.js javascript /^\\/\\/ Option: iterate rows/ /^$/)\n```javascript\n// Option: iterate rows with for await...of statement\n(async () => {\n  for await (const row of pagination.rows()) {\n    // Do something with row\n  }\n})();\n// Note: Alternatively to for await....of the iterator protocol functions and properties:\n// `next()`, `done`, value`, can be also used on rows().\n// As `next(`)` returns with a Promise, make sure using `await` or `.then()` on it.\n```\n\n[embedmd]:# (python/test/examples/src/features/pagination/find_pagination.py /^from/ /^$/)\n```py\nfrom ibmcloudant import Pager, Pagination, PagerType\nfrom ibmcloudant.cloudant_v1 import CloudantV1\n```\n\n[embedmd]:# (python/test/examples/src/features/pagination/find_pagination.py /^# Initialize service$/ /^$/)\n```py\n## Initialize service\nservice = CloudantV1.new_instance()\n```\n\n[embedmd]:# (python/test/examples/src/features/pagination/find_pagination.py /^# Setup options$/ /^$/)\n```py\n## Setup options\nopts = {\n    'db': 'shoppers',  # example database name\n    'limit': 50,  # limit option sets the page size\n    'fields': ['_id', 'type', 'name', 'email'],  # return these fields\n    'selector': {'email_verified': True},  # select docs with verified emails\n    'sort': [{'email': 'desc'}]  # sort descending by email\n}\n```\n\n[embedmd]:# (python/test/examples/src/features/pagination/find_pagination.py /^# Create pagination$/ /^$/)\n```py\n## Create pagination\npagination = Pagination.new_pagination(\n    service, PagerType.POST_FIND, **opts)\n## pagination can be reused without side-effects as a factory for iterables or pagers\n## options are fixed at pagination creation time\n```\n\n[embedmd]:# (python/test/examples/src/features/pagination/find_pagination.py /^# Option: iterate rows$/ /^$/)\n```py\n## Option: iterate rows\n## Ideal for using a for loop with each row.\n## Each call to rows() returns a fresh iterator that can be traversed once.\nfor row in pagination.rows():\n    # Do something with row\n    pass\n```\n\n[embedmd]:# (go/test/examples/src/pagination/find_pagination.go /^import/ /^$/)\n```go\nimport (\n\t\"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n\t\"github.com/IBM/cloudant-go-sdk/features\"\n)\n```\n\n[embedmd]:# (go/test/examples/src/pagination/find_pagination.go /^.+\\/\\/ Initialize service$/ /^$/)\n```go\n// Initialize service\nservice, err := cloudantv1.NewCloudantV1UsingExternalConfig(\n\t&cloudantv1.CloudantV1Options{},\n)\nif err != nil {\n\tpanic(err)\n}\n```\n\n[embedmd]:# (go/test/examples/src/pagination/find_pagination.go /^.+\\/\\/ Setup options$/ /^$/)\n```go\n// Setup options\nopts := service.NewPostFindOptions(\"shoppers\", map[string]any{\"email_verified\": true})\nopts.SetLimit(50)\nopts.SetFields([]string[\"_id\", \"type\", \"name\", \"email\"])\nopts.SetSort([]map[string]string{map[string]string{\"email\": \"desc\"}})\n```\n\n[embedmd]:# (go/test/examples/src/pagination/find_pagination.go /^.+\\/\\/ Create pagination$/ /^$/)\n```go\n// Create pagination\n// pagination can be reused without side-effects as a factory for iterators or pagers\n// options are fixed at pagination creation time\npagination := features.NewFindPagination(service, opts)\n```\n\n[embedmd]:# (go/test/examples/src/pagination/find_pagination.go /^.+\\/\\/ Option: iterate rows$/ /^$/)\n```go\n// Option: iterate rows\n// Ideal for using a for/range loop with each row.\n// The iter.Seq2 returned from Rows() has an error as a second element.\nfor row, err := range pagination.Rows() {\n\t// Break on err != nil\n\t// Do something with row\n}\n```\n\n### Paging on search index queries\n\n[IBM Cloudant Search](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-cloudant-search) queries use bookmarks for pagination. Pass the `bookmark` parameter in the URL for GET requests\nor in the JSON body for POST requests. You must keep the same query (the same \"q\"\nin IBM Cloudant Search) to get the next page of results. If you change\nthe query, you might get an empty result set in reply.\n\n* [GET /{db}/_design/{ddoc}/_search/{index}](#getsearch)\n* [POST /{db}/_design/{ddoc}/_search/{index}](#postsearch)\n* [GET /{db}/_partition/{partition_key}/_design/{ddoc}/_search/{index}](#getpartitionsearch-searches)\n* [POST /{db}/_partition/{partition_key}/_design/{ddoc}/_search/{index}](#getpartitionsearch)\n\nSee the documentation about [query parameters](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-cloudant-search#query-parameters-search) for further details.\n\nExample of paging on search index queries\n\n[embedmd]:# (curl/examples/pagination/search_query.bash sh)\n```sh\ncurl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/cities/_search/search/_search/freetext?q=country:US&limit=5\"\n\n{\n  \"total_rows\": 65,\n  \"rows\":[\n    {\"_id\":\"10104153\",\"_rev\":\"1-32aab6258c65c5fc5af044a153f4b994\",\"name\":\"Silver Lake\",\"latitude\":34.08668,\"longitude\":-118.27023,\"country\":\"US\",\"population\":32890,\"timezone\":\"America/Los_Angeles\"},\n    {\"_id\":\"10104154\",\"_rev\":\"1-125f589bf4e39d8e119b4b7b5b18caf6\",\"name\":\"Echo Park\",\"latitude\":34.07808,\"longitude\":-118.26066,\"country\":\"US\",\"population\":43832,\"timezone\":\"America/Los_Angeles\"},\n    {\"_id\":\"4046704\",\"_rev\":\"1-2e4b7820872f108c077dab73614067da\",\"name\":\"Fort Hunt\",\"latitude\":38.73289,\"longitude\":-77.05803,\"country\":\"US\",\"population\":16045,\"timezone\":\"America/New_York\"},\n    {\"_id\":\"4048023\",\"_rev\":\"1-744baaba02218fd84b350e8982c0b783\",\"name\":\"Bessemer\",\"latitude\":33.40178,\"longitude\":-86.95444,\"country\":\"US\",\"population\":27456,\"timezone\":\"America/Chicago\"},\n    {\"_id\":\"4048662\",\"_rev\":\"1-e95c97013ece566b37583e451c1864ee\",\"name\":\"Paducah\",\"latitude\":37.08339,\"longitude\":-88.60005,\"country\":\"US\",\"population\":25024,\"timezone\":\"America/Chicago\"}\n  ],\n  \"bookmark\": \"g1AAAAA-eJzLYWBgYMpgSmHgKy5JLCrJTq2MT8lPzkzJBYqzmxiYWJiZGYGkOWDSyBJZAPCBD58\"\n}\n\ncurl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/cities/_search/search/_search/freetext?q=country:US&limit=5&bookmark=g1AAAAA-eJzLYWBgYMpgSmHgKy5JLCrJTq2MT8lPzkzJBYqzmxiYWJiZGYGkOWDSyBJZAPCBD58\"\n\n{\n  \"total_rows\": 65,\n  \"rows\":[\n    {\"_id\":\"4049979\",\"_rev\":\"1-1fa2591477c774a07c230571568aeb66\",\"name\":\"Birmingham\",\"latitude\":33.52066,\"longitude\":-86.80249,\"country\":\"US\",\"population\":212237,\"timezone\":\"America/Chicago\"},\n    {\"_id\":\"4054378\",\"_rev\":\"1-a750085697685e7bc0e49d103d2de59d\",\"name\":\"Center Point\",\"latitude\":33.64566,\"longitude\":-86.6836,\"country\":\"US\",\"population\":16921,\"timezone\":\"America/Chicago\"},\n    {\"_id\":\"4058219\",\"_rev\":\"1-9b4eb183c9cdf57c19be660ec600330c\",\"name\":\"Daphne\",\"latitude\":30.60353,\"longitude\":-87.9036,\"country\":\"US\",\"population\":21570,\"timezone\":\"America/Chicago\"},\n    {\"_id\":\"4058553\",\"_rev\":\"1-56100f7e7742028facfcc50ab6b07a04\",\"name\":\"Decatur\",\"latitude\":34.60593,\"longitude\":-86.98334,\"country\":\"US\",\"population\":55683,\"timezone\":\"America/Chicago\"},\n    {\"_id\":\"4059102\",\"_rev\":\"1-612ae37d982dc71eeecf332c1e1c16aa\",\"name\":\"Dothan\",\"latitude\":31.22323,\"longitude\":-85.39049,\"country\":\"US\",\"population\":65496,\"timezone\":\"America/Chicago\"}\n  ],\n  \"bookmark\": \"g1AAAAA-eJzLYWBgYMpgSmHgKy5JLCrJTq2MT8lPzkzJBYqzmxiYWhoaGIGkOWDSyBJZAO9qD40\",\n}\n```\n\nThe SDK pagination feature is the recommended method to page results on these endpoints.\n\n* [postSearch](#postsearch)\n* [postPartitionSearch](#postpartitionsearch)\n\n* [post_search](#postsearch)\n* [post_partition_search](#postpartitionsearch)\n\n* [PostSearch](#postsearch)\n* [PostPartitionSearch](#postpartitionsearch)\n\n- The known limitations:\n  - Cannot reverse direction during pagination.\n  - No pagination of grouped results.\n  - No pagination of faceted counts or ranges results.\n\nExample of paging on search index queries\n\n[embedmd]:# (java/modules/examples/src/main/java/features/pagination/SearchPagination.java /^import/ /^$/)\n```java\nimport java.util.List;\nimport com.ibm.cloud.cloudant.v1.Cloudant;\nimport com.ibm.cloud.cloudant.v1.model.SearchResultRow;\nimport com.ibm.cloud.cloudant.v1.model.PostSearchOptions;\nimport com.ibm.cloud.cloudant.features.pagination.Pager;\nimport com.ibm.cloud.cloudant.features.pagination.Pagination;\n```\n\n[embedmd]:# (java/modules/examples/src/main/java/features/pagination/SearchPagination.java /^.+\\/\\/ Initialize service$/ /^$/)\n```java\n// Initialize service\nCloudant service = Cloudant.newInstance();\n```\n\n[embedmd]:# (java/modules/examples/src/main/java/features/pagination/SearchPagination.java /^.+\\/\\/ Setup options$/ /^$/)\n```java\n// Setup options\nPostSearchOptions options = new PostSearchOptions.Builder()\n  .db(\"shoppers\") // example database name\n  .limit(50) // limit option sets the page size\n  .ddoc(\"allUsers\") // use the allUsers design document\n  .index(\"activeUsers\") // search in this index\n  .query(\"name:Jane* AND active:True\") // Lucene search query\n  .build();\n```\n\n[embedmd]:# (java/modules/examples/src/main/java/features/pagination/SearchPagination.java /^.+\\/\\/ Create pagination$/ /^$/)\n```java\n// Create pagination\nPagination<PostSearchOptions, SearchResultRow> pagination = Pagination.newPagination(service, options);\n// pagination can be reused without side-effects as a factory for iterables, streams or pagers\n// options are fixed at pagination creation time\n```\n\n[embedmd]:# (java/modules/examples/src/main/java/features/pagination/SearchPagination.java /^.+\\/\\/ Option: iterate rows$/ /^$/)\n```java\n// Option: iterate rows\n// Ideal for using an enhanced for loop with each row.\n// The Iterable returned from rows() is reusable in that\n// calling iterator() returns a new iterator each time.\n// The returned iterators, however, are single use.\nfor (SearchResultRow row : pagination.rows()) {\n  // Do something with row\n}\n```\n\n[embedmd]:# (node/test/examples/src/features/pagination/js/searchPagination.js javascript /^import/ /^$/)\n```javascript\nimport { CloudantV1, Pagination, PagerType } from '@ibm-cloud/cloudant';\nimport { Writable } from 'node:stream';\nimport { pipeline } from 'node:stream/promises';\n```\n\n[embedmd]:# (node/test/examples/src/features/pagination/js/searchPagination.js javascript /^\\/\\/ Initialize service$/ /^$/)\n```javascript\n// Initialize service\nconst client = CloudantV1.newInstance();\n```\n\n[embedmd]:# (node/test/examples/src/features/pagination/js/searchPagination.js javascript /^\\/\\/ Setup params$/ /^$/)\n```javascript\n// Setup params\nconst paginationParams = {\n  db: 'shoppers', // Required: the database name.\n  limit: 50, // Optional: limit parameter sets the page size. Default and max is 200.\n  ddoc: 'allUsers', // use the allUsers design document\n  index: 'activeUsers', // search in this index\n  query: 'name:Jane* AND active:True', // Lucene search query\n};\n```\n\n[embedmd]:# (node/test/examples/src/features/pagination/js/searchPagination.js javascript /^\\/\\/ Create pagination$/ /^$/)\n```javascript\n// Create pagination\n// pagination can be reused without side-effects as a factory for async iterables, streams or pagers\nconst pagination = Pagination.newPagination(\n  client, // Required: the Cloudant service client instance.\n  PagerType.POST_SEARCH, // Required: Pager type\n  paginationParams // Required: pagination configuration params are fixed at pagination creation time\n);\n```\n\n[embedmd]:# (node/test/examples/src/features/pagination/js/searchPagination.js javascript /^\\/\\/ Option: iterate rows/ /^$/)\n```javascript\n// Option: iterate rows with for await...of statement\n(async () => {\n  for await (const row of pagination.rows()) {\n    // Do something with row\n  }\n})();\n// Note: Alternatively to for await....of the iterator protocol functions and properties:\n// `next()`, `done`, value`, can be also used on rows().\n// As `next(`)` returns with a Promise, make sure using `await` or `.then()` on it.\n```\n\n[embedmd]:# (python/test/examples/src/features/pagination/search_pagination.py /^from/ /^$/)\n```py\nfrom ibmcloudant import Pager, Pagination, PagerType\nfrom ibmcloudant.cloudant_v1 import CloudantV1\n```\n\n[embedmd]:# (python/test/examples/src/features/pagination/search_pagination.py /^# Initialize service$/ /^$/)\n```py\n## Initialize service\nservice = CloudantV1.new_instance()\n```\n\n[embedmd]:# (python/test/examples/src/features/pagination/search_pagination.py /^# Setup options$/ /^$/)\n```py\n## Setup options\nopts = {\n    'db': 'shoppers',  # example database name\n    'limit': 50,  # limit option sets the page size\n    'ddoc': 'allUsers',  # use the allUsers design document\n    'index': 'activeUsers',  # search in this index\n    'query': 'name:Jane* AND active:True'  # Lucene search query\n}\n```\n\n[embedmd]:# (python/test/examples/src/features/pagination/search_pagination.py /^# Create pagination$/ /^$/)\n```py\n## Create pagination\npagination = Pagination.new_pagination(\n    service, PagerType.POST_SEARCH, **opts)\n## pagination can be reused without side-effects as a factory for iterables or pagers\n## options are fixed at pagination creation time\n```\n\n[embedmd]:# (python/test/examples/src/features/pagination/search_pagination.py /^# Option: iterate rows$/ /^$/)\n```py\n## Option: iterate rows\n## Ideal for using a for loop with each row.\n## Each call to rows() returns a fresh iterator that can be traversed once.\nfor row in pagination.rows():\n    # Do something with row\n    pass\n```\n\n[embedmd]:# (go/test/examples/src/pagination/search_pagination.go /^import/ /^$/)\n```go\nimport (\n\t\"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n\t\"github.com/IBM/cloudant-go-sdk/features\"\n)\n```\n\n[embedmd]:# (go/test/examples/src/pagination/search_pagination.go /^.+\\/\\/ Initialize service$/ /^$/)\n```go\n// Initialize service\nservice, err := cloudantv1.NewCloudantV1UsingExternalConfig(\n\t&cloudantv1.CloudantV1Options{},\n)\nif err != nil {\n\tpanic(err)\n}\n```\n\n[embedmd]:# (go/test/examples/src/pagination/search_pagination.go /^.+\\/\\/ Setup options$/ /^$/)\n```go\n// Setup options\nopts := service.NewPostSearchOptions(\"shoppers\", \"allUsers\", \"activeUsers\", \"name:Jane* AND active:True\")\nopts.SetLimit(50)\n```\n\n[embedmd]:# (go/test/examples/src/pagination/search_pagination.go /^.+\\/\\/ Create pagination$/ /^$/)\n```go\n// Create pagination\n// pagination can be reused without side-effects as a factory for iterators or pagers\n// options are fixed at pagination creation time\npagination := features.NewSearchPagination(service, opts)\n```\n\n[embedmd]:# (go/test/examples/src/pagination/search_pagination.go /^.+\\/\\/ Option: iterate rows$/ /^$/)\n```go\n// Option: iterate rows\n// Ideal for using a for/range loop with each row.\n// The iter.Seq2 returned from Rows() has an error as a second element.\nfor row, err := range pagination.Rows() {\n\t// Break on err != nil\n\t// Do something with row\n}\n```\n\n### Paging the changes feed\n\nSending a request to `/_changes` endpoint returns a list of changes that were made to documents\nin the database, including insertions, updates, and deletions. The `_changes` endpoint has a `limit`\nparameter to control how many changes you would like to receive.\nThe `since` parameter gets a list of changes that occurred after a specified sequence identifier.\n\nThe changes feed supplies result rows at least once and callers must expect potential duplicates.\n\nUse `limit` and `since` to paginate the changes feed. To get the `since` parameter for the next page use the `last_seq` from the previous page of results.\n\nIf the `since` identifier is 0 (the default), or omitted, the request returns all changes.\nIf the `since` identifier is `now`, the request asks for changes that are made after the current time.\n\nExample of paging on the changes feed\n\n[embedmd]:# (curl/examples/pagination/changes.bash sh)\n```sh\ncurl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/orders/_changes?limit=5\" -H \"Content-Type: application/json\"\n\n{\n    \"results\": [\n        {\"seq\": \"1-g1AAAA...\", \"id\": \"4eee973603bf77f30b1f880ed83df76a\", \"changes\": [{\"rev\": \"1-9d0c2...\"}]},\n        {\"seq\": \"2-g1AAAA...\", \"id\": \"4eee973603bf77f30b1f880ed83f469a\", \"changes\": [{\"rev\": \"1-b1f67...\"}]},\n        ...\n    ],\n    \"last_seq\": \"6-g1AAAA...\",  // <-- This is the sequence we use as the since parameter of the next request\n    \"pending\": 2998\n}\n\ncurl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/orders/_changes?limit=5&since=6-g1AAAA...\" -H \"Content-Type: application/json\"\n\n{\n    \"results\": [\n        {\"seq\": \"6-g1AAAA...\", \"id\": \"65fa623a384648740ec1f39b495d591c\", \"changes\": [{\"rev\": \"1-00203...\"}]},\n        {\"seq\": \"7-g1AAAA...\", \"id\": \"d7404903579d6d5880514c22ad983529\", \"changes\": [{\"rev\": \"1-9410b...\"}]},\n        ...\n    ],\n    \"last_seq\": \"10-g1AAAA...\",\n    \"pending\": 2993\n}\n```\n\nThe SDK provides a changes feed follower utility. This helper utility connects to the `_changes` endpoint\nand returns the individual change items. It removes some complexity of using the `_changes` endpoint\nby setting some options automatically and providing error suppression and retries.\n\nThe page size is not configurable in the SDK changes followers. It is set to an appropriate value for reasonable response sizes.\n\nThe `limit` parameter controls the total number of changes received by the SDK changes follower using multiple pages if necessary.\n\nExample of paging with changes follower\n\n[embedmd]:# (java/modules/examples/src/main/java/features/StartOneOffAndProcess.java /import java./ $)\n```java\nimport java.util.stream.Stream;\nimport com.ibm.cloud.cloudant.features.ChangesFollower;\nimport com.ibm.cloud.cloudant.v1.Cloudant;\nimport com.ibm.cloud.cloudant.v1.model.Change;\nimport com.ibm.cloud.cloudant.v1.model.ChangesResultItem;\nimport com.ibm.cloud.cloudant.v1.model.PostChangesOptions;\n\npublic class StartOneOffAndProcess {\n    public static void main(String[] args) {\n\n        Cloudant client = Cloudant.newInstance();\n\n        // Start from a perviously persisted seq\n        // Normally this would be read by the app from persistent storage\n        // e.g. String previouslyPersistedSeq = yourAppPersistenceReadFunction();\n        String previouslyPersistedSeq = \"3-g1AG3...\";\n        PostChangesOptions options = new PostChangesOptions.Builder(\"example\")\n            .since(previouslyPersistedSeq)\n            .build();\n        ChangesFollower changesFollower = new ChangesFollower(client, options);\n        Stream<ChangesResultItem> changesItems = changesFollower.startOneOff();\n        changesItems.forEach(changesItem -> {\n            // do something with changes\n            System.out.println(changesItem.getId());\n            for (Change change : changesItem.getChanges()) {\n                System.out.println(change.getRev());\n            }\n            // when change item processing is complete app can store seq\n            String seq = changesItem.getSeq();\n            // write seq to persistent storage for use as since if required to resume later\n            // e.g. call yourAppPersistenceWriteFunction(seq);\n        });\n        // Note: java.util.Stream terminal operations are blocking, code here will be unreachable\n        // until all changes are processed (or another stop condition is reached).\n    }\n}\n```\n\n[embedmd]:# (node/test/examples/src/features/js/startOneOffAndProcess.js /const client/ $)\n```js\nconst client = CloudantV1.newInstance();\n// Start from a previously persisted seq\n// Normally this would be read by the app from persistent storage\n// e.g. previouslyPersistedSeq = yourAppPersistenceReadFunc()\nconst previouslyPersistedSeq = '3-g1AG3...';\nconst changesParams = {\n  db: 'example',\n  since: previouslyPersistedSeq\n};\nconst changesFollower = new ChangesFollower(client, changesParams);\nconst changesItemsStream = changesFollower.startOneOff();\n\nconst destinationStream = new Writable({\n  objectMode: true,\n  write(changesItem, _, callback) {\n    // do something with change item\n    console.log(changesItem.id);\n    for (const change of changesItem.changes) {\n      console.log(change.rev);\n    }\n    // when change item processing is complete app can store seq\n    const seq = changesItem.seq;\n    // write seq to persistent storage for use as since if required to resume later\n    // e.g. yourAppPersistenceWriteFunc()\n    callback();\n  }\n});\n\npipeline(changesItemsStream, destinationStream)\n  .then(() => {\n    console.log('All changes done');\n  })\n  .catch((err) => {\n    console.log(err);\n  });\n\n// use for-async-loop feature for stream\n/*\ngetChangesFromFollower(changesItemsStream);\nasync function getChangesFromFollower(changesItemsStream) {\n  for await (const changesItem of changesItemsStream) {\n    // do something with change item\n    // write seq to persistent storage for use as since\n    console.log(changesItem.id);\n    for (const change of changesItem.changes) {\n      console.log(change.rev);\n    }\n    // when change item processing is complete app can store seq\n    seq = changesItem.seq;\n    // write seq to persistent storage for use as since if required to resume later\n    // e.g. yourAppPersistenceWriteFunc();\n  }\n}\n*/\n```\n\n[embedmd]:# (python/test/examples/src/features/start_one_off_and_process.py /import/ $)\n```py\nimport ChangesFollower\nfrom ibmcloudant.cloudant_v1 import CloudantV1\n\nclient = CloudantV1.new_instance()\n\n## Start from a previously persisted seq\n## Normally this would be read by the app from persistent storage\n## e.g. previously_persisted_seq = your_app_persistence_read_func()\npreviously_persisted_seq = '3-g1AG3...'\nchanges_follower = ChangesFollower(\n    service=client,\n    **{'db': 'example', 'since': previously_persisted_seq})\n\nchanges_items = changes_follower.start_one_off()\nfor changes_item in changes_items:\n    # do something with changes\n    print(changes_item.id)\n    for change in changes_item.changes:\n        print(change.rev)\n    # when change item processing is complete app can store seq\n    seq = changes_item.seq\n    # write seq to persistent storage for use as since if required to resume later\n    # e.g. your_app_persistence_write_func(seq)\n\n## Note: iterator above is blocking, code here will be unreachable\n## until all changes are processed (or another stop condition is reached).\n```\n\n[embedmd]:# (go/test/examples/src/changes_follower/start_one_off_and_process.go /package main/ $)\n```go\npackage main\n\nimport (\n\t\"fmt\"\n\n\t\"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n\t\"github.com/IBM/cloudant-go-sdk/features\"\n)\n\nfunc main() {\n\tclient, err := cloudantv1.NewCloudantV1UsingExternalConfig(\n\t\t&cloudantv1.CloudantV1Options{},\n\t)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tpostChangesOptions := client.NewPostChangesOptions(\"example\")\n\n\t// Start from a previously persisted seq\n\t// Normally this would be read by the app from persistent storage\n\t// e.g. prevSeq = yourAppPersistenceReadFunc()\n\tprevSeq := \"3-g1AG3...\"\n\tpostChangesOptions.SetSince(prevSeq)\n\n\tfollower, err := features.NewChangesFollower(client, postChangesOptions)\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tchangesCh, err := follower.StartOneOff()\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\n\tfor changesItem := range changesCh {\n\t\t// changes item structure returns an error on failed requests\n\t\titem, err := changesItem.Item()\n\t\tif err != nil {\n\t\t\tpanic(err)\n\t\t}\n\n\t\t// do something with changes\n\t\tfmt.Printf(\"%s\\n\", *item.ID)\n\t\tfor _, change := range item.Changes {\n\t\t\tfmt.Printf(\"%s\\n\", *change.Rev)\n\t\t}\n\n\t\t// when change item processing is complete app can store seq\n\t\tseq := *item.Seq\n\t\t// write seq to persistent storage for use as since if required\n\t\t// to resume later, e.g. yourAppPersistenceWriteFunc(seq)\n\t}\n\n\t// Note: iterating the returned channel above is blocking, code here\n\t// will be unreachable until all changes are processed\n\t// or another stop condition is reached.\n}\n```\n\n## Rate limiting\n\nRate limits for API requests are enforced on a per-service-instance basis. If the number of requests for a particular request class (`read`, `write` or `global query`) reaches the limit within the given time window, no further requests of that class are accepted until the next time window.\n\nYou can view your usage by using the [Retrieve the current provisioned throughput capacity consumption](https://cloud.ibm.com/apidocs/cloudant#getcurrentthroughputinformation) API or the IBM Cloudant dashboard. IBM Cloudant does return an `x-cloudant-request-class` response header related to limiting.\n\n`x-cloudant-request-class` response header returns the following request classes: `read`, `write`, `global query`, or `unlimited`.\n\nIf you want to learn more about these request classes, see the [Request classes](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-ibm-cloud-public#request-classes) documentation.\n\nA `429` HTTP status code indicates that the rate limit has been exceeded.\n\nThe number of allowed requests varies by request class. The reference information for each endpoint and method specifies the request class that applies to the request. The rate limit for each request class is determined by the account plan.\n\n## Related APIs\n\nMost requests and responses to and from IBM® Cloudant® for IBM Cloud®\nuse [JavaScript Object Notation (JSON)](https://en.wikipedia.org/wiki/JSON) for formatting the content and structure of the data and responses.\n\nIn IBM Cloudant databases,\nthe JSON object is used to represent various structures,\nincluding all documents in a database.\n\nParsing JSON into a JavaScript object is supported through the `JSON.parse()` function in JavaScript, or through various [libraries](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-client-libraries#client-libraries) that perform the parsing of the content into a JavaScript object for you. Libraries for parsing and generating JSON are available for many major programming languages.\n\nJSON is used because it's the simplest and easiest solution for working with data that uses a web browser. As a result, JSON structures can be evaluated and used as JavaScript objects within the web browser environment. JSON also integrates with the server-side JavaScript used within IBM Cloudant. JSON documents are always UTF-8 encoded.\n\nBe careful to follow these guidelines:\n\n-   Your JSON structures are valid.\n-   You normalize strings in JSON documents retrieved from IBM Cloudant.\n\nJSON supports the same basic types that are supported by JavaScript: numbers, strings, Booleans, arrays, and objects.\n\n### Numbers\n\nNumbers can be integer or floating point values.\n\n#### Example of a number in JSON format\n\n```json\n123\n```\n\n### Strings\n\nStrings must be enclosed by double quotation marks. Strings support Unicode characters and escaping a backslash.\n\n#### Example of a string in JSON format\n\n```json\n\"A String\"\n```\n\n### Booleans\n\nA `true` or `false` value.\n\n#### Example of a boolean in JSON format\n\n```json\n{\n  \"value\": true\n}\n```\n\n### Arrays\n\nA list of values enclosed in brackets. The values that are enclosed can be any valid JSON.\n\n#### Example of an array in JSON format\n\n```json\n[\n    \"one\",\n    2,\n    \"three\",\n    [],\n    true,\n    {\n        \"foo\":\n        \"bar\"\n    }\n]\n```\n\n#### Example of an array in JSON format (linear)\n\n```json\n[ \"one\", 2, \"three\", [], true, { \"foo\": \"bar\" } ]\n```\n\n### Objects\n\nA set of `key-value` pairs,\nsuch as an associative array,\nor a hash.\nThe key must be a string,\nbut the value can be any of the supported JSON values.\n\n#### Example of a JSON object\n\n```json\n{\n    \"servings\" : 4,\n    \"subtitle\" : \"Easy to make in advance, and then cook when ready\",\n    \"cooktime\" : 60,\n    \"title\" : \"Chicken Coriander\"\n}\n```\n\n## Logging\n\nThe SDK provides a logging facility with levels `Error`, `Info`, `Warn`, and `Debug`.\nBy default this logger outputs messages to the standard error stream.\nThe default logging level is `Error`. With `Debug` level enabled HTTP messages and retry attempts become visible.\n\nThe Go SDK's core library also defines a `Logger` interface, where you can supply your own logging implementation. For\nexample, you can direct the log messages to a file instead of the console. To use this advanced feature, implement the\n`Logger` interface and then call the `SetLogger(yourLogger)` function to set your implementation\n to handle the log messages.\n\nThe SDK uses the `java.util.logging` framework for logging messages. You can configure the logging\nframework to create and configure loggers, handlers (for example `ConsoleHandler` or `FileHandler`) and\nformatters. Configuring a `ConsoleHandler` for the `com.ibm.cloud.sdk.core` package outputs SDK logging messages\nto the standard error stream.\n\nConfiguring the level for your logger controls the message visibility. You can use the standard `java.util.logging.Level`\nvalue constants: `OFF`, `SEVERE`, `WARNING`, `INFO`, `CONFIG`, `FINE`, `FINER`, `FINEST`, `ALL`.\n\nFor additional HTTP activity logging configure `com.ibm.cloud.sdk.core.http.HttpConfigOptions` and call\n`configureClient(options)` with it. The logging detail levels are: `NONE`, `BASIC`, `HEADERS`,`BODY`.\nTo view these messages both set the logger and handler levels for `com.ibm.cloud.sdk.core.http` to `FINE` or below.\n\nYou can also define the configuration in a file, then supply the name of the file to the logging framework when you\nrun your application. To use a particular configuration file when running your java application, specify the name of the\nconfiguration file with the `java.util.logging.config.file` system property, like this\n\n```java\njava -jar myapp.jar -Djava.util.logging.config.file=logging.properties mypackage.MyMainClass\n```\n\nThe SDK uses the [debug](https://www.npmjs.com/package/debug) package for logging. To see the log output,\nenable debug with string built up of `ibm-cloud-sdk-core:` followed by the wanted log level. The available levels\nare: `error`, `warning`, `info`, `verbose`, and `debug`. To see messages from all available levels you can use `*` like\n`ibm-cloud-sdk-core*`. To configure debug logger for more than one library use a comma-separated\nstring like `ibm-cloud-sdk-core:debug,cloudant-node-sdk:debug`. For example to obtain maximum logging you can set the\nenvironment variable `DEBUG='ibm-cloud-sdk-core*,cloudant-node-sdk*'`.\n\nThe `debug` package logs to the standard error stream. To change output you must override the log or the stderr stream.\n\nThe Python SDK uses Python's built-in [`logging`](https://docs.python.org/3/library/logging.html) module to\nperform logging messages with levels of: `CRITICAL`, `ERROR`, `WARNING`, `INFO` and `DEBUG`. To enable logging, import\nthe `logging` package then set the preferred log level.\n\nWith `DEBUG` level enabled HTTP messages and retry attempts become visible.\n\nBy default the basic configuration outputs messages to the standard error stream.\n\nExample of logging to the standard error stream\n\n```go\n// Enable Debug logging\ncore.SetLoggingLevel(core.LevelDebug)\n```\n\n```java\nimport java.util.logging.Logger;\nimport java.util.logging.ConsoleHandler;\nimport com.ibm.cloud.sdk.core.http.HttpConfigOptions;\n\n// Set logger on core with FINE level\nLogger sdkLogger = Logger.getLogger(\"com.ibm.cloud.sdk.core\");\nsdkLogger.setLevel(Level.FINE);\n\n// Configure the logging output to the standard error stream with FINE level\nConsoleHandler handler = new ConsoleHandler();\nhandler.setLevel(Level.FINE);\n\n// Set the HTTP logging level to BASIC\nHttpConfigOptions options =\n    new HttpConfigOptions.Builder()\n        .loggingLevel(HttpConfigOptions.LoggingLevel.BASIC)\n    .build();\n\nservice.configureClient(options);\n```\n\n```javascript\nimport debug from 'debug'\n\n// Enable debug logs on ibm-cloud-sdk-core and error logs on @ibm-cloud/cloudant packages\ndebug.enable('ibm-cloud-sdk-core:debug,cloudant-node-sdk:error');\n\n// You must use dynamic imports (`await import(...)`) for monitored packages\n// to ensure they load only after debug has been enabled.\nconst { CloudantV1 } = await import('@ibm-cloud/cloudant');\nconst { BasicAuthenticator } = await import('ibm-cloud-sdk-core');\n```\n\n```python\nimport logging\n\n## Enable DEBUG logging level which writes with a handler that display messages on the console\nlogging.basicConfig(level=logging.DEBUG)\n```\n\nExample of logging to a file\n\n```go\n// Enable custom file logger\ntype FileLogger struct {\n\tlogLevel core.LogLevel // use log levels defined in core\n\tlogFile *os.File\n}\nfunc NewFileLogger(level core.LogLevel, filename string) *FileLogger {\n\tlogFile, err := os.OpenFile(filename, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0666)\n\tif err != nil {\n        log.Fatalf(\"Failed to open log file: %v\", err)\n    }\n\treturn &FileLogger{\n\t\tlogLevel: level,\n\t\tlogFile: logFile,\n\t}\n}\n\n// Implement the Log function of FileLogger from the Logger interface\nfunc (l *FileLogger) Log(level core.LogLevel, format string, inserts ...interface{}) {\n\tif l.IsLogLevelEnabled(level) {\n\t\tlogger := log.New(l.logFile, \"\", log.LstdFlags)\n\t\tlogger.Printf(format, inserts...)\n\t}\n}\n\n// Implement all the other functions from the Logger interface for FileLogger\n// func (l *FileLogger) Error(format string, inserts ...interface{}) { ... }\n// func (l *FileLogger) Warn(format string, inserts ...interface{}) { ... }\n// func (l *FileLogger) Info(format string, inserts ...interface{}) { ... }\n// func (l *FileLogger) Debug(format string, inserts ...interface{}) { ... }\n// func (l *FileLogger) SetLogLevel(level core.LogLevel) { ... }\n// func (l *FileLogger) GetLogLevel() core.LogLevel { ... }\n// func (l *FileLogger) IsLogLevelEnabled(level core.LogLevel) bool { ... }\n\n// Create a new file logger with debug level\nyourLogger := NewFileLogger(core.LevelDebug, \"your_log_file.log\")\ncore.SetLogger(yourLogger)\n```\n\n```java\nimport java.util.logging.Logger;\nimport java.util.logging.FileHandler;\nimport com.ibm.cloud.sdk.core.http.HttpConfigOptions;\n\n// Set logger on core with FINE level\nLogger sdkLogger = Logger.getLogger(\"com.ibm.cloud.sdk.core\");\nsdkLogger.setLevel(Level.FINE);\n\n// Use FileHandler if the target of logging is a file\nFileHandler handler = new FileHandler(\"your_log_file.log\")\nhandler.setLevel(Level.FINE);\n\n// Set the HTTP logging level to BODY\nHttpConfigOptions options =\n    new HttpConfigOptions.Builder()\n        .loggingLevel(HttpConfigOptions.LoggingLevel.BODY)\n    .build();\n\nservice.configureClient(options);\n```\n\n```javascript\nimport fs from 'fs';\nimport debug from 'debug';\n\n// Create a writable stream for the log file\nconst logStream = fs.createWriteStream('./your_log_file.log', { flags: 'a' });\n// Namespace for all kind of logs on ibm-cloud-sdk-core package\nconst namespace = 'ibm-cloud-sdk-core*';\n\n// Override global log method of the debug package\nObject.getPrototypeOf(debug(namespace)).log = (...args) => {\n    logStream.write(args.join(' ') + '\\n');\n};\n// Enable namespace\ndebug.enable(namespace);\n\n// You must use dynamic imports (`await import(...)`) for monitored packages\n// to ensure they load only after debug has been enabled.\nconst { CloudantV1 } = await import('@ibm-cloud/cloudant');\nconst { BasicAuthenticator } = await import('ibm-cloud-sdk-core');\n```\n\n```python\nimport logging\n\n## Enable DEBUG logging level and use filename parameter when the target of logging is a file\nlogging.basicConfig(level=logging.DEBUG, filename='your_log_file.log')\n```",
    "license": {
      "name": "Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "title": "Cloudant",
    "version": "1.0.0-dev0.1.38",
    "x-sdk-supported-languages": [
      "java",
      "node",
      "python",
      "go",
      "curl"
    ],
    "x-github": "https://github.ibm.com/cloud-api-docs/cloudant",
    "x-github-issues": "https://github.ibm.com/cloud-api-docs/cloudant/issues/new",
    "x-last-updated": "2026-06-15"
  },
  "openapi": "3.0.0",
  "paths": {
    "/": {
      "get": {
        "description": "When you access the root of an instance,\nIBM Cloudant returns meta-information\nabout the instance. The response includes a JSON structure that\ncontains information about the\nserver, including a welcome message and the server's version.\n\n**Tip:**  The authentication for this endpoint is only enforced\nwhen using IAM.",
        "operationId": "getServerInformation",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/ServerInformation"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve server instance information",
        "tags": [
          "Server"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.account-meta-info.read"
            }
          ]
        },
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "getServerInformationOptions := service.NewGetServerInformationOptions()\n",
                      "\n",
                      "serverInformation, response, err := service.GetServerInformation(getServerInformationOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(serverInformation, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.ServerInformation;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "ServerInformation response =\n",
                      "    service.getServerInformation().execute().getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.getServerInformation().then(response => {\n",
                      "    console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.get_server_information().get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/_active_tasks": {
      "get": {
        "description": "Lists running tasks, including the task type, name, status, and process ID. The result includes a JSON array of the currently running tasks, with each task described as a single object. Depending on the operation type, the set of response object fields might be different.",
        "operationId": "getActiveTasks",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/ActiveTasks"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve list of running tasks",
        "tags": [
          "Monitoring"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.account-active-tasks.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.account-active-tasks.read"
            }
          ]
        },
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/_active_tasks\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "getActiveTasksOptions := service.NewGetActiveTasksOptions()\n",
                      "\n",
                      "activeTask, response, err := service.GetActiveTasks(getActiveTasksOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(activeTask, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.ActiveTask;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "List<ActiveTask> response =\n",
                      "    service.getActiveTasks().execute().getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.getActiveTasks().then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.get_active_tasks().get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/_all_dbs": {
      "get": {
        "description": "Query to retrieve a list of database names from the instance.",
        "operationId": "getAllDbs",
        "parameters": [
          {
            "$ref": "#/components/parameters/QueryDescending"
          },
          {
            "$ref": "#/components/parameters/QueryEndKey"
          },
          {
            "$ref": "#/components/parameters/QueryLimit"
          },
          {
            "$ref": "#/components/parameters/QuerySkip"
          },
          {
            "$ref": "#/components/parameters/QueryStartKey"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/AllDbs"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Query a list of all database names in the instance",
        "tags": [
          "Databases"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.account-all-dbs.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.account-all-dbs.read"
            }
          ]
        },
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/_all_dbs\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "getAllDbsOptions := service.NewGetAllDbsOptions()\n",
                      "\n",
                      "result, response, err := service.GetAllDbs(getAllDbsOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(result, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "\n",
                      "import java.util.List;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "List<String> response =\n",
                      "    service.getAllDbs().execute().getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.getAllDbs().then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.get_all_dbs().get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/_api/v2/api_keys": {
      "post": {
        "description": "Generates API keys to enable database access for a person or application, but without creating a new IBM Cloudant account for that person or application. An API key is a randomly generated username and password. The key is given the wanted access permissions for a database.",
        "operationId": "postApiKeys",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "201": {
            "$ref": "#/components/responses/ApiKeysResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Generates API keys for apps or persons to enable database access",
        "tags": [
          "Authorization"
        ],
        "x-api-tags": [
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.sapi.apikeys"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.sapi.apikeys"
            }
          ]
        },
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X POST \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/_api/v2/api_keys\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "postApiKeysOptions := service.NewPostApiKeysOptions()\n",
                      "\n",
                      "apiKeysResult, response, err := service.PostApiKeys(postApiKeysOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(apiKeysResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.ApiKeysResult;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "ApiKeysResult response =\n",
                      "    service.postApiKeys().execute().getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.postApiKeys().then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.post_api_keys().get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/_api/v2/db/{db}/_security": {
      "get": {
        "description": "See who has permission to read, write, and manage the database. The credentials you use to log in to the dashboard automatically include `_admin` permissions to all databases you create. Everyone and everything else, including users you share databases with and API keys you create, must be given a permission level explicitly.",
        "operationId": "getCloudantSecurity",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/Security"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve database permissions information",
        "tags": [
          "Authorization"
        ],
        "x-api-tags": [
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.sapi.db-security"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.sapi.db-security"
            }
          ]
        },
        "x-sdk-exclude": true,
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/_api/v2/db/products/_security\"\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "The `nobody` username applies to all unauthenticated connection attempts. For example, if an application tries to read data from a database, but didn't identify itself, the task can continue only if the `nobody` user has the role `_reader`."
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "If instead of using Cloudant's security model for managing permissions you opt to use the Apache CouchDB `_users` database (that is using legacy credentials _and_ the `couchdb_auth_only:true` option) then be aware that the user must already exist in `_users` database before getting permissions. For information on the `_users` database, see <a href=\"https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-work-with-your-account#using-the-users-database-with-cloudant-nosql-db\" target=\"_blank\">Using the `_users` database with Cloudant</a>."
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        }
      ],
      "put": {
        "description": "Modify only Cloudant related permissions to database.\nBe careful: by removing an API key from the list, you remove the\nAPI key from the list of users that have access to the database.\n\n### Note about nobody role\n\nThe `nobody` username applies to all unauthenticated connection\nattempts. For example, if an application tries to read data from a\ndatabase, but did not identify itself, the task can continue only if\nthe `nobody` user has the role `_reader`.",
        "operationId": "putCloudantSecurity",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/CloudantSecurityConfiguration"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/Ok"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Modify only Cloudant related database permissions",
        "tags": [
          "Authorization"
        ],
        "x-api-tags": [
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-codegen-request-body-name": "cloudantSecurityConfiguration",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.sapi.db-security"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.sapi.db-security"
            }
          ]
        },
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X PUT \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/_api/v2/db/products/_security\" --data '{\"nobody\": [\"_reader\"]}'\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "The `nobody` username applies to all unauthenticated connection attempts. For example, if an application tries to read data from a database, but didn't identify itself, the task can continue only if the `nobody` user has the role `_reader`."
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "If instead of using Cloudant's security model for managing permissions you opt to use the Apache CouchDB `_users` database (that is using legacy credentials _and_ the `couchdb_auth_only:true` option) then be aware that the user must already exist in `_users` database before adding permissions. For information on the `_users` database, see <a href=\"https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-work-with-your-account#using-the-users-database-with-cloudant-nosql-db\" target=\"_blank\">Using the `_users` database with Cloudant</a>."
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "putCloudantSecurityConfigurationOptions := service.NewPutCloudantSecurityConfigurationOptions(\n",
                      "  \"products\",\n",
                      "  map[string][]string{\n",
                      "    \"nobody\": {cloudantv1.SecurityCloudantReaderConst},\n",
                      "  },\n",
                      ")\n",
                      "\n",
                      "ok, response, err := service.PutCloudantSecurityConfiguration(putCloudantSecurityConfigurationOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(ok, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "The `nobody` username applies to all unauthenticated connection attempts. For example, if an application tries to read data from a database, but didn't identify itself, the task can continue only if the `nobody` user has the role `_reader`."
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "If instead of using Cloudant's security model for managing permissions you opt to use the Apache CouchDB `_users` database (that is using legacy credentials _and_ the `couchdb_auth_only:true` option) then be aware that the user must already exist in `_users` database before adding permissions. For information on the `_users` database, see <a href=\"https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-work-with-your-account#using-the-users-database-with-cloudant-nosql-db\" target=\"_blank\">Using the `_users` database with Cloudant</a>."
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.Ok;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PutCloudantSecurityConfigurationOptions;\n",
                      "\n",
                      "import java.util.Arrays;\n",
                      "import java.util.HashMap;\n",
                      "import java.util.List;\n",
                      "import java.util.Map;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "Map<String, List<String>> securityObject = new HashMap<>();\n",
                      "securityObject.put(\"nobody\", Arrays.asList(\"_reader\"));\n",
                      "\n",
                      "PutCloudantSecurityConfigurationOptions securityOptions =\n",
                      "    new PutCloudantSecurityConfigurationOptions.Builder()\n",
                      "        .db(\"products\")\n",
                      "        .cloudant(securityObject)\n",
                      "        .build();\n",
                      "\n",
                      "Ok response =\n",
                      "    service.putCloudantSecurityConfiguration(securityOptions)\n",
                      "        .execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "The `nobody` username applies to all unauthenticated connection attempts. For example, if an application tries to read data from a database, but didn't identify itself, the task can continue only if the `nobody` user has the role `_reader`."
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "If instead of using Cloudant's security model for managing permissions you opt to use the Apache CouchDB `_users` database (that is using legacy credentials _and_ the `couchdb_auth_only:true` option) then be aware that the user must already exist in `_users` database before adding permissions. For information on the `_users` database, see <a href=\"https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-work-with-your-account#using-the-users-database-with-cloudant-nosql-db\" target=\"_blank\">Using the `_users` database with Cloudant</a>."
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.putCloudantSecurityConfiguration({\n",
                      "  db: 'products',\n",
                      "  cloudant: {'nobody': ['_reader']}\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "The `nobody` username applies to all unauthenticated connection attempts. For example, if an application tries to read data from a database, but didn't identify itself, the task can continue only if the `nobody` user has the role `_reader`."
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "If instead of using Cloudant's security model for managing permissions you opt to use the Apache CouchDB `_users` database (that is using legacy credentials _and_ the `couchdb_auth_only:true` option) then be aware that the user must already exist in `_users` database before adding permissions. For information on the `_users` database, see <a href=\"https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-work-with-your-account#using-the-users-database-with-cloudant-nosql-db\" target=\"_blank\">Using the `_users` database with Cloudant</a>."
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "security_object = {'nobody':['_reader']}\n",
                      "response = service.put_cloudant_security_configuration(\n",
                      "  db='products',\n",
                      "  cloudant=security_object\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "The `nobody` username applies to all unauthenticated connection attempts. For example, if an application tries to read data from a database, but didn't identify itself, the task can continue only if the `nobody` user has the role `_reader`."
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "If instead of using Cloudant's security model for managing permissions you opt to use the Apache CouchDB `_users` database (that is using legacy credentials _and_ the `couchdb_auth_only:true` option) then be aware that the user must already exist in `_users` database before adding permissions. For information on the `_users` database, see <a href=\"https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-work-with-your-account#using-the-users-database-with-cloudant-nosql-db\" target=\"_blank\">Using the `_users` database with Cloudant</a>."
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/_api/v2/user/activity_tracker/events": {
      "get": {
        "description": "Check event types sent to IBM Cloud Activity Tracker Event Routing for the IBM Cloudant instance.",
        "operationId": "getActivityTrackerEvents",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/ActivityTrackerEvents"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve activity tracking events information",
        "tags": [
          "Monitoring"
        ],
        "x-api-tags": [
          "IBM Cloudant"
        ],
        "x-cli-command": "events-config",
        "x-cli-default-jmespath": "types",
        "x-cli-exclude": false,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.activity-tracker-event-types.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.activity-tracker-event-types.read"
            }
          ]
        },
        "x-sdk-operations": {
          "request-examples": {
            "cli": [
              {
                "example": [
                  {
                    "source": [
                      "ibmcloud cloudant events-config"
                    ],
                    "type": "code"
                  }
                ],
                "name": "Example request"
              }
            ],
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/_api/v2/user/activity_tracker/events\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "getActivityTrackerEventsOptions := service.NewGetActivityTrackerEventsOptions()\n",
                      "\n",
                      "activityTrackerEvents, response, err := service.GetActivityTrackerEvents(getActivityTrackerEventsOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(activityTrackerEvents, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.ActivityTrackerEvents;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "ActivityTrackerEvents response =\n",
                      "    service.getActivityTrackerEvents().execute().getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.getActivityTrackerEvents().then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.get_activity_tracker_events().get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        },
        "x-visible-environment": "default"
      },
      "post": {
        "description": "Configure event types sent to IBM Cloud Activity Tracker Event Routing for the IBM Cloudant instance.",
        "operationId": "postActivityTrackerEvents",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ActivityTrackerEvents"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/Ok"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Modify activity tracking events configuration",
        "tags": [
          "Monitoring"
        ],
        "x-api-tags": [
          "IBM Cloudant"
        ],
        "x-cli-command": "events-config-update",
        "x-cli-exclude": false,
        "x-codegen-request-body-name": "activityTrackerEvents",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.activity-tracker-event-types.write"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.activity-tracker-event-types.write"
            }
          ]
        },
        "x-sdk-operations": {
          "request-examples": {
            "cli": [
              {
                "example": [
                  {
                    "source": [
                      "ibmcloud cloudant events-config-update --types management,data"
                    ],
                    "type": "code"
                  }
                ],
                "name": "Example request"
              }
            ],
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X POST \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/_api/v2/user/activity_tracker/events\" --data '{\"types\": [\"data\", \"management\"]}'\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "postActivityTrackerEventsOptions := service.NewPostActivityTrackerEventsOptions(\n",
                      "  []string{\n",
                      "\t\tcloudantv1.ActivityTrackerEventsTypesManagementConst,\n",
                      "\t\tcloudantv1.ActivityTrackerEventsTypesDataConst,\n",
                      "\t},\n",
                      ")\n",
                      "\n",
                      "activityTrackerEvents, response, err := service.PostActivityTrackerEvents(postActivityTrackerEventsOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(activityTrackerEvents, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.ActivityTrackerEvents;\n",
                      "import com.ibm.cloud.cloudant.v1.model.Ok;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PostActivityTrackerEventsOptions;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "PostActivityTrackerEventsOptions options =\n",
                      "    new PostActivityTrackerEventsOptions.Builder()\n",
                      "        .addTypes(ActivityTrackerEvents.Types.MANAGEMENT)\n",
                      "        .addTypes(ActivityTrackerEvents.Types.DATA)\n",
                      "        .build();\n",
                      "\n",
                      "Ok response =\n",
                      "    service.postActivityTrackerEvents(options).execute().getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.postActivityTrackerEvents({\n",
                      "  types: [\n",
                      "    CloudantV1.ActivityTrackerEvents.Constants.Types.MANAGEMENT,\n",
                      "    CloudantV1.ActivityTrackerEvents.Constants.Types.DATA\n",
                      "  ],\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1, ActivityTrackerEvents\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.post_activity_tracker_events(\n",
                      "  types=[\n",
                      "    ActivityTrackerEvents.TypesEnum.MANAGEMENT,\n",
                      "    ActivityTrackerEvents.TypesEnum.DATA\n",
                      "  ]\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        },
        "x-visible-environment": "default"
      }
    },
    "/_api/v2/user/capacity/databases": {
      "get": {
        "description": "Retrieves the maximum number of databases currently allowed in the instance.",
        "operationId": "getCapacityDatabasesInformation",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/CapacityDatabasesInformation"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve maximum allowed database count",
        "tags": [
          "Monitoring"
        ],
        "x-api-tags": [
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.account-capacity-dbs.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.account-capacity-dbs.read"
            }
          ]
        },
        "x-visible-environment": "default"
      }
    },
    "/_api/v2/user/capacity/throughput": {
      "get": {
        "description": "View the amount of provisioned throughput capacity that is allocated to an IBM Cloudant instance and what is the target provisioned throughput capacity.",
        "operationId": "getCapacityThroughputInformation",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/CapacityThroughputInformation"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve provisioned throughput capacity information",
        "tags": [
          "Server"
        ],
        "x-api-tags": [
          "IBM Cloudant"
        ],
        "x-cli-command": "capacity",
        "x-cli-default-jmespath": "current.throughput",
        "x-cli-exclude": false,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.account-capacity-throughput.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.account-capacity-throughput.read"
            }
          ]
        },
        "x-sdk-operations": {
          "request-examples": {
            "cli": [
              {
                "example": [
                  {
                    "source": [
                      "ibmcloud cloudant capacity"
                    ],
                    "type": "code"
                  }
                ],
                "name": "Example request"
              }
            ],
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/_api/v2/user/capacity/throughput\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "getCapacityThroughputInformationOptions := service.NewGetCapacityThroughputInformationOptions()\n",
                      "\n",
                      "capacityThroughputInformation, response, err := service.GetCapacityThroughputInformation(getCapacityThroughputInformationOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(capacityThroughputInformation, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.CapacityThroughputInformation;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "CapacityThroughputInformation response =\n",
                      "    service.getCapacityThroughputInformation().execute().getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.getCapacityThroughputInformation().then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.get_capacity_throughput_information().get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        },
        "x-visible-environment": "default"
      },
      "put": {
        "description": "Sets the target provisioned throughput capacity for an IBM Cloudant instance. When target capacity is changed, the current capacity asynchronously changes to meet the target capacity.",
        "operationId": "putCapacityThroughputConfiguration",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/CapacityThroughputConfiguration"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/CapacityThroughputInformation"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Update the target provisioned throughput capacity",
        "tags": [
          "Server"
        ],
        "x-api-tags": [
          "IBM Cloudant"
        ],
        "x-cli-command": "capacity-update",
        "x-cli-default-jmespath": "target.throughput",
        "x-cli-exclude": false,
        "x-codegen-request-body-name": "capacityConfiguration",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.account-capacity-throughput.configure"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.account-capacity-throughput.configure"
            }
          ]
        },
        "x-sdk-operations": {
          "request-examples": {
            "cli": [
              {
                "example": [
                  {
                    "source": [
                      "ibmcloud cloudant capacity-update --blocks 10"
                    ],
                    "type": "code"
                  }
                ],
                "name": "Example request"
              }
            ],
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X PUT -H \"Content-Type: application/json\" \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/_api/v2/user/capacity/throughput\" --data '{\"blocks\": 1}'\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "putCapacityThroughputConfigurationOptions := service.NewPutCapacityThroughputConfigurationOptions(\n",
                      "  1,\n",
                      ")\n",
                      "\n",
                      "capacityThroughputConfiguration, response, err := service.PutCapacityThroughputConfiguration(putCapacityThroughputConfigurationOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(capacityThroughputConfiguration, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.CapacityThroughputInformation;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PutCapacityThroughputConfigurationOptions;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "PutCapacityThroughputConfigurationOptions options =\n",
                      "    new PutCapacityThroughputConfigurationOptions.Builder()\n",
                      "        .blocks(1)\n",
                      "        .build();\n",
                      "\n",
                      "CapacityThroughputInformation response =\n",
                      "    service.putCapacityThroughputConfiguration(options).execute().getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.putCapacityThroughputConfiguration({\n",
                      "  blocks: 1,\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.put_capacity_throughput_configuration(\n",
                      "  blocks=1\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        },
        "x-visible-environment": "default"
      }
    },
    "/_api/v2/user/config/cors": {
      "get": {
        "description": "Lists all Cross-origin resource sharing (CORS) configuration. CORS defines a way in which the browser and the server interact to determine whether or not to allow the request.",
        "operationId": "getCorsInformation",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/CorsInformation"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve CORS configuration information",
        "tags": [
          "CORS"
        ],
        "x-api-tags": [
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.sapi.usercors"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.sapi.usercors"
            }
          ]
        },
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/_api/v2/user/config/cors\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "getCorsInformationOptions := service.NewGetCorsInformationOptions()\n",
                      "\n",
                      "corsConfiguration, response, err := service.GetCorsInformation(getCorsInformationOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(corsConfiguration, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.CorsInformation;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "CorsInformation response =\n",
                      "    service.getCorsInformation().execute().getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.getCorsInformation().then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.get_cors_information().get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "put": {
        "description": "Sets the CORS configuration. The configuration applies to all databases and all account level endpoints in your account.",
        "operationId": "putCorsConfiguration",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/CorsConfiguration"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/Ok"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Modify CORS configuration",
        "tags": [
          "CORS"
        ],
        "x-api-tags": [
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-codegen-request-body-name": "corsConfiguration",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.sapi.usercors"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.sapi.usercors"
            }
          ]
        },
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X PUT \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/_api/v2/user/config/cors\" -H \"Content-Type: application/json\" --data '{\n",
                      "  \"enable_cors\": true,\n",
                      "  \"origins\": [\n",
                      "    \"https://example.com\"\n",
                      "  ]\n",
                      "}'\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "putCorsConfigurationOptions := service.NewPutCorsConfigurationOptions([]string{\n",
                      "  \"https://example.com\",\n",
                      "})\n",
                      "putCorsConfigurationOptions.SetEnableCors(true)\n",
                      "\n",
                      "ok, response, err := service.PutCorsConfiguration(putCorsConfigurationOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(ok, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.Ok;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PutCorsConfigurationOptions;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "PutCorsConfigurationOptions configurationOptions =\n",
                      "    new PutCorsConfigurationOptions.Builder()\n",
                      "        .addOrigins(\"https://example.com\")\n",
                      "        .enableCors(true)\n",
                      "        .build();\n",
                      "\n",
                      "Ok response =\n",
                      "    service.putCorsConfiguration(configurationOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.putCorsConfiguration({\n",
                      "  enableCors: true,\n",
                      "  origins: ['https://example.com']\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.put_cors_configuration(\n",
                      "  enable_cors=True,\n",
                      "  origins=['https://example.com']\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/_api/v2/user/current/databases": {
      "get": {
        "description": "Retrieves the current number of databases that exist in the instance.",
        "operationId": "getCurrentDatabasesInformation",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/CurrentDatabasesInformation"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve current database count",
        "tags": [
          "Monitoring"
        ],
        "x-api-tags": [
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.account-current-dbs.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.account-current-dbs.read"
            }
          ]
        },
        "x-visible-environment": "default"
      }
    },
    "/_api/v2/user/current/throughput": {
      "get": {
        "description": "View the current consumption of provisioned throughput capacity for an IBM Cloudant instance. The current consumption shows the quantities of reads, writes, and global queries conducted against the instance for a given second.",
        "operationId": "getCurrentThroughputInformation",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/CurrentThroughputInformation"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve the current provisioned throughput capacity consumption",
        "tags": [
          "Monitoring"
        ],
        "x-api-tags": [
          "IBM Cloudant"
        ],
        "x-cli-command": "throughput",
        "x-cli-default-jmespath": "throughput",
        "x-cli-exclude": false,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.account-current-throughput.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.account-current-throughput.read"
            }
          ]
        },
        "x-sdk-operations": {
          "request-examples": {
            "cli": [
              {
                "example": [
                  {
                    "source": [
                      "ibmcloud cloudant throughput"
                    ],
                    "type": "code"
                  }
                ],
                "name": "Example request"
              }
            ],
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/_api/v2/user/current/throughput\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "getCurrentThroughputInformationOptions := service.NewGetCurrentThroughputInformationOptions()\n",
                      "\n",
                      "currentThroughputInformation, response, err := service.GetCurrentThroughputInformation(getCurrentThroughputInformationOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(currentThroughputInformation, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.CurrentThroughputInformation;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "CurrentThroughputInformation response =\n",
                      "    service.getCurrentThroughputInformation().execute().getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.getCurrentThroughputInformation().then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.get_current_throughput_information().get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        },
        "x-visible-environment": "default"
      }
    },
    "/_dbs_info": {
      "post": {
        "description": "This operation enables you to request information about multiple databases in a single request, instead of issuing multiple `GET /{db}` requests. It returns a list that contains an information object for each database specified in the request.",
        "operationId": "postDbsInfo",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/DbsInfoQuery"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/DbsInfoResults"
          },
          "400": {
            "$ref": "#/components/responses/Error400DbsInfoMissingKeys"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "413": {
            "$ref": "#/components/responses/Error413TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Query information about multiple databases",
        "tags": [
          "Databases"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-codegen-request-body-name": "dbsInfoQuery",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.account-dbs-info.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.account-dbs-info.read"
            }
          ]
        },
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X POST \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/_dbs_info\" -H \"Content-Type: application/json\" --data '{\n",
                      "  \"keys\":  [\"products\", \"users\", \"orders\"]\n",
                      "}'\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "postDbsInfoOptions := service.NewPostDbsInfoOptions([]string{\n",
                      "  \"products\",\n",
                      "  \"users\",\n",
                      "  \"orders\",\n",
                      "})\n",
                      "\n",
                      "dbsInfoResult, response, err := service.PostDbsInfo(postDbsInfoOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(dbsInfoResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.DbsInfoResult;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PostDbsInfoOptions;\n",
                      "\n",
                      "import java.util.Arrays;\n",
                      "import java.util.List;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "PostDbsInfoOptions dbsInfoOptions =\n",
                      "    new PostDbsInfoOptions.Builder()\n",
                      "        .keys(Arrays.asList(\"products\", \"users\", \"orders\"))\n",
                      "        .build();\n",
                      "\n",
                      "List<DbsInfoResult> response =\n",
                      "    service.postDbsInfo(dbsInfoOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.postDbsInfo({\n",
                      "  keys: ['products', 'users', 'orders']\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.post_dbs_info(\n",
                      "  keys=['products', 'users', 'orders']\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/_membership": {
      "get": {
        "description": "Displays the nodes that are part of the cluster as `cluster_nodes`. The field, `all_nodes`, displays all nodes this node knows about, including the ones that are part of the cluster. This endpoint is useful when you set up a cluster.",
        "operationId": "getMembershipInformation",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/MembershipInformation"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve cluster membership information",
        "tags": [
          "Monitoring"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.cluster-membership.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.cluster-membership.read"
            }
          ]
        },
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/_membership\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "getMembershipInformationOptions := service.NewGetMembershipInformationOptions()\n",
                      "\n",
                      "membershipInformation, response, err := service.GetMembershipInformation(getMembershipInformationOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(membershipInformation, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.MembershipInformation;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "MembershipInformation response =\n",
                      "    service.getMembershipInformation().execute().getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.getMembershipInformation().then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.get_membership_information().get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/_node/{node_name}/_config/{config_section}/{config_key}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/PathNodeName"
        },
        {
          "$ref": "#/components/parameters/PathConfigSection"
        },
        {
          "$ref": "#/components/parameters/PathConfigKey"
        }
      ]
    },
    "/_node/{node_name}/_stats": {
      "parameters": [
        {
          "$ref": "#/components/parameters/PathNodeName"
        }
      ]
    },
    "/_node/{node_name}/_system": {
      "parameters": [
        {
          "$ref": "#/components/parameters/PathNodeName"
        }
      ]
    },
    "/_replicate": {
      "post": {
        "description": "Requests, configures, or stops a replicate operation. Note: Use the `_replicator` database to persist the replication configuration. That usage is preferred over this `/_replicate` endpoint, which is a transient operation.",
        "operationId": "postReplicate",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ReplicationDocument"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/ReplicationResult"
          },
          "202": {
            "$ref": "#/components/responses/ReplicationInformation"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401AdminPrivilegesRequired"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "413": {
            "$ref": "#/components/responses/Error413DocumentTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Create a transient replication",
        "tags": [
          "Replication"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-codegen-request-body-name": "replicationDocument",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.replication.write"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.replication.write"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `write` request.",
        "x-sdk-exclude": true,
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X POST \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/_replicate\" -H \"Content-Type: application/json\" --data '{\n",
                      "  \"_id\": \"repldoc-example\",\n",
                      "  \"create_target\": true,\n",
                      "  \"source\": {\n",
                      "    \"url\": \"https://~replace-with-source-host~.cloudantnosqldb.appdomain.cloud/animaldb\"\n",
                      "  },\n",
                      "  \"target\": {\n",
                      "    \"auth\": {\n",
                      "      \"iam\": {\n",
                      "        \"api_key\": \"a1b2c3d4e5f6f1g4h7j3k6l9m2p5q8s1t4v7x0z3\"\n",
                      "      }\n",
                      "    },\n",
                      "    \"url\": \"https://~replace-with-target-host~.cloudantnosqldb.appdomain.cloud/animaldb-target\"\n",
                      "  }\n",
                      "}'\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/_replicator": {
      "post": {
        "description": "Creates or modifies a document in the `_replicator` database to start a new replication or to edit an existing replication.",
        "operationId": "postReplicator",
        "parameters": [
          {
            "$ref": "#/components/parameters/QueryBatch"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ReplicationDocument"
        },
        "responses": {
          "201": {
            "$ref": "#/components/responses/DocumentResult"
          },
          "202": {
            "$ref": "#/components/responses/DocumentResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "409": {
            "$ref": "#/components/responses/Error409DocumentConflict"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "413": {
            "$ref": "#/components/responses/Error413DocumentTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Create a persistent replication with a generated ID",
        "tags": [
          "Replication"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-codegen-request-body-name": "replicationDocument",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.replication.write"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.replication.write"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `write` request.",
        "x-visible-environment": "default"
      }
    },
    "/_replicator/{doc_id}": {
      "delete": {
        "description": "Cancels a replication by deleting the document that describes it from the `_replicator` database.",
        "operationId": "deleteReplicationDocument",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderIfMatch"
          },
          {
            "$ref": "#/components/parameters/QueryBatch"
          },
          {
            "$ref": "#/components/parameters/QueryRev"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/DocumentResult"
          },
          "202": {
            "$ref": "#/components/responses/DocumentResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "409": {
            "$ref": "#/components/responses/Error409DocumentConflict"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Cancel a persistent replication",
        "tags": [
          "Replication"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.replication.write"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.replication.write"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `write` request.",
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X DELETE \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/_replicator/repldoc-example?rev=1-00000000000000000000000000000000\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "deleteReplicationDocumentOptions := service.NewDeleteReplicationDocumentOptions(\n",
                      "  \"repldoc-example\",\n",
                      ")\n",
                      "deleteReplicationDocumentOptions.SetRev(\"1-00000000000000000000000000000000\")\n",
                      "\n",
                      "documentResult, response, err := service.DeleteReplicationDocument(deleteReplicationDocumentOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(documentResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.DeleteReplicationDocumentOptions;\n",
                      "import com.ibm.cloud.cloudant.v1.model.DocumentResult;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "DeleteReplicationDocumentOptions replicationDocOptions =\n",
                      "    new DeleteReplicationDocumentOptions.Builder()\n",
                      "        .docId(\"repldoc-example\")\n",
                      "        .rev(\"1-00000000000000000000000000000000\")\n",
                      "        .build();\n",
                      "\n",
                      "DocumentResult response =\n",
                      "    service.deleteReplicationDocument(replicationDocOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.deleteReplicationDocument({\n",
                      "  docId: 'repldoc-example',\n",
                      "  rev: '1-00000000000000000000000000000000'\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.delete_replication_document(\n",
                      "doc_id='repldoc-example',\n",
                      "rev='1-00000000000000000000000000000000'\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "get": {
        "description": "Retrieves a replication document from the `_replicator` database to view the configuration of the replication. The status of the replication is no longer recorded in the document but can be checked via the replication scheduler.",
        "operationId": "getReplicationDocument",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderIfNoneMatch"
          },
          {
            "$ref": "#/components/parameters/QueryAttachments"
          },
          {
            "$ref": "#/components/parameters/QueryAttEncodingInfo"
          },
          {
            "$ref": "#/components/parameters/QueryAttsSince"
          },
          {
            "$ref": "#/components/parameters/QueryConflicts"
          },
          {
            "$ref": "#/components/parameters/QueryDeletedConflicts"
          },
          {
            "$ref": "#/components/parameters/QueryLatest"
          },
          {
            "$ref": "#/components/parameters/QueryLocalSeq"
          },
          {
            "$ref": "#/components/parameters/QueryMeta"
          },
          {
            "$ref": "#/components/parameters/QueryOpenRevs"
          },
          {
            "$ref": "#/components/parameters/QueryRev"
          },
          {
            "$ref": "#/components/parameters/QueryRevs"
          },
          {
            "$ref": "#/components/parameters/QueryRevsInfo"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/ReplicationDocument"
          },
          "304": {
            "$ref": "#/components/responses/NotModified"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve the configuration for a persistent replication",
        "tags": [
          "Replication"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.replication.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.replication.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `read` request.",
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/_replicator/repldoc-example\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "getReplicationDocumentOptions := service.NewGetReplicationDocumentOptions(\n",
                      "  \"repldoc-example\",\n",
                      ")\n",
                      "\n",
                      "replicationDocument, response, err := service.GetReplicationDocument(getReplicationDocumentOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(replicationDocument, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.GetReplicationDocumentOptions;\n",
                      "import com.ibm.cloud.cloudant.v1.model.ReplicationDocument;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "GetReplicationDocumentOptions replicationDocOptions =\n",
                      "    new GetReplicationDocumentOptions.Builder()\n",
                      "        .docId(\"repldoc-example\")\n",
                      "        .build();\n",
                      "\n",
                      "ReplicationDocument response =\n",
                      "    service.getReplicationDocument(replicationDocOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.getReplicationDocument({\n",
                      "  docId: 'repldoc-example'\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.get_replication_document(\n",
                      "  doc_id='repldoc-example'\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "head": {
        "description": "Retrieves the HTTP headers containing minimal amount of information about the specified replication document from the `_replicator` database.  The method supports the same query arguments as the `GET /_replicator/{doc_id}` method, but only headers like content length and the revision (ETag header) are returned.",
        "operationId": "headReplicationDocument",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderIfNoneMatch"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/ReplicationDocumentHead"
          },
          "304": {
            "$ref": "#/components/responses/NotModified"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve the HTTP headers for a persistent replication",
        "tags": [
          "Replication"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.replication.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.replication.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `read` request.",
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" --head \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/_replicator/repldoc-example\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "headReplicationDocumentOptions := service.NewHeadReplicationDocumentOptions(\n",
                      "  \"repldoc-example\",\n",
                      ")\n",
                      "\n",
                      "response, err := service.HeadReplicationDocument(headReplicationDocumentOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "fmt.Println(response.StatusCode)\n",
                      "fmt.Println(response.Headers[\"ETag\"])\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.sdk.core.http.Headers;\n",
                      "\n",
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.HeadReplicationDocumentOptions;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "HeadReplicationDocumentOptions replicationDocOptions =\n",
                      "    new HeadReplicationDocumentOptions.Builder()\n",
                      "        .docId(\"repldoc-example\")\n",
                      "        .build();\n",
                      "\n",
                      "int statusCode =\n",
                      "    service.headReplicationDocument(replicationDocOptions).execute().getStatusCode();\n",
                      "\n",
                      "Headers headers =\n",
                      "    service.headReplicationDocument(replicationDocOptions).execute().getHeaders();\n",
                      "\n",
                      "System.out.println(statusCode);\n",
                      "System.out.println(headers.values(\"ETag\"));\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.headReplicationDocument({\n",
                      "  docId: 'repldoc-example'\n",
                      "}).then(response => {\n",
                      "  console.log(response.status);\n",
                      "  console.log(response.headers['ETag']);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.head_replication_document(\n",
                      " doc_id='repldoc-example'\n",
                      ")\n",
                      "print(response.get_status_code())\n",
                      "print(response.get_headers()['ETag'])\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/PathReplicatorDocId"
        }
      ],
      "put": {
        "description": "Creates or modifies a document in the `_replicator` database to start a new replication or to edit an existing replication.",
        "operationId": "putReplicationDocument",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderIfMatch"
          },
          {
            "$ref": "#/components/parameters/QueryBatch"
          },
          {
            "$ref": "#/components/parameters/QueryNewEdits"
          },
          {
            "$ref": "#/components/parameters/QueryRev"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ReplicationDocument"
        },
        "responses": {
          "201": {
            "$ref": "#/components/responses/DocumentResult"
          },
          "202": {
            "$ref": "#/components/responses/DocumentResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "409": {
            "$ref": "#/components/responses/Error409DocumentConflict"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "412": {
            "$ref": "#/components/responses/Error412DatabaseAlreadyExists"
          },
          "413": {
            "$ref": "#/components/responses/Error413DocumentTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Create or modify a persistent replication",
        "tags": [
          "Replication"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-codegen-request-body-name": "replicationDocument",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.replication.write"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.replication.write"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `write` request.",
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X PUT \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/_replicator/repldoc-example\" -H \"Content-Type: application/json\" --data '{\n",
                      "  \"_id\": \"repldoc-example\",\n",
                      "  \"create_target\": true,\n",
                      "  \"source\": {\n",
                      "    \"url\": \"https://~replace-with-source-host~.cloudantnosqldb.appdomain.cloud/animaldb\"\n",
                      "  },\n",
                      "  \"target\": {\n",
                      "    \"auth\": {\n",
                      "      \"iam\": {\n",
                      "        \"api_key\": \"a1b2c3d4e5f6f1g4h7j3k6l9m2p5q8s1t4v7x0z3\"\n",
                      "      }\n",
                      "    },\n",
                      "    \"url\": \"https://~replace-with-target-host~.cloudantnosqldb.appdomain.cloud/animaldb-target\"\n",
                      "  }\n",
                      "}'\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      "  \"github.com/IBM/go-sdk-core/v5/core\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "source, err := service.NewReplicationDatabase(\n",
                      "  \"https://~replace-with-source-host~.cloudantnosqldb.appdomain.cloud/animaldb\",\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "target, err := service.NewReplicationDatabase(\n",
                      "  \"https://~replace-with-target-host~.cloudantnosqldb.appdomain.cloud/animaldb-target\",\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "auth, err := service.NewReplicationDatabaseAuthIam(\n",
                      "  \"a1b2c3d4e5f6f1g4h7j3k6l9m2p5q8s1t4v7x0z3\", //use your own IAM API key\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "target.Auth = &cloudantv1.ReplicationDatabaseAuth{Iam: auth}\n",
                      "\n",
                      "replicationDoc, err := service.NewReplicationDocument(\n",
                      "  source,\n",
                      "  target,\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "replicationDoc.CreateTarget = core.BoolPtr(true)\n",
                      "\n",
                      "putReplicationDocumentOptions := service.NewPutReplicationDocumentOptions(\n",
                      "  \"repldoc-example\",\n",
                      "  replicationDoc,\n",
                      ")\n",
                      "\n",
                      "documentResult, response, err := service.PutReplicationDocument(putReplicationDocumentOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(documentResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.DocumentResult;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PutReplicationDocumentOptions;\n",
                      "import com.ibm.cloud.cloudant.v1.model.ReplicationDatabase;\n",
                      "import com.ibm.cloud.cloudant.v1.model.ReplicationDatabaseAuth;\n",
                      "import com.ibm.cloud.cloudant.v1.model.ReplicationDatabaseAuthIam;\n",
                      "import com.ibm.cloud.cloudant.v1.model.ReplicationDocument;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "ReplicationDatabase sourceDb = new ReplicationDatabase.Builder()\n",
                      "    .url(\"https://~replace-with-source-host~.cloudantnosqldb.appdomain.cloud/animaldb\")\n",
                      "    .build();\n",
                      "\n",
                      "ReplicationDatabaseAuthIam targetAuthIam =\n",
                      "    new ReplicationDatabaseAuthIam.Builder()\n",
                      "        .apiKey(\"a1b2c3d4e5f6f1g4h7j3k6l9m2p5q8s1t4v7x0z3\") //use your own IAM API key\n",
                      "        .build();\n",
                      "\n",
                      "ReplicationDatabaseAuth targetAuth = new ReplicationDatabaseAuth.Builder()\n",
                      "    .iam(targetAuthIam)\n",
                      "    .build();\n",
                      "\n",
                      "ReplicationDatabase targetDb = new ReplicationDatabase.Builder()\n",
                      "    .auth(targetAuth)\n",
                      "    .url(\"https://~replace-with-target-host~.cloudantnosqldb.appdomain.cloud/animaldb-target\")\n",
                      "    .build();\n",
                      "\n",
                      "ReplicationDocument replDocument = new ReplicationDocument();\n",
                      "replDocument.setCreateTarget(true);\n",
                      "replDocument.setSource(sourceDb);\n",
                      "replDocument.setTarget(targetDb);\n",
                      "\n",
                      "PutReplicationDocumentOptions replicationDocumentOptions =\n",
                      "    new PutReplicationDocumentOptions.Builder()\n",
                      "        .docId(\"repldoc-example\")\n",
                      "        .replicationDocument(replDocument)\n",
                      "        .build();\n",
                      "\n",
                      "DocumentResult response =\n",
                      "    service.putReplicationDocument(replicationDocumentOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "const sourceDb: CloudantV1.ReplicationDatabase = {\n",
                      "  url: 'https://~replace-with-source-host~.cloudantnosqldb.appdomain.cloud/animaldb'\n",
                      "};\n",
                      "\n",
                      "const targetDb: CloudantV1.ReplicationDatabase = {\n",
                      "  auth: {\n",
                      "    iam: {\n",
                      "      'apiKey': 'a1b2c3d4e5f6f1g4h7j3k6l9m2p5q8s1t4v7x0z3' //use your own IAM API key\n",
                      "    }\n",
                      "  },\n",
                      "  url: 'https://~replace-with-target-host~.cloudantnosqldb.appdomain.cloud/animaldb-target'\n",
                      "};\n",
                      "\n",
                      "const replDocument: CloudantV1.ReplicationDocument = {\n",
                      "  id: 'repldoc-example',\n",
                      "  createTarget: true,\n",
                      "  source: sourceDb,\n",
                      "  target: targetDb\n",
                      "}\n",
                      "\n",
                      "service.putReplicationDocument({\n",
                      "  docId: 'repldoc-example',\n",
                      "  replicationDocument: replDocument\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1, ReplicationDocument, ReplicationDatabase, ReplicationDatabaseAuthIam, ReplicationDatabaseAuth\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "source_db = ReplicationDatabase(\n",
                      "  url='https://~replace-with-source-host~.cloudantnosqldb.appdomain.cloud/animaldb'\n",
                      ")\n",
                      "\n",
                      "target_auth_iam = ReplicationDatabaseAuthIam(\n",
                      "  api_key='a1b2c3d4e5f6f1g4h7j3k6l9m2p5q8s1t4v7x0z3' #use your own IAM API key\n",
                      ")\n",
                      "target_auth = ReplicationDatabaseAuth(\n",
                      "  iam=target_auth_iam\n",
                      ")\n",
                      "target_db = ReplicationDatabase(\n",
                      "  auth=target_auth,\n",
                      "  url='https://~replace-with-target-host~.cloudantnosqldb.appdomain.cloud/animaldb-target'\n",
                      ")\n",
                      "\n",
                      "replication_document = ReplicationDocument(\n",
                      "  _id='repldoc-example',\n",
                      "  create_target=True,\n",
                      "  source=source_db,\n",
                      "  target=target_db\n",
                      ")\n",
                      "\n",
                      "response = service.put_replication_document(\n",
                      "  doc_id='repldoc-example',\n",
                      "  replication_document=replication_document\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/_reshard/jobs/{reshard_job_id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/PathReshardJobId"
        }
      ]
    },
    "/_reshard/jobs/{reshard_job_id}/state": {
      "parameters": [
        {
          "$ref": "#/components/parameters/PathReshardJobId"
        }
      ]
    },
    "/_scheduler/docs": {
      "get": {
        "description": "Lists replication documents, including information about all documents, even the ones in a completed or failed state. For each document, the endpoint returns the document ID, database, replication ID, source and target, and other information.",
        "operationId": "getSchedulerDocs",
        "parameters": [
          {
            "$ref": "#/components/parameters/QueryLimit"
          },
          {
            "$ref": "#/components/parameters/QuerySkip"
          },
          {
            "$ref": "#/components/parameters/QueryStates"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/SchedulerDocsResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve replication scheduler documents",
        "tags": [
          "Replication"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.replication-scheduler.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.replication-scheduler.read"
            }
          ]
        },
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/_scheduler/docs?limit=100&states=completed\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "getSchedulerDocsOptions := service.NewGetSchedulerDocsOptions()\n",
                      "getSchedulerDocsOptions.SetLimit(100)\n",
                      "getSchedulerDocsOptions.SetStates([]string{\"completed\"})\n",
                      "\n",
                      "schedulerDocsResult, response, err := service.GetSchedulerDocs(getSchedulerDocsOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(schedulerDocsResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.GetSchedulerDocsOptions;\n",
                      "import com.ibm.cloud.cloudant.v1.model.SchedulerDocsResult;\n",
                      "\n",
                      "import java.util.Arrays;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "GetSchedulerDocsOptions schedulerDocsOptions = new GetSchedulerDocsOptions.Builder()\n",
                      "    .limit(100)\n",
                      "    .states(Arrays.asList(\"completed\"))\n",
                      "    .build();\n",
                      "\n",
                      "SchedulerDocsResult response =\n",
                      "    service.getSchedulerDocs(schedulerDocsOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.getSchedulerDocs({\n",
                      "  limit: 100,\n",
                      "  states: ['completed']\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "})\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.get_scheduler_docs(\n",
                      "  limit=100,\n",
                      "  states=['completed']\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/_scheduler/docs/_replicator/{doc_id}": {
      "get": {
        "description": "Retrieves information about a replication document from the replicator database. The endpoint returns the document ID, database, replication ID, source and target, and other information.",
        "operationId": "getSchedulerDocument",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/SchedulerDocument"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve a replication scheduler document",
        "tags": [
          "Replication"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.replication-scheduler.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.replication-scheduler.read"
            }
          ]
        },
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/_scheduler/docs/_replicator/repldoc-example\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "getSchedulerDocumentOptions := service.NewGetSchedulerDocumentOptions(\n",
                      "  \"repldoc-example\",\n",
                      ")\n",
                      "\n",
                      "schedulerDocument, response, err := service.GetSchedulerDocument(getSchedulerDocumentOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(schedulerDocument, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.GetSchedulerDocumentOptions;\n",
                      "import com.ibm.cloud.cloudant.v1.model.SchedulerDocument;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "GetSchedulerDocumentOptions schedulerDocumentOptions =\n",
                      "    new GetSchedulerDocumentOptions.Builder()\n",
                      "        .docId(\"repldoc-example\")\n",
                      "        .build();\n",
                      "\n",
                      "SchedulerDocument response =\n",
                      "    service.getSchedulerDocument(schedulerDocumentOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.getSchedulerDocument({\n",
                      "  docId: 'repldoc-example'\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.get_scheduler_document(doc_id='repldoc-example').get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "head": {
        "description": "Retrieves the HTTP headers containing minimal amount of information about the specified replication scheduler document.  Since the response body is empty, using the HEAD method is a lightweight way to check if the replication scheduler document exists or not.",
        "operationId": "headSchedulerDocument",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/SchedulerDocumentHead"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve HTTP headers for a replication scheduler document",
        "tags": [
          "Replication"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.replication-scheduler.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.replication-scheduler.read"
            }
          ]
        },
        "x-visible-environment": "default"
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDocId"
        }
      ]
    },
    "/_scheduler/jobs": {
      "get": {
        "description": "Retrieves information about replications that were created via `/_replicate` endpoint, as well as those created from replication documents. It doesn't include replications that completed or failed to start because replication documents were malformed. Each job description includes source and target information, replication ID, history of recent events, and other information.",
        "operationId": "getSchedulerJobs",
        "parameters": [
          {
            "$ref": "#/components/parameters/QuerySchedulerJobsLimit"
          },
          {
            "$ref": "#/components/parameters/QuerySkip"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/SchedulerJobsResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve replication scheduler jobs",
        "tags": [
          "Replication"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.replication-scheduler.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.replication-scheduler.read"
            }
          ]
        },
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/_scheduler/jobs?limit=100\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "getSchedulerJobsOptions := service.NewGetSchedulerJobsOptions()\n",
                      "getSchedulerJobsOptions.SetLimit(100)\n",
                      "\n",
                      "schedulerJobsResult, response, err := service.GetSchedulerJobs(getSchedulerJobsOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(schedulerJobsResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.GetSchedulerJobsOptions;\n",
                      "import com.ibm.cloud.cloudant.v1.model.SchedulerJobsResult;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "GetSchedulerJobsOptions schedulerJobsOptions =\n",
                      "    new GetSchedulerJobsOptions.Builder()\n",
                      "        .limit(100)\n",
                      "        .build();\n",
                      "\n",
                      "SchedulerJobsResult response =\n",
                      "    service.getSchedulerJobs(schedulerJobsOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.getSchedulerJobs({\n",
                      "  limit: 100\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.get_scheduler_jobs(\n",
                      "  limit=100\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/_scheduler/jobs/{job_id}": {
      "get": {
        "description": "Retrieves the state of a single replication task based on its replication ID",
        "operationId": "getSchedulerJob",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/SchedulerJob"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve a replication scheduler job",
        "tags": [
          "Replication"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.replication-scheduler.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.replication-scheduler.read"
            }
          ]
        },
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/_scheduler/jobs/7b94915cd8c4a0173c77c55cd0443939+continuous?limit=100\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "getSchedulerJobOptions := service.NewGetSchedulerJobOptions(\n",
                      "  \"7b94915cd8c4a0173c77c55cd0443939+continuous\",\n",
                      ")\n",
                      "\n",
                      "schedulerJob, response, err := service.GetSchedulerJob(getSchedulerJobOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(schedulerJob, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.GetSchedulerJobOptions;\n",
                      "import com.ibm.cloud.cloudant.v1.model.SchedulerJob;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "GetSchedulerJobOptions schedulerJobOptions =\n",
                      "    new GetSchedulerJobOptions.Builder()\n",
                      "        .jobId(\"7b94915cd8c4a0173c77c55cd0443939+continuous\")\n",
                      "        .build();\n",
                      "\n",
                      "SchedulerJob response =\n",
                      "    service.getSchedulerJob(schedulerJobOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.getSchedulerJob({\n",
                      "  jobId: '7b94915cd8c4a0173c77c55cd0443939+continuous'\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.get_scheduler_job(\n",
                      "  job_id='7b94915cd8c4a0173c77c55cd0443939+continuous'\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "head": {
        "description": "Returns the HTTP headers that contain a minimal amount of information about the specified replication task. Only the header information is returned.",
        "operationId": "headSchedulerJob",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/SchedulerJobHead"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve the HTTP headers for a replication scheduler job",
        "tags": [
          "Replication"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.replication-scheduler.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.replication-scheduler.read"
            }
          ]
        },
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" --head \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/_scheduler/jobs/7b94915cd8c4a0173c77c55cd0443939+continuous\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "headSchedulerJobOptions := service.NewHeadSchedulerJobOptions(\n",
                      "  \"7b94915cd8c4a0173c77c55cd0443939+continuous\",\n",
                      ")\n",
                      "\n",
                      "response, err := service.HeadSchedulerJob(headSchedulerJobOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "fmt.Println(response.StatusCode)\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.HeadSchedulerJobOptions;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "HeadSchedulerJobOptions schedulerJobOptions =\n",
                      "    new HeadSchedulerJobOptions.Builder()\n",
                      "        .jobId(\"7b94915cd8c4a0173c77c55cd0443939+continuous\")\n",
                      "        .build();\n",
                      "\n",
                      "int statusCode =\n",
                      "    service.headSchedulerJob(schedulerJobOptions).execute()\n",
                      "        .getStatusCode();\n",
                      "\n",
                      "System.out.println(statusCode);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.headSchedulerJob({\n",
                      "  jobId: '7b94915cd8c4a0173c77c55cd0443939+continuous'\n",
                      "}).then(response => {\n",
                      "  console.log(response.status);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.head_scheduler_job(\n",
                      "  job_id='7b94915cd8c4a0173c77c55cd0443939+continuous'\n",
                      ").get_result()\n",
                      "\n",
                      "print(response.get_status_code())\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/PathJobId"
        }
      ]
    },
    "/_search_analyze": {
      "get": {
        "description": "Returns the results of analyzer tokenization of the provided sample text. This endpoint can be used for testing analyzer tokenization.",
        "operationId": "getSearchAnalyze",
        "parameters": [
          {
            "$ref": "#/components/parameters/QuerySearchAnalyzer"
          },
          {
            "$ref": "#/components/parameters/QuerySearchAnalyzerText"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/SearchAnalyzeResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Query tokenization of sample text (GET)",
        "tags": [
          "Searches"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.account-search-analyze.execute"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.account-search-analyze.execute"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `global query` request.",
        "x-sdk-exclude": true,
        "x-visible-environment": "default"
      },
      "post": {
        "description": "Returns the results of analyzer tokenization of the provided sample text. This endpoint can be used for testing analyzer tokenization.",
        "operationId": "postSearchAnalyze",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/SearchAnalyzeQuery"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/SearchAnalyzeResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "413": {
            "$ref": "#/components/responses/Error413TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Query tokenization of sample text",
        "tags": [
          "Searches"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-codegen-request-body-name": "searchAnalyzerQuery",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.account-search-analyze.execute"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.account-search-analyze.execute"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `global query` request.",
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X POST \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/_search_analyze\" -H \"Content-Type: application/json\" --data '{\n",
                      "  \"analyzer\": \"english\",\n",
                      "  \"text\": \"running is fun\"\n",
                      "}'\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "postSearchAnalyzeOptions := service.NewPostSearchAnalyzeOptions(\n",
                      "  \"english\",\n",
                      "  \"running is fun\",\n",
                      ")\n",
                      "\n",
                      "searchAnalyzeResult, response, err := service.PostSearchAnalyze(postSearchAnalyzeOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(searchAnalyzeResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PostSearchAnalyzeOptions;\n",
                      "import com.ibm.cloud.cloudant.v1.model.SearchAnalyzeResult;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "PostSearchAnalyzeOptions searchAnalyzerOptions =\n",
                      "    new PostSearchAnalyzeOptions.Builder()\n",
                      "        .analyzer(\"english\")\n",
                      "        .text(\"running is fun\")\n",
                      "        .build();\n",
                      "\n",
                      "SearchAnalyzeResult response =\n",
                      "    service.postSearchAnalyze(searchAnalyzerOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.postSearchAnalyze({\n",
                      "  analyzer: 'english',\n",
                      "  text: 'running is fun',\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.post_search_analyze(\n",
                      "  analyzer='english',\n",
                      "  text='running is fun'\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/_session": {
      "delete": {
        "description": "Returns a response that instructs the HTTP client to clear the cookie. The session cookies are stateless and cannot be invalidated; hence, this operation is optional and does not invalidate the cookie on the server.",
        "operationId": "deleteSession",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/Ok"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Delete a session cookie",
        "tags": [
          "Authentication"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.session.delete"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.session.delete"
            }
          ]
        },
        "x-sdk-exclude": true,
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X DELETE \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/_session\"\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "For more details on Session Authentication, see [Authentication.](#authentication)"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "get": {
        "description": "Retrieves information about the authenticated user's session.",
        "operationId": "getSessionInformation",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/SessionInformation"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve current session cookie information",
        "tags": [
          "Authentication"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.session.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.session.read"
            }
          ]
        },
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/_session\"\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "For more details on Session Authentication, see [Authentication.](#authentication)"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "getSessionInformationOptions := service.NewGetSessionInformationOptions()\n",
                      "\n",
                      "sessionInformation, response, err := service.GetSessionInformation(getSessionInformationOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(sessionInformation, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "For more details on Session Authentication, see [Authentication.](#authentication)"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.SessionInformation;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "SessionInformation response =\n",
                      "    service.getSessionInformation().execute().getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "For more details on Session Authentication, see [Authentication.](#authentication)"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.getSessionInformation().then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "For more details on Session Authentication, see [Authentication.](#authentication)"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.get_session_information().get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "For more details on Session Authentication, see [Authentication.](#authentication)"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "post": {
        "description": "Response returns a cookie, generated by the server, that confirms you have successfully authenticated. Once the cookie is created, you send the cookie with all requests that require you to be authenticated. The presence of a valid cookie is sufficient to ensure that your call request is processed rather than rejected immediately as unauthenticated. You can use the cookie until it expires.",
        "operationId": "postSession",
        "parameters": [
          {
            "$ref": "#/components/parameters/QueryNext"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/SessionConfiguration"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/SessionResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400AuthHeaderInvalid"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "413": {
            "$ref": "#/components/responses/Error413TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "security": [],
        "summary": "Create a session cookie",
        "tags": [
          "Authentication"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-codegen-request-body-name": "sessionConfiguration",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.session.write"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.session.write"
            }
          ]
        },
        "x-sdk-exclude": true,
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -X POST \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/_session\" -H \"Content-Type: application/json\" --data '{\n",
                      "  \"username\": \"username\",\n",
                      "  \"password\": \"password\"\n",
                      "}'\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "For more details on Session Authentication, see [Authentication.](#authentication)"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/_up": {
      "get": {
        "description": "Confirms that the server is up, running, and ready to respond to\nrequests. If the cluster is unavailable the endpoint returns\na `503` response code.\n\n**Tip:**  The authentication for this endpoint is only enforced\nwhen using IAM.",
        "operationId": "getUpInformation",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/UpInformation"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve information about whether the server is up",
        "tags": [
          "Monitoring"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.account-up.read"
            }
          ]
        },
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/_up\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "getUpInformationOptions := service.NewGetUpInformationOptions()\n",
                      "\n",
                      "upInformation, response, err := service.GetUpInformation(getUpInformationOptions)\n",
                      "if err != nil {\n",
                      "  if response.GetStatusCode() == 503 {\t\n",
                      "    fmt.Println(\"Service is unavailable: Status code:\", response.GetStatusCode())\n",
                      "  } else {\n",
                      "    fmt.Println(\"Issue performing health check: Status code:\", response.GetStatusCode())\n",
                      "  }\n",
                      "  return\n",
                      "}\n",
                      "\n",
                      "fmt.Println(\"Service is up and healthy\")\n",
                      "b, _ := json.MarshalIndent(upInformation, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.UpInformation;\n",
                      "import com.ibm.cloud.sdk.core.http.Response;\n",
                      "import com.ibm.cloud.sdk.core.service.exception.ServiceResponseException;\n",
                      "import com.ibm.cloud.sdk.core.service.exception.ServiceUnavailableException;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "try {\n",
                      "    // Execute the health check\n",
                      "    Response<UpInformation> response = service.getUpInformation().execute();\n",
                      "    // Check the status code to determine service health\n",
                      "    System.out.println(\"Service is up and healthy\");\n",
                      "    System.out.println(response.getResult());\n",
                      "} catch (ServiceUnavailableException e) {\n",
                      "    System.out.println(\"Service unavailable:\" + \" \\\"\" + e.getMessage() + \"\\\" \" + \"Status code: \"\n",
                      "            + e.getStatusCode());\n",
                      "} catch (ServiceResponseException e) {\n",
                      "    System.out.println(\"Issue performing health check: \\\"\" + e.getMessage() + \"\\\" Status code: \"\n",
                      "            + e.getStatusCode());\n",
                      "}\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.getUpInformation().then(response => {\n",
                      "  console.log('Service is up and healthy');\n",
                      "  console.log(response.result);\n",
                      "})\n",
                      "  .catch(err => {\n",
                      "    if (err.code === 503) {\n",
                      "      console.error(`Service is unavailable, status code: ${err.code}, ${err.message}`);\n",
                      "    }\n",
                      "    else {\n",
                      "      console.error(`Issue checking service health, status: ${err.code}, ${err.message}`);\n",
                      "    }\n",
                      "  });\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "from ibm_cloud_sdk_core.api_exception import ApiException\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "try:\n",
                      "    response = service.get_up_information()\n",
                      "\n",
                      "    print(\"Service is up and healthy\")\n",
                      "    print(response.get_result())\n",
                      "except ApiException as ae:\n",
                      "    if ae.code == 503:\n",
                      "        print(f\"Service is unavailable, status code: {ae.code}\")\n",
                      "    else:\n",
                      "        print(f\"Issue performing health check, status code: {ae.code}, message: {ae.http_response.reason}\")\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "head": {
        "description": "Retrieves the HTTP headers about whether the server is up.",
        "operationId": "headUpInformation",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/UpInformationHead"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/UpInformationHead"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve HTTP headers about whether the server is up",
        "tags": [
          "Monitoring"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.account-up.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.account-up.read"
            }
          ]
        },
        "x-visible-environment": "default"
      }
    },
    "/_uuids": {
      "get": {
        "description": "Requests one or more Universally Unique Identifiers (UUIDs) from\nthe instance. The response is a JSON object that provides\na list of UUIDs.\n\n**Tip:**  The authentication for this endpoint is only enforced\nwhen using IAM.",
        "operationId": "getUuids",
        "parameters": [
          {
            "$ref": "#/components/parameters/QueryCount"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/UuidsResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400CountParameterTooLarge"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve one or more UUIDs",
        "tags": [
          "Server"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.cluster-uuids.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.cluster-uuids.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `read` request.",
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/_uuids?count=10\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "getUuidsOptions := service.NewGetUuidsOptions()\n",
                      "getUuidsOptions.SetCount(10)\n",
                      "\n",
                      "uuidsResult, response, err := service.GetUuids(getUuidsOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(uuidsResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.GetUuidsOptions;\n",
                      "import com.ibm.cloud.cloudant.v1.model.UuidsResult;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "GetUuidsOptions uuidsOptions = new GetUuidsOptions.Builder()\n",
                      "    .count(10)\n",
                      "    .build();\n",
                      "\n",
                      "UuidsResult response =\n",
                      "    service.getUuids(uuidsOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "const uuidsParams: CloudantV1.GetUuidsParams = {\n",
                      "  count: 10\n",
                      "};\n",
                      "\n",
                      "service.getUuids(uuidsParams).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.get_uuids(count=10).get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/{db}": {
      "delete": {
        "description": "Deletes the specified database and all documents and attachments contained within it. To avoid deleting a database, the server responds with a 400 HTTP status code when the request URL includes a `?rev=` parameter. This response suggests that a user wanted to delete a document but forgot to add the document ID to the URL.",
        "operationId": "deleteDatabase",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/Ok"
          },
          "202": {
            "$ref": "#/components/responses/Ok"
          },
          "400": {
            "$ref": "#/components/responses/Error400DatabaseDeletedWithRev"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Delete a database",
        "tags": [
          "Databases"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.database.delete"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.database.delete"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `write` request.",
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X DELETE \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/products\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "deleteDatabaseOptions := service.NewDeleteDatabaseOptions(\n",
                      "  \"products\",\n",
                      ")\n",
                      "\n",
                      "ok, response, err := service.DeleteDatabase(deleteDatabaseOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(ok, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.DeleteDatabaseOptions;\n",
                      "import com.ibm.cloud.cloudant.v1.model.Ok;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "DeleteDatabaseOptions databaseOptions =\n",
                      "    new DeleteDatabaseOptions.Builder()\n",
                      "        .db(\"products\")\n",
                      "        .build();\n",
                      "\n",
                      "Ok response =\n",
                      "    service.deleteDatabase(databaseOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.deleteDatabase({db: 'products'}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.delete_database(db='products').get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "get": {
        "description": "Retrieve detailed information about the database.",
        "operationId": "getDatabaseInformation",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/DatabaseInformation"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404DatabaseDoesNotExist"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve information about a database",
        "tags": [
          "Databases"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.database-info.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.database-info.read"
            }
          ]
        },
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/products\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "getDatabaseInformationOptions := service.NewGetDatabaseInformationOptions(\n",
                      "  \"products\",\n",
                      ")\n",
                      "\n",
                      "databaseInformation, response, err := service.GetDatabaseInformation(getDatabaseInformationOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(databaseInformation, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.DatabaseInformation;\n",
                      "import com.ibm.cloud.cloudant.v1.model.GetDatabaseInformationOptions;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "GetDatabaseInformationOptions databaseInfoOptions =\n",
                      "    new GetDatabaseInformationOptions.Builder()\n",
                      "        .db(\"products\")\n",
                      "        .build();\n",
                      "\n",
                      "DatabaseInformation response =\n",
                      "    service.getDatabaseInformation(databaseInfoOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.getDatabaseInformation({db: 'products'}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.get_database_information(db='products').get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "head": {
        "description": "Returns the HTTP headers that contain a minimal amount of information about the specified database. Since the response body is empty, using the HEAD method is a lightweight way to check if the database exists or not.",
        "operationId": "headDatabase",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/DatabaseInformationHead"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404DatabaseDoesNotExist"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve the HTTP headers for a database",
        "tags": [
          "Databases"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.database-info.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.database-info.read"
            }
          ]
        },
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" --head \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/products\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "headDatabaseOptions := service.NewHeadDatabaseOptions(\n",
                      "  \"products\",\n",
                      ")\n",
                      "\n",
                      "response, err := service.HeadDatabase(headDatabaseOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "fmt.Println(response.StatusCode)\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.HeadDatabaseOptions;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "HeadDatabaseOptions databaseOptions =\n",
                      "    new HeadDatabaseOptions.Builder()\n",
                      "        .db(\"products\")\n",
                      "        .build();\n",
                      "\n",
                      "int statusCode =\n",
                      "    service.headDatabase(databaseOptions).execute().getStatusCode();\n",
                      "\n",
                      "System.out.println(statusCode);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.headDatabase({db: 'products'}).then(response => {\n",
                      "  console.log(response.status);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.head_database(db='products')\n",
                      "print(response.get_status_code())\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        }
      ],
      "post": {
        "description": "Creates or modifies a document in the specified database by using the\nsupplied JSON document.\n\nFor creation, you may specify the document ID but you should not\nspecify the revision. If you don't specify the document ID, then the\nserver generates an ID for your document.\n\nFor modification, you must specify the document ID and a revision\nidentifier in the JSON document.\n\nIf your document ID includes the `_local/` or `_design/` prefix, then\nthis operation creates or modifies a local or a design document\nrespectively.\n",
        "operationId": "postDocument",
        "parameters": [
          {
            "$ref": "#/components/parameters/QueryBatch"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Document"
        },
        "responses": {
          "201": {
            "$ref": "#/components/responses/DocumentResult"
          },
          "202": {
            "$ref": "#/components/responses/DocumentResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401WriterOrCreatorPrivilegesRequired"
          },
          "402": {
            "$ref": "#/components/responses/Error402OverDataQuota"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "409": {
            "$ref": "#/components/responses/Error409DocumentConflict"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "413": {
            "$ref": "#/components/responses/Error413DocumentTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          },
          "507": {
            "$ref": "#/components/responses/Error507InsufficientStorage"
          }
        },
        "summary": "Create or modify a document in a database",
        "tags": [
          "Documents"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-codegen-request-body-name": "document",
        "x-content-type-default": "application/json",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.data-document.write"
            },
            {
              "name": "cloudantnosqldb.design-document.write"
            },
            {
              "name": "cloudantnosqldb.local-document.write"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.data-document.write"
            },
            {
              "name": "cloudantnosqldb.design-document.write"
            },
            {
              "name": "cloudantnosqldb.local-document.write"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `write` request.",
        "x-sdk-stream-request": true,
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X POST \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/products\" -H \"Content-Type: application/json\" --data '{\n",
                      "  \"_id\": \"small-appliances:1000042\",\n",
                      "  \"type\": \"product\",\n",
                      "  \"productId\": \"1000042\",\n",
                      "  \"brand\": \"Salter\",\n",
                      "  \"name\": \"Digital Kitchen Scales\",\n",
                      "  \"description\": \"Slim Colourful Design Electronic Cooking Appliance for Home / Kitchen, Weigh up to 5kg + Aquatronic for Liquids ml + fl. oz. 15Yr Guarantee - Green\",\n",
                      "  \"price: 14.99,\n",
                      "  \"image\": \"assets/img/0gmsnghhew.jpg\"\n",
                      "}'\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      "  \"github.com/IBM/go-sdk-core/v5/core\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "productsDoc := cloudantv1.Document{\n",
                      "  ID: core.StringPtr(\"1000042\"),\n",
                      "}\n",
                      "productsDoc.SetProperty(\"type\", \"product\")\n",
                      "productsDoc.SetProperty(\"productId\", \"1000042\")\n",
                      "productsDoc.SetProperty(\"brand\", \"Salter\")\n",
                      "productsDoc.SetProperty(\"name\", \"Digital Kitchen Scales\")\n",
                      "productsDoc.SetProperty(\"description\", \"Slim Colourful Design Electronic Cooking Appliance for Home / Kitchen, Weigh up to 5kg + Aquatronic for Liquids ml + fl. oz. 15Yr Guarantee - Green\")\n",
                      "productsDoc.SetProperty(\"price\", 14.99)\n",
                      "productsDoc.SetProperty(\"image\", \"assets/img/0gmsnghhew.jpg\")\n",
                      "\n",
                      "postDocumentOptions := service.NewPostDocumentOptions(\n",
                      "  \"products\",\n",
                      ")\n",
                      "postDocumentOptions.SetDocument(&productsDoc)\n",
                      "\n",
                      "documentResult, response, err := service.PostDocument(postDocumentOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(documentResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              },
              {
                "name": "Example request as a stream",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "  \"os\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      "  \"github.com/IBM/go-sdk-core/v5/core\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "productsDocReader, err := os.Open(\"products_doc.json\")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "defer productsDocReader.Close()\n",
                      "\n",
                      "postDocumentOptions := service.NewPostDocumentOptions(\n",
                      "  \"products\",\n",
                      ")\n",
                      "postDocumentOptions.SetContentType(\"application/json\")\n",
                      "postDocumentOptions.SetBody(productsDocReader)\n",
                      "\n",
                      "documentResult, response, err := service.PostDocument(postDocumentOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(documentResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.Document;\n",
                      "import com.ibm.cloud.cloudant.v1.model.DocumentResult;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PostDocumentOptions;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "Document productsDocument = new Document();\n",
                      "productsDocument.setId(\"1000042\");\n",
                      "productsDocument.put(\"type\", \"product\");\n",
                      "productsDocument.put(\"productId\", \"1000042\");\n",
                      "productsDocument.put(\"brand\", \"Salter\");\n",
                      "productsDocument.put(\"name\", \"Digital Kitchen Scales\");\n",
                      "productsDocument.put(\"description\", \"Slim Colourful Design Electronic\"\n",
                      "    + \"Cooking Appliance for Home / Kitchen, Weigh up to 5kg + Aquatronic\"\n",
                      "    + \"for Liquids ml + fl. oz. 15Yr Guarantee - Green\");\n",
                      "productsDocument.put(\"price\", 14.99);\n",
                      "productsDocument.put(\"image\", \"assets/img/0gmsnghhew.jpg\");\n",
                      "\n",
                      "PostDocumentOptions documentOptions =\n",
                      "    new PostDocumentOptions.Builder()\n",
                      "        .db(\"products\")\n",
                      "        .document(productsDocument)\n",
                      "        .build();\n",
                      "\n",
                      "DocumentResult response =\n",
                      "    service.postDocument(documentOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              },
              {
                "name": "Example request as a stream",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import java.io.FileInputStream;\n",
                      "\n",
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.Document;\n",
                      "import com.ibm.cloud.cloudant.v1.model.DocumentResult;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PostDocumentOptions;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "try (FileInputStream productsDocumentStream = new FileInputStream(\"products_doc.json\")) {\n",
                      "    PostDocumentOptions documentOptions =\n",
                      "        new PostDocumentOptions.Builder()\n",
                      "            .db(\"products\")\n",
                      "            .contentType(\"application/json\")\n",
                      "            .body(productsDocumentStream)\n",
                      "            .build();\n",
                      "\n",
                      "    DocumentResult response =\n",
                      "        service.postDocument(documentOptions).execute()\n",
                      "            .getResult();\n",
                      "\n",
                      "    System.out.println(response);\n",
                      "}\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "const productsDoc: CloudantV1.Document = {\n",
                      "  _id: '1000042',\n",
                      "  type: 'product',\n",
                      "  productId: '1000042',\n",
                      "  brand: 'Salter',\n",
                      "  name: 'Digital Kitchen Scales',\n",
                      "  description: 'Slim Colourful Design Electronic Cooking Appliance for Home / Kitchen, Weigh up to 5kg + Aquatronic for Liquids ml + fl. oz. 15Yr Guarantee - Green',\n",
                      "  price: 14.99,\n",
                      "  image: 'assets/img/0gmsnghhew.jpg'\n",
                      "};\n",
                      "\n",
                      "service.postDocument({\n",
                      "  db: 'products',\n",
                      "  document: productsDoc\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              },
              {
                "name": "Example request as a stream",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "import { createReadStream } from 'node:fs'\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "const productsDocStream = createReadStream('products_doc.json')\n",
                      "\n",
                      "service.postDocument({\n",
                      "  db: 'products',\n",
                      "  contentType: 'application/json',\n",
                      "  document: productsDocStream\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import Document, CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "products_doc = Document(\n",
                      "  _id=\"1000042\",\n",
                      "  type=\"product\",\n",
                      "  productId=\"1000042\",\n",
                      "  brand=\"Salter\",\n",
                      "  name=\"Digital Kitchen Scales\",\n",
                      "  description=\"Slim Colourful Design Electronic Cooking Appliance for Home / Kitchen, Weigh up to 5kg + Aquatronic for Liquids ml + fl. oz. 15Yr Guarantee - Green\",\n",
                      "  price=14.99,\n",
                      "  image=\"assets/img/0gmsnghhew.jpg\")\n",
                      "\n",
                      "response = service.post_document(db='products', document=products_doc).get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              },
              {
                "name": "Example request as a stream",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import Document, CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "with open(\"products_doc.json\", \"rb\") as products_doc:\n",
                      "  response = service.post_document(\n",
                      "      db='products',\n",
                      "      document=products_doc,\n",
                      "      content_type=\"application/json\"\n",
                      "  ).get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "put": {
        "description": "Create a new database with the requested properties.",
        "operationId": "putDatabase",
        "parameters": [
          {
            "$ref": "#/components/parameters/QueryPartitioned"
          },
          {
            "$ref": "#/components/parameters/QueryN"
          },
          {
            "$ref": "#/components/parameters/QueryQ"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "201": {
            "$ref": "#/components/responses/DatabaseResult"
          },
          "202": {
            "$ref": "#/components/responses/DatabaseResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400InvalidDatabaseName"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "412": {
            "$ref": "#/components/responses/Error412DatabaseAlreadyExists"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Create a database",
        "tags": [
          "Databases"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.database.create"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.database.create"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `write` request.",
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X PUT \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/products\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "putDatabaseOptions := service.NewPutDatabaseOptions(\n",
                      "  \"events\",\n",
                      ")\n",
                      "putDatabaseOptions.SetPartitioned(true)\n",
                      "\n",
                      "ok, response, err := service.PutDatabase(putDatabaseOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(ok, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.Ok;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PutDatabaseOptions;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "PutDatabaseOptions databaseOptions = new PutDatabaseOptions.Builder()\n",
                      "    .db(\"events\")\n",
                      "    .partitioned(true)\n",
                      "    .build();\n",
                      "\n",
                      "Ok response =\n",
                      "    service.putDatabase(databaseOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.putDatabase({\n",
                      "  db: 'events',\n",
                      "  partitioned: true\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.put_database(db='events', partitioned=True).get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/{db}/_all_docs": {
      "get": {
        "description": "Queries the primary index (all document IDs). The results that match the query parameters are returned in a JSON object, including a list of matching documents with basic contents, such as the ID and revision. When no query parameters are specified, results for all documents in the database are returned. Optionally, document content or additional metadata can be included in the response.",
        "operationId": "getAllDocs",
        "parameters": [
          {
            "$ref": "#/components/parameters/QueryConflicts"
          },
          {
            "$ref": "#/components/parameters/QueryDescending"
          },
          {
            "$ref": "#/components/parameters/QueryEndKey"
          },
          {
            "$ref": "#/components/parameters/QueryEndKeyDocId"
          },
          {
            "$ref": "#/components/parameters/QueryIncludeDocs"
          },
          {
            "$ref": "#/components/parameters/QueryInclusiveEnd"
          },
          {
            "$ref": "#/components/parameters/QueryKey"
          },
          {
            "$ref": "#/components/parameters/QueryKeys"
          },
          {
            "$ref": "#/components/parameters/QueryLimit"
          },
          {
            "$ref": "#/components/parameters/QuerySkip"
          },
          {
            "$ref": "#/components/parameters/QueryStartKey"
          },
          {
            "$ref": "#/components/parameters/QueryStartKeyDocId"
          },
          {
            "$ref": "#/components/parameters/QueryUpdateSeq"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/AllDocsResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Query a list of all documents in a database (GET)",
        "tags": [
          "Documents"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `global query` request.",
        "x-sdk-exclude": true,
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/orders/_all_docs\"\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        }
      ],
      "post": {
        "description": "Queries the primary index (all document IDs). The results that match the request body parameters are returned in a JSON object, including a list of matching documents with basic contents, such as the ID and revision. When no request body parameters are specified, results for all documents in the database are returned. Optionally, document content or additional metadata can be included in the response.",
        "operationId": "postAllDocs",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/AllDocsQuery"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/AllDocsResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "413": {
            "$ref": "#/components/responses/Error413TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Query a list of all documents in a database",
        "tags": [
          "Documents"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-codegen-request-body-name": "allDocsQuery",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `global query` request.",
        "x-sdk-stream-response": true,
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X POST \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/orders/_all_docs\" -H \"Content-Type: application/json\" --data '{\n",
                      "  \"include_docs\": true,\n",
                      "  \"startkey\": \"abc\",\n",
                      "  \"limit\": 10\n",
                      "}'\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "postAllDocsOptions := service.NewPostAllDocsOptions(\n",
                      "  \"orders\",\n",
                      ")\n",
                      "postAllDocsOptions.SetIncludeDocs(true)\n",
                      "postAllDocsOptions.SetStartKey(\"abc\")\n",
                      "postAllDocsOptions.SetLimit(10)\n",
                      "\n",
                      "allDocsResult, response, err := service.PostAllDocs(postAllDocsOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(allDocsResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              },
              {
                "name": "Example request as a stream",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "  \"io\"\n",
                      "  \"os\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "postAllDocsOptions := service.NewPostAllDocsOptions(\n",
                      "  \"orders\",\n",
                      ")\n",
                      "postAllDocsOptions.SetIncludeDocs(true)\n",
                      "postAllDocsOptions.SetStartKey(\"abc\")\n",
                      "postAllDocsOptions.SetLimit(10)\n",
                      "\n",
                      "allDocsResult, response, err := service.PostAllDocsAsStream(postAllDocsOptions)\n",
                      "if err != nil {\n",
                      "    panic(err)\n",
                      "}\n",
                      "\n",
                      "if allDocsResult != nil {\n",
                      "  defer allDocsResult.Close()\n",
                      "  outFile, err := os.Create(\"result.json\")\n",
                      "  if err != nil {\n",
                      "    panic(err)\n",
                      "  }\n",
                      "  defer outFile.Close()\n",
                      "  if _, err = io.Copy(outFile, allDocsResult); err != nil {\n",
                      "    panic(err)\n",
                      "  }\n",
                      "}\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.AllDocsResult;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PostAllDocsOptions;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "PostAllDocsOptions docsOptions =\n",
                      "    new PostAllDocsOptions.Builder()\n",
                      "        .db(\"orders\")\n",
                      "        .includeDocs(true)\n",
                      "        .startKey(\"abc\")\n",
                      "        .limit(10)\n",
                      "        .build();\n",
                      "\n",
                      "AllDocsResult response =\n",
                      "    service.postAllDocs(docsOptions).execute().getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              },
              {
                "name": "Example request as a stream",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PostAllDocsOptions;\n",
                      "\n",
                      "import java.io.InputStream;\n",
                      "import java.io.File;\n",
                      "import java.nio.file.StandardCopyOption;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "PostAllDocsOptions docsOptions =\n",
                      "    new PostAllDocsOptions.Builder()\n",
                      "        .db(\"orders\")\n",
                      "        .includeDocs(true)\n",
                      "        .startKey(\"abc\")\n",
                      "        .limit(10)\n",
                      "        .build();\n",
                      "\n",
                      "File file = new File(\"result.json\");\n",
                      "\n",
                      "try (InputStream response =\n",
                      "        service.postAllDocsAsStream(docsOptions).execute()\n",
                      "            .getResult()) {\n",
                      "    java.nio.file.Files.copy(\n",
                      "        response,\n",
                      "        file.toPath(),\n",
                      "        StandardCopyOption.REPLACE_EXISTING);\n",
                      "}\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.postAllDocs({\n",
                      "  db: 'orders',\n",
                      "  includeDocs: true,\n",
                      "  startKey: 'abc',\n",
                      "  limit: 10\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              },
              {
                "name": "Example request as a stream",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "import { createWriteStream } from 'node:fs'\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.postAllDocsAsStream({\n",
                      "  db: 'orders',\n",
                      "  includeDocs: true,\n",
                      "  startKey: 'abc',\n",
                      "  limit: 10\n",
                      "}).then(response => {\n",
                      "  const stream = createWriteStream(\"result.json\");\n",
                      "  response.result.pipe(stream);\n",
                      "  response.result.on('end', () => stream.end());\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.post_all_docs(\n",
                      "  db='orders',\n",
                      "  include_docs=True,\n",
                      "  start_key='abc',\n",
                      "  limit=10\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              },
              {
                "name": "Example request as a stream",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "result = service.post_all_docs_as_stream(\n",
                      "  db='orders',\n",
                      "  include_docs=True,\n",
                      "  start_key='abc',\n",
                      "  limit=10\n",
                      ").get_result()\n",
                      "\n",
                      "with open('result.json', 'wb') as f:\n",
                      "  for chunk in result.iter_content():\n",
                      "    f.write(chunk)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/{db}/_all_docs/queries": {
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        }
      ],
      "post": {
        "description": "Runs multiple queries using the primary index (all document IDs). Returns a JSON object that contains a list of result objects, one for each query, with a structure equivalent to that of a single `_all_docs` request. This enables you to request multiple queries in a single request, in place of multiple `POST /{db}/_all_docs` requests.",
        "operationId": "postAllDocsQueries",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/AllDocsQueriesQuery"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/AllDocsQueriesResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "413": {
            "$ref": "#/components/responses/Error413TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Multi-query the list of all documents in a database",
        "tags": [
          "Documents"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-codegen-request-body-name": "allDocsQueriesQuery",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `global query` per query in the request.",
        "x-sdk-stream-response": true,
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X POST \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/products/_all_docs/queries\" -H \"Content-Type: application/json\" --data '{\n",
                      "  \"queries\": [\n",
                      "    {\n",
                      "      \"keys\": [\n",
                      "        \"small-appliances:1000042\",\n",
                      "        \"small-appliances:1000043\"\n",
                      "      ]\n",
                      "    },\n",
                      "    {\n",
                      "      \"limit\": 3,\n",
                      "      \"skip\": 2\n",
                      "    }\n",
                      "  ]\n",
                      "}'\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      "  \"github.com/IBM/go-sdk-core/v5/core\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "allDocsQueries := []cloudantv1.AllDocsQuery{\n",
                      "  {\n",
                      "    Keys: []string{\n",
                      "      \"1000042\",\n",
                      "      \"1000043\",\n",
                      "    },\n",
                      "  },\n",
                      "  {\n",
                      "    Limit: core.Int64Ptr(3),\n",
                      "    Skip:  core.Int64Ptr(2),\n",
                      "  },\n",
                      "}\n",
                      "postAllDocsQueriesOptions := service.NewPostAllDocsQueriesOptions(\n",
                      "  \"products\",\n",
                      "  allDocsQueries,\n",
                      ")\n",
                      "\n",
                      "allDocsQueriesResult, response, err := service.PostAllDocsQueries(postAllDocsQueriesOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(allDocsQueriesResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.AllDocsQuery;\n",
                      "import com.ibm.cloud.cloudant.v1.model.AllDocsQueriesResult;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PostAllDocsQueriesOptions;\n",
                      "\n",
                      "import java.util.Arrays;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "AllDocsQuery query1 = new AllDocsQuery.Builder()\n",
                      "    .keys(Arrays.asList(\"1000042\",\n",
                      "        \"1000043\"))\n",
                      "    .build();\n",
                      "\n",
                      "AllDocsQuery query2 = new AllDocsQuery.Builder()\n",
                      "    .limit(3)\n",
                      "    .skip(2)\n",
                      "    .build();\n",
                      "\n",
                      "PostAllDocsQueriesOptions queriesOptions =\n",
                      "    new PostAllDocsQueriesOptions.Builder()\n",
                      "        .queries(Arrays.asList(query1, query2))\n",
                      "        .db(\"products\")\n",
                      "        .build();\n",
                      "\n",
                      "AllDocsQueriesResult response =\n",
                      "    service.postAllDocsQueries(queriesOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "const allDocsQueries: CloudantV1.AllDocsQuery[] = [{\n",
                      "    keys: ['1000042', '1000043'],\n",
                      "  },\n",
                      "  {\n",
                      "    limit: 3,\n",
                      "    skip: 2\n",
                      "}];\n",
                      "\n",
                      "service.postAllDocsQueries({\n",
                      "  db: 'products',\n",
                      "  queries: allDocsQueries\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import AllDocsQuery, CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "all_docs_query1 = AllDocsQuery(\n",
                      "  keys=['1000042', '1000043']\n",
                      ")\n",
                      "\n",
                      "all_docs_query2 = AllDocsQuery(\n",
                      "  limit=3,\n",
                      "  skip=2\n",
                      ")\n",
                      "\n",
                      "response = service.post_all_docs_queries(\n",
                      "  db='products',\n",
                      "  queries=[all_docs_query1, all_docs_query2]\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/{db}/_bulk_docs": {
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        }
      ],
      "post": {
        "description": "The bulk document API allows you to create, update, and delete multiple documents at the same time within a single request. The basic operation is similar to creating, updating, or deleting a single document, except that you batch the document structure and information.",
        "operationId": "postBulkDocs",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/BulkDocs"
        },
        "responses": {
          "201": {
            "$ref": "#/components/responses/BulkDocsResult"
          },
          "202": {
            "$ref": "#/components/responses/BulkDocsResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "413": {
            "$ref": "#/components/responses/Error413TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          },
          "507": {
            "$ref": "#/components/responses/Error507InsufficientStorage"
          }
        },
        "summary": "Bulk modify multiple documents in a database",
        "tags": [
          "Documents"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-codegen-request-body-name": "bulkDocs",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.data-document.write"
            },
            {
              "name": "cloudantnosqldb.design-document.write"
            },
            {
              "name": "cloudantnosqldb.local-document.write"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.data-document.write"
            },
            {
              "name": "cloudantnosqldb.design-document.write"
            },
            {
              "name": "cloudantnosqldb.local-document.write"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `write` request per document revision.",
        "x-sdk-stream-request": true,
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request: create documents",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X POST \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/events/_bulk_docs\" -H \"Content-Type: application/json\" --data '{\n",
                      "  \"docs\": [\n",
                      "    {\n",
                      "      \"_id\": \"0007241142412418284\",\n",
                      "      \"type\": \"event\",\n",
                      "      \"userid\": \"abc123\",\n",
                      "      \"eventType\": \"addedToBasket\",\n",
                      "      \"productId\": \"1000042\",\n",
                      "      \"date\": \"2019-01-28T10:44:22.000Z\"\n",
                      "    },\n",
                      "    {\n",
                      "      \"_id\": \"0008001142412418285\",\n",
                      "      \"type\": \"event\",\n",
                      "      \"userid\": \"def456\",\n",
                      "      \"eventType\": \"addedToBasket\",\n",
                      "      \"productId\": \"1000043\",\n",
                      "      \"date\": \"2019-01-28T12:30:00.000Z\"\n",
                      "    }\n",
                      "  ]\n",
                      "}'\n"
                    ]
                  }
                ]
              },
              {
                "name": "Example request: delete documents",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X POST \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/events/_bulk_docs\" -H \"Content-Type: application/json\" --data '{\n",
                      "  \"docs\": [\n",
                      "    {\n",
                      "      \"_id\": \"0007241142412418284\",\n",
                      "      \"_rev\": \"1-00000000000000000000000000000000\",\n",
                      "      \"_deleted\": true\n",
                      "    },\n",
                      "    {\n",
                      "      \"_id\": \"0007241142412418285\",\n",
                      "      \"_rev\": \"1-00000000000000000000000000000000\",\n",
                      "      \"_deleted\": true\n",
                      "    }\n",
                      "  ]\n",
                      "}'\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request: create documents",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      "  \"github.com/IBM/go-sdk-core/v5/core\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "eventDoc1 := cloudantv1.Document{\n",
                      "  ID: core.StringPtr(\"ns1HJS13AMkK:0007241142412418284\"),\n",
                      "}\n",
                      "eventDoc1.SetProperty(\"type\", \"event\")\n",
                      "eventDoc1.SetProperty(\"userId\", \"abc123\")\n",
                      "eventDoc1.SetProperty(\"eventType\", \"addedToBasket\")\n",
                      "eventDoc1.SetProperty(\"productId\", \"1000042\")\n",
                      "eventDoc1.SetProperty(\"date\", \"2019-01-28T10:44:22.000Z\")\n",
                      "\n",
                      "eventDoc2 := cloudantv1.Document{\n",
                      "  ID: core.StringPtr(\"H8tDIwfadxp9:0007241142412418285\"),\n",
                      "}\n",
                      "eventDoc2.SetProperty(\"type\", \"event\")\n",
                      "eventDoc2.SetProperty(\"userId\", \"abc234\")\n",
                      "eventDoc2.SetProperty(\"eventType\", \"addedToBasket\")\n",
                      "eventDoc2.SetProperty(\"productId\", \"1000050\")\n",
                      "eventDoc2.SetProperty(\"date\", \"2019-01-25T20:00:00.000Z\")\n",
                      "\n",
                      "postBulkDocsOptions := service.NewPostBulkDocsOptions(\n",
                      "  \"events\",\n",
                      ")\n",
                      "bulkDocs, err := service.NewBulkDocs(\n",
                      "  []cloudantv1.Document{\n",
                      "    eventDoc1,\n",
                      "    eventDoc2,\n",
                      "  },\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "postBulkDocsOptions.SetBulkDocs(bulkDocs)\n",
                      "\n",
                      "documentResult, response, err := service.PostBulkDocs(postBulkDocsOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(documentResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              },
              {
                "name": "Example request: delete documents",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      "  \"github.com/IBM/go-sdk-core/v5/core\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "eventDoc1 := cloudantv1.Document{\n",
                      "  ID: core.StringPtr(\"ns1HJS13AMkK:0007241142412418284\"),\n",
                      "}\n",
                      "eventDoc1.Rev = core.StringPtr(\"1-00000000000000000000000000000000\")\n",
                      "eventDoc1.Deleted = core.BoolPtr(true)\n",
                      "\n",
                      "eventDoc2 := cloudantv1.Document{\n",
                      "  ID: core.StringPtr(\"H8tDIwfadxp9:0007241142412418285\"),\n",
                      "}\n",
                      "eventDoc2.Rev = core.StringPtr(\"1-00000000000000000000000000000000\")\n",
                      "eventDoc2.Deleted = core.BoolPtr(true)\n",
                      "\n",
                      "postBulkDocsOptions := service.NewPostBulkDocsOptions(\n",
                      "  \"events\",\n",
                      ")\n",
                      "bulkDocs, err := service.NewBulkDocs(\n",
                      "  []cloudantv1.Document{\n",
                      "    eventDoc1,\n",
                      "    eventDoc2,\n",
                      "  },\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "postBulkDocsOptions.SetBulkDocs(bulkDocs)\n",
                      "\n",
                      "documentResult, response, err := service.PostBulkDocs(postBulkDocsOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(documentResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              },
              {
                "name": "Example request as a stream",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "  \"os\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "file, err := os.Open(\"upload.json\")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "postBulkDocsOptions := service.NewPostBulkDocsOptions(\n",
                      "  \"events\",\n",
                      ")\n",
                      "\n",
                      "postBulkDocsOptions.SetBody(file)\n",
                      "\n",
                      "documentResult, response, err := service.PostBulkDocs(postBulkDocsOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(documentResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "Content of upload.json"
                    ]
                  },
                  {
                    "type": "code",
                    "source": [
                      "{\n",
                      "  \"docs\": [\n",
                      "    {\n",
                      "      \"_id\": \"ns1HJS13AMkK:0007241142412418284\",\n",
                      "      \"type\": \"event\",\n",
                      "      \"userId\": \"abc123\",\n",
                      "      \"eventType\": \"addedToBasket\",\n",
                      "      \"productId\": \"1000042\",\n",
                      "      \"date\": \"2019-01-28T10:44:22.000Z\"\n",
                      "    },\n",
                      "    {\n",
                      "      \"_id\": \"H8tDIwfadxp9:0007241142412418285\",\n",
                      "      \"type\": \"event\",\n",
                      "      \"userId\": \"abc234\",\n",
                      "      \"eventType\": \"addedToBasket\",\n",
                      "      \"productId\": \"1000050\",\n",
                      "      \"date\": \"2019-01-25T20:00:00.000Z\"\n",
                      "    }\n",
                      "  ]\n",
                      "}\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request: create documents",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.BulkDocs;\n",
                      "import com.ibm.cloud.cloudant.v1.model.Document;\n",
                      "import com.ibm.cloud.cloudant.v1.model.DocumentResult;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PostBulkDocsOptions;\n",
                      "\n",
                      "import java.util.Arrays;\n",
                      "import java.util.List;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "Document eventDoc1 = new Document();\n",
                      "eventDoc1.setId(\"ns1HJS13AMkK:0007241142412418284\");\n",
                      "eventDoc1.put(\"type\", \"event\");\n",
                      "eventDoc1.put(\"userId\", \"abc123\");\n",
                      "eventDoc1.put(\"eventType\", \"addedToBasket\");\n",
                      "eventDoc1.put(\"productId\", \"1000042\");\n",
                      "eventDoc1.put(\"date\", \"2019-01-28T10:44:22.000Z\");\n",
                      "\n",
                      "Document eventDoc2 = new Document();\n",
                      "eventDoc2.setId(\"H8tDIwfadxp9:0007241142412418285\");\n",
                      "eventDoc2.put(\"type\", \"event\");\n",
                      "eventDoc2.put(\"userId\", \"abc234\");\n",
                      "eventDoc2.put(\"eventType\", \"addedToBasket\");\n",
                      "eventDoc2.put(\"productId\", \"1000050\");\n",
                      "eventDoc2.put(\"date\", \"2019-01-28T10:44:22.000Z\");\n",
                      "\n",
                      "BulkDocs bulkDocs = new BulkDocs.Builder()\n",
                      "    .docs(Arrays.asList(eventDoc1, eventDoc2))\n",
                      "    .build();\n",
                      "\n",
                      "PostBulkDocsOptions bulkDocsOptions = new PostBulkDocsOptions.Builder()\n",
                      "    .db(\"events\")\n",
                      "    .bulkDocs(bulkDocs)\n",
                      "    .build();\n",
                      "\n",
                      "List<DocumentResult> response =\n",
                      "    service.postBulkDocs(bulkDocsOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              },
              {
                "name": "Example request: delete documents",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.BulkDocs;\n",
                      "import com.ibm.cloud.cloudant.v1.model.Document;\n",
                      "import com.ibm.cloud.cloudant.v1.model.DocumentResult;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PostBulkDocsOptions;\n",
                      "\n",
                      "import java.util.Arrays;\n",
                      "import java.util.List;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "Document eventDoc1 = new Document();\n",
                      "eventDoc1.setId(\"ns1HJS13AMkK:0007241142412418284\");\n",
                      "eventDoc1.setRev(\"1-00000000000000000000000000000000\");\n",
                      "eventDoc1.setDeleted(true);\n",
                      "\n",
                      "Document eventDoc2 = new Document();\n",
                      "eventDoc2.setId(\"H8tDIwfadxp9:0007241142412418285\");\n",
                      "eventDoc1.setRev(\"1-00000000000000000000000000000000\");\n",
                      "eventDoc1.setDeleted(true);\n",
                      "\n",
                      "BulkDocs bulkDocs = new BulkDocs.Builder()\n",
                      "    .docs(Arrays.asList(eventDoc1, eventDoc2))\n",
                      "    .build();\n",
                      "\n",
                      "PostBulkDocsOptions bulkDocsOptions = new PostBulkDocsOptions.Builder()\n",
                      "    .db(\"events\")\n",
                      "    .bulkDocs(bulkDocs)\n",
                      "    .build();\n",
                      "\n",
                      "List<DocumentResult> response =\n",
                      "    service.postBulkDocs(bulkDocsOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              },
              {
                "name": "Example request as a stream",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.DocumentResult;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PostBulkDocsOptions;\n",
                      "\n",
                      "import java.util.List;\n",
                      "import java.io.File;\n",
                      "import java.io.FileInputStream;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "File file = new File(\"upload.json\");\n",
                      "FileInputStream inputStream = new FileInputStream(file);\n",
                      "\n",
                      "PostBulkDocsOptions bulkDocsOptions = new PostBulkDocsOptions.Builder()\n",
                      "    .db(\"events\")\n",
                      "    .body(inputStream)\n",
                      "    .build();\n",
                      "\n",
                      "List<DocumentResult> response =\n",
                      "    service.postBulkDocs(bulkDocsOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "Content of upload.json"
                    ]
                  },
                  {
                    "type": "code",
                    "source": [
                      "{\n",
                      "  \"docs\": [\n",
                      "    {\n",
                      "      \"_id\": \"ns1HJS13AMkK:0007241142412418284\",\n",
                      "      \"type\": \"event\",\n",
                      "      \"userId\": \"abc123\",\n",
                      "      \"eventType\": \"addedToBasket\",\n",
                      "      \"productId\": \"1000042\",\n",
                      "      \"date\": \"2019-01-28T10:44:22.000Z\"\n",
                      "    },\n",
                      "    {\n",
                      "      \"_id\": \"H8tDIwfadxp9:0007241142412418285\",\n",
                      "      \"type\": \"event\",\n",
                      "      \"userId\": \"abc234\",\n",
                      "      \"eventType\": \"addedToBasket\",\n",
                      "      \"productId\": \"1000050\",\n",
                      "      \"date\": \"2019-01-25T20:00:00.000Z\"\n",
                      "    }\n",
                      "  ]\n",
                      "}\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request: create documents",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "const eventDoc1: CloudantV1.Document = {\n",
                      "  _id: 'ns1HJS13AMkK:0007241142412418284',\n",
                      "  type: 'event',\n",
                      "  userId: 'abc123',\n",
                      "  eventType:'addedToBasket',\n",
                      "  productId: '1000042',\n",
                      "  date: '2019-01-28T10:44:22.000Z'\n",
                      "}\n",
                      "const eventDoc2: CloudantV1.Document = {\n",
                      "  _id: 'H8tDIwfadxp9:0007241142412418285',\n",
                      "  type: 'event',\n",
                      "  userId: 'abc234',\n",
                      "  eventType: 'addedToBasket',\n",
                      "  productId: '1000050',\n",
                      "  date: '2019-01-25T20:00:00.000Z'\n",
                      "}\n",
                      "\n",
                      "const bulkDocs: CloudantV1.BulkDocs = {  docs: [eventDoc1, eventDoc2]\n",
                      "}\n",
                      "\n",
                      "service.postBulkDocs({\n",
                      "  db: 'events',\n",
                      "  bulkDocs: bulkDocs\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              },
              {
                "name": "Example request: delete documents",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "const eventDoc1: CloudantV1.Document = {\n",
                      "  _id: 'ns1HJS13AMkK:0007241142412418284',\n",
                      "  _rev: '1-00000000000000000000000000000000',\n",
                      "  _deleted: true,\n",
                      "}\n",
                      "const eventDoc2: CloudantV1.Document = {\n",
                      "  _id: 'H8tDIwfadxp9:0007241142412418285',\n",
                      "  _rev: '1-00000000000000000000000000000000',\n",
                      "  _deleted: true,\n",
                      "}\n",
                      "\n",
                      "const bulkDocs: CloudantV1.BulkDocs = {  docs: [eventDoc1, eventDoc2]\n",
                      "}\n",
                      "\n",
                      "service.postBulkDocs({\n",
                      "  db: 'events',\n",
                      "  bulkDocs: bulkDocs\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              },
              {
                "name": "Example request as a stream",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "import { createReadStream } from 'node:fs'\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "const stream = createReadStream(\"upload.json\");\n",
                      "\n",
                      "service.postBulkDocs({\n",
                      "  db: 'events',\n",
                      "  bulkDocs: stream\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "Content of upload.json"
                    ]
                  },
                  {
                    "type": "code",
                    "source": [
                      "{\n",
                      "  \"docs\": [\n",
                      "    {\n",
                      "      \"_id\": \"ns1HJS13AMkK:0007241142412418284\",\n",
                      "      \"type\": \"event\",\n",
                      "      \"userId\": \"abc123\",\n",
                      "      \"eventType\": \"addedToBasket\",\n",
                      "      \"productId\": \"1000042\",\n",
                      "      \"date\": \"2019-01-28T10:44:22.000Z\"\n",
                      "    },\n",
                      "    {\n",
                      "      \"_id\": \"H8tDIwfadxp9:0007241142412418285\",\n",
                      "      \"type\": \"event\",\n",
                      "      \"userId\": \"abc234\",\n",
                      "      \"eventType\": \"addedToBasket\",\n",
                      "      \"productId\": \"1000050\",\n",
                      "      \"date\": \"2019-01-25T20:00:00.000Z\"\n",
                      "    }\n",
                      "  ]\n",
                      "}\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request: create documents",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import Document, CloudantV1, BulkDocs\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "event_doc_1 = Document(\n",
                      "  _id=\"ns1HJS13AMkK:0007241142412418284\",\n",
                      "  type=\"event\",\n",
                      "  userId=\"abc123\",\n",
                      "  eventType=\"addedToBasket\",\n",
                      "  productId=\"1000042\",\n",
                      "  date=\"2019-01-28T10:44:22.000Z\"\n",
                      ")\n",
                      "event_doc_2 = Document(\n",
                      "  _id=\"H8tDIwfadxp9:0007241142412418285\",\n",
                      "  type=\"event\",\n",
                      "  userId=\"abc234\",\n",
                      "  eventType=\"addedToBasket\",\n",
                      "  productId=\"1000050\",\n",
                      "  date=\"2019-01-25T20:00:00.000Z\"\n",
                      ")\n",
                      "\n",
                      "bulk_docs = BulkDocs(docs=[event_doc_1, event_doc_2])\n",
                      "\n",
                      "response = service.post_bulk_docs(\n",
                      "  db='events',\n",
                      "  bulk_docs=bulk_docs\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              },
              {
                "name": "Example request: delete documents",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import Document, CloudantV1, BulkDocs\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "event_doc_1 = Document(\n",
                      "  _id=\"ns1HJS13AMkK:0007241142412418284\",\n",
                      "  _rev=\"1-00000000000000000000000000000000\",\n",
                      "  _deleted=True,\n",
                      ")\n",
                      "event_doc_2 = Document(\n",
                      "  _id=\"H8tDIwfadxp9:0007241142412418285\",\n",
                      "  _rev=\"1-00000000000000000000000000000000\",\n",
                      "  _deleted=True,\n",
                      ")\n",
                      "\n",
                      "bulk_docs = BulkDocs(docs=[event_doc_1, event_doc_2])\n",
                      "\n",
                      "response = service.post_bulk_docs(\n",
                      "  db='events',\n",
                      "  bulk_docs=bulk_docs\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              },
              {
                "name": "Example request as a stream",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import Document, CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "with open('upload.json', 'rb') as f:\n",
                      "  response = service.post_bulk_docs(\n",
                      "    db='events',\n",
                      "    bulk_docs=f\n",
                      "  ).get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "Content of upload.json"
                    ]
                  },
                  {
                    "type": "code",
                    "source": [
                      "{\n",
                      "  \"docs\": [\n",
                      "    {\n",
                      "      \"_id\": \"ns1HJS13AMkK:0007241142412418284\",\n",
                      "      \"type\": \"event\",\n",
                      "      \"userId\": \"abc123\",\n",
                      "      \"eventType\": \"addedToBasket\",\n",
                      "      \"productId\": \"1000042\",\n",
                      "      \"date\": \"2019-01-28T10:44:22.000Z\"\n",
                      "    },\n",
                      "    {\n",
                      "      \"_id\": \"H8tDIwfadxp9:0007241142412418285\",\n",
                      "      \"type\": \"event\",\n",
                      "      \"userId\": \"abc234\",\n",
                      "      \"eventType\": \"addedToBasket\",\n",
                      "      \"productId\": \"1000050\",\n",
                      "      \"date\": \"2019-01-25T20:00:00.000Z\"\n",
                      "    }\n",
                      "  ]\n",
                      "}\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/{db}/_bulk_get": {
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        }
      ],
      "post": {
        "description": "Fetch specific revisions or revision histories for multiple documents in bulk as replicators do.",
        "operationId": "postBulkGet",
        "parameters": [
          {
            "$ref": "#/components/parameters/QueryAttachments"
          },
          {
            "$ref": "#/components/parameters/QueryAttEncodingInfo"
          },
          {
            "$ref": "#/components/parameters/QueryLatest"
          },
          {
            "$ref": "#/components/parameters/QueryRevs"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/BulkGetQuery"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/BulkGetResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "413": {
            "$ref": "#/components/responses/Error413TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Bulk query revision information for multiple documents",
        "tags": [
          "Documents"
        ],
        "x-accept-default": "application/json",
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-codegen-request-body-name": "bulkGetQuery",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `read` request per document revision.",
        "x-sdk-stream-response": true,
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X POST \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/orders/_bulk_get\" -H \"Content-Type: application/json\" --data '{\n",
                      "  \"docs\": [\n",
                      "    {\n",
                      "      \"id\": \"order00067\",\n",
                      "      \"rev\": \"3-22222222222222222222222222222222\"\n",
                      "    },\n",
                      "    {\n",
                      "      \"id\": \"order00067\"\n",
                      "      \"rev\": \"4-33333333333333333333333333333333\"\n",
                      "    }\n",
                      "  ],\n",
                      "}'\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      "  \"github.com/IBM/go-sdk-core/v5/core\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "docID := \"order00067\"\n",
                      "\n",
                      "bulkGetDocs := []cloudantv1.BulkGetQueryDocument{\n",
                      "  {\n",
                      "    ID: &docID,\n",
                      "    Rev: core.StringPtr(\"3-22222222222222222222222222222222\"),\n",
                      "  },\n",
                      "  {\n",
                      "    ID: &docID,\n",
                      "    Rev: core.StringPtr(\"4-33333333333333333333333333333333\"),\n",
                      "  },\n",
                      "}\n",
                      "\n",
                      "postBulkGetOptions := service.NewPostBulkGetOptions(\n",
                      "  \"orders\",\n",
                      "  bulkGetDocs,\n",
                      ")\n",
                      "bulkGetResult, response, err := service.PostBulkGet(postBulkGetOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(bulkGetResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              },
              {
                "name": "Alternative example request for `open_revs=all`",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      "  \"github.com/IBM/go-sdk-core/v5/core\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "postBulkGetOptions := service.NewPostBulkGetOptions(\n",
                      "  \"orders\",\n",
                      "  []cloudantv1.BulkGetQueryDocument{{ID: core.StringPtr(\"order00067\")}},\n",
                      ")\n",
                      "\n",
                      "bulkGetResult, response, err := service.PostBulkGet(postBulkGetOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(bulkGetResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              },
              {
                "name": "Alternative example request for `atts_since`",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "docID := \"order00058\"\n",
                      "\n",
                      "postBulkGetOptions := service.NewPostBulkGetOptions(\n",
                      "  \"orders\",\n",
                      "  []cloudantv1.BulkGetQueryDocument{\n",
                      "    {\n",
                      "      ID: &docID,\n",
                      "      AttsSince: []string{\"1-00000000000000000000000000000000\"},\n",
                      "    },\n",
                      "  },\n",
                      ")\n",
                      "\n",
                      "bulkGetResult, response, err := service.PostBulkGet(postBulkGetOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(bulkGetResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.BulkGetQueryDocument;\n",
                      "import com.ibm.cloud.cloudant.v1.model.BulkGetResult;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PostBulkGetOptions;\n",
                      "\n",
                      "import java.util.ArrayList;\n",
                      "import java.util.List;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "String docId = \"order00067\";\n",
                      "List<BulkGetQueryDocument> bulkGetDocs = new ArrayList<>();\n",
                      "\n",
                      "bulkGetDocs.add(\n",
                      "    new BulkGetQueryDocument.Builder()\n",
                      "        .id(docId)\n",
                      "        .rev(\"3-22222222222222222222222222222222\")\n",
                      "        .build());\n",
                      "bulkGetDocs.add(\n",
                      "    new BulkGetQueryDocument.Builder()\n",
                      "        .id(docId)\n",
                      "        .rev(\"4-33333333333333333333333333333333\")\n",
                      "        .build());\n",
                      "\n",
                      "PostBulkGetOptions bulkGetOptions = new PostBulkGetOptions.Builder()\n",
                      "    .db(\"orders\")\n",
                      "    .docs(bulkGetDocs)\n",
                      "    .build();\n",
                      "\n",
                      "BulkGetResult response =\n",
                      "    service.postBulkGet(bulkGetOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              },
              {
                "name": "Alternative example request for `open_revs=all`",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.BulkGetQueryDocument;\n",
                      "import com.ibm.cloud.cloudant.v1.model.BulkGetResult;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PostBulkGetOptions;\n",
                      "\n",
                      "import java.util.Arrays;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "BulkGetQueryDocument bulkGetDoc =\n",
                      "    new BulkGetQueryDocument.Builder()\n",
                      "        .id(\"order00067\")\n",
                      "        .build();\n",
                      "\n",
                      "PostBulkGetOptions postBulkGetOptions =\n",
                      "    new PostBulkGetOptions.Builder()\n",
                      "        .db(\"orders\")\n",
                      "        .docs(Arrays.asList(bulkGetDoc))\n",
                      "        .build();\n",
                      "\n",
                      "BulkGetResult response =\n",
                      "    service.postBulkGet(postBulkGetOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              },
              {
                "name": "Alternative example request for `atts_since`",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.BulkGetQueryDocument;\n",
                      "import com.ibm.cloud.cloudant.v1.model.BulkGetResult;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PostBulkGetOptions;\n",
                      "\n",
                      "import java.util.Arrays;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "BulkGetQueryDocument bulkGetQueryDocument =\n",
                      "    new BulkGetQueryDocument.Builder()\n",
                      "        .id(\"order00058\")\n",
                      "        .addAttsSince(\"1-00000000000000000000000000000000\")\n",
                      "        .build();\n",
                      "\n",
                      "PostBulkGetOptions postBulkGetOptions =\n",
                      "    new PostBulkGetOptions.Builder()\n",
                      "        .db(\"orders\")\n",
                      "        .docs(Arrays.asList(bulkGetQueryDocument)).build();\n",
                      "\n",
                      "BulkGetResult response =\n",
                      "    service.postBulkGet(postBulkGetOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "const docId = 'order00067';\n",
                      "\n",
                      "const bulkGetDoc1: CloudantV1.BulkGetQueryDocument = {\n",
                      "  id: docId,\n",
                      "  rev: '3-22222222222222222222222222222222'\n",
                      "};\n",
                      "const bulkGetDoc2: CloudantV1.BulkGetQueryDocument = {\n",
                      "  id: docId,\n",
                      "  rev: '4-33333333333333333333333333333333'\n",
                      "};\n",
                      "\n",
                      "const bulkGetDocs: CloudantV1.BulkGetQueryDocument[] = [bulkGetDoc1, bulkGetDoc2];\n",
                      "\n",
                      "const postBulkGetParams: CloudantV1.PostBulkGetParams = {\n",
                      "  db: 'orders',\n",
                      "  docs: bulkGetDocs,\n",
                      "};\n",
                      "\n",
                      "service.postBulkGet(postBulkGetParams)\n",
                      "  .then(response => {\n",
                      "    console.log(response.result);\n",
                      "  });\n"
                    ]
                  }
                ]
              },
              {
                "name": "Alternative example request for `open_revs=all`",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "const bulkGetDocs: CloudantV1.BulkGetQueryDocument[] = [\n",
                      "  {\n",
                      "    id: 'order00067',\n",
                      "  },\n",
                      "];\n",
                      "\n",
                      "const postBulkGetParams: CloudantV1.PostBulkGetParams = {\n",
                      "  db: 'orders',\n",
                      "  docs: bulkGetDocs,\n",
                      "};\n",
                      "\n",
                      "service.postBulkGet(postBulkGetParams)\n",
                      "  .then(response => {\n",
                      "    console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              },
              {
                "name": "Alternative example request for `atts_since`",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "const bulkGetQueryDocuments: CloudantV1.BulkGetQueryDocument[] = [\n",
                      "  {\n",
                      "    id: 'order00058',\n",
                      "    attsSince: ['1-00000000000000000000000000000000']\n",
                      "  },\n",
                      "];\n",
                      "\n",
                      "const postBulkGetParams: CloudantV1.PostBulkGetParams = {\n",
                      "  db: 'orders',\n",
                      "  docs: bulkGetQueryDocuments,\n",
                      "};\n",
                      "\n",
                      "service.postBulkGet(postBulkGetParams)\n",
                      "  .then(response => {\n",
                      "    console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import BulkGetQueryDocument, CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "doc_id = 'order00067'\n",
                      "bulk_get_doc_1 = BulkGetQueryDocument(\n",
                      "    id=doc_id,\n",
                      "    rev='3-22222222222222222222222222222222')\n",
                      "bulk_get_doc_2 = BulkGetQueryDocument(\n",
                      "    id=doc_id,\n",
                      "    rev='4-33333333333333333333333333333333')\n",
                      "\n",
                      "response = service.post_bulk_get(\n",
                      "    db='orders',\n",
                      "    docs=[bulk_get_doc_1, bulk_get_doc_2],\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              },
              {
                "name": "Alternative example request for `open_revs=all`",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import BulkGetQueryDocument, CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "bulk_get_doc = BulkGetQueryDocument(id='order00067')\n",
                      "response = service.post_bulk_get(\n",
                      "    db='orders',\n",
                      "    docs=[bulk_get_doc],\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              },
              {
                "name": "Alternative example request for `atts_since`",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import BulkGetQueryDocument, CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "bulk_get_doc = BulkGetQueryDocument(\n",
                      "    id='order00058',\n",
                      "    atts_since=['1-00000000000000000000000000000000'])\n",
                      "response = service.post_bulk_get(\n",
                      "    db='orders',\n",
                      "    docs=[bulk_get_doc]\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/{db}/_changes": {
      "get": {
        "description": "Returns a sorted list of changes made to documents in the database, in time order of application. Only the most recent change for a specific document is included in the list. For example, if you add fields to a document and then delete them, an API client that checks for changes might not know about the intermediate state of added documents. These checks listen for updates to the database for post processing or synchronization, and for practical purposes, a continuously connected `_changes` feed is a reasonable approach for generating a real-time log for most applications.\n\n### Note\n\nBefore using the changes feed read the\n[FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-faq-using-changes-feed)\nto understand the limitations and appropriate use cases.\n\nTo use some filter types you must use the\n[`POST` version](#postchanges-databases) of this request.\n",
        "operationId": "getChanges",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderLastEventId"
          },
          {
            "$ref": "#/components/parameters/QueryAttEncodingInfo"
          },
          {
            "$ref": "#/components/parameters/QueryAttachments"
          },
          {
            "$ref": "#/components/parameters/QueryConflicts"
          },
          {
            "$ref": "#/components/parameters/QueryDescendingChanges"
          },
          {
            "$ref": "#/components/parameters/QueryDocIds"
          },
          {
            "$ref": "#/components/parameters/QueryFeed"
          },
          {
            "$ref": "#/components/parameters/QueryFilter"
          },
          {
            "$ref": "#/components/parameters/QueryHeartbeat"
          },
          {
            "$ref": "#/components/parameters/QueryIncludeDocs"
          },
          {
            "$ref": "#/components/parameters/QueryLastEventId"
          },
          {
            "$ref": "#/components/parameters/QueryLimit"
          },
          {
            "$ref": "#/components/parameters/QuerySeqInterval"
          },
          {
            "$ref": "#/components/parameters/QuerySince"
          },
          {
            "$ref": "#/components/parameters/QueryStyle"
          },
          {
            "$ref": "#/components/parameters/QueryTimeout"
          },
          {
            "$ref": "#/components/parameters/QueryView"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/ChangesResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Query the database document changes feed (GET)",
        "tags": [
          "Changes",
          "Databases"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-sdk-exclude": true,
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/orders/_changes?limit=1\"\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        }
      ],
      "post": {
        "description": "Requests the database changes feed in the same way as `GET /{db}/_changes` does. It is widely used with the `filter` query parameter because it allows one to pass more information to the filter.\n\n### Note\n\nBefore using the changes feed read the\n[FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-faq-using-changes-feed)\nto understand the limitations and appropriate use cases.\n\nIf you need to pass parameters to dynamically change the filtered\ncontent use the `_selector` filter type for better performance and\ncompatibility. The SDKs have full support for change requests using\nselector filters, but don't support passing parameters to design\ndocument filters.\n",
        "operationId": "postChanges",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderLastEventId"
          },
          {
            "$ref": "#/components/parameters/QueryAttEncodingInfo"
          },
          {
            "$ref": "#/components/parameters/QueryAttachments"
          },
          {
            "$ref": "#/components/parameters/QueryConflicts"
          },
          {
            "$ref": "#/components/parameters/QueryDescendingChanges"
          },
          {
            "$ref": "#/components/parameters/QueryFeed"
          },
          {
            "$ref": "#/components/parameters/QueryFilter"
          },
          {
            "$ref": "#/components/parameters/QueryHeartbeat"
          },
          {
            "$ref": "#/components/parameters/QueryIncludeDocs"
          },
          {
            "$ref": "#/components/parameters/QueryLastEventId"
          },
          {
            "$ref": "#/components/parameters/QueryLimit"
          },
          {
            "$ref": "#/components/parameters/QuerySeqInterval"
          },
          {
            "$ref": "#/components/parameters/QuerySince"
          },
          {
            "$ref": "#/components/parameters/QueryStyle"
          },
          {
            "$ref": "#/components/parameters/QueryTimeout"
          },
          {
            "$ref": "#/components/parameters/QueryView"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ChangesQuery"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/ChangesResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "413": {
            "$ref": "#/components/responses/Error413TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Query the database document changes feed",
        "tags": [
          "Changes",
          "Databases"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-codegen-request-body-name": "changesQuery",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-sdk-stream-response": true,
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X POST \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/orders/_changes\" -H \"Content-Type: application/json\" --data '{\n",
                      " \"doc_ids\": [\n",
                      " \"small-appliances:1000042\"\n",
                      " ]\n",
                      "}'\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "postChangesOptions := service.NewPostChangesOptions(\n",
                      "  \"orders\",\n",
                      ")\n",
                      "\n",
                      "changesResult, response, err := service.PostChanges(postChangesOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(changesResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              },
              {
                "name": "Example request as a stream",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "  \"io\"\n",
                      "  \"os\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "postChangesOptions := service.NewPostChangesOptions(\n",
                      "  \"orders\",\n",
                      ")\n",
                      "\n",
                      "changesResult, response, err := service.PostChangesAsStream(postChangesOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "if changesResult != nil {\n",
                      "  defer changesResult.Close()\n",
                      "  outFile, err := os.Create(\"result.json\")\n",
                      "  if err != nil {\n",
                      "    panic(err)\n",
                      "  }\n",
                      "  defer outFile.Close()\n",
                      "  if _, err = io.Copy(outFile, changesResult); err != nil {\n",
                      "    panic(err)\n",
                      "  }\n",
                      "}\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.ChangesResult;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PostChangesOptions;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "PostChangesOptions changesOptions = new PostChangesOptions.Builder()\n",
                      "    .db(\"orders\")\n",
                      "    .build();\n",
                      "\n",
                      "ChangesResult response =\n",
                      "    service.postChanges(changesOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              },
              {
                "name": "Example request as a stream",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PostChangesOptions;\n",
                      "\n",
                      "import java.io.InputStream;\n",
                      "import java.io.File;\n",
                      "import java.nio.file.StandardCopyOption;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "PostChangesOptions changesOptions = new PostChangesOptions.Builder()\n",
                      "    .db(\"orders\")\n",
                      "    .build();\n",
                      "\n",
                      "File file = new File(\"result.json\");\n",
                      "\n",
                      "try (InputStream response =\n",
                      "        service.postChangesAsStream(changesOptions).execute()\n",
                      "            .getResult()) {\n",
                      "    java.nio.file.Files.copy(\n",
                      "        response,\n",
                      "        file.toPath(),\n",
                      "        StandardCopyOption.REPLACE_EXISTING);\n",
                      "}\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.postChanges({\n",
                      "  db: 'orders'\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              },
              {
                "name": "Example request as a stream",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "import { createWriteStream } from 'node:fs'\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.postChangesAsStream({\n",
                      "  db: 'orders'\n",
                      "}).then(response => {\n",
                      "  const stream = createWriteStream(\"result.json\");\n",
                      "  response.result.pipe(stream);\n",
                      "  response.result.on('end', () => stream.end());\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "response = service.post_changes(\n",
                      "  db='orders'\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              },
              {
                "name": "Example request as a stream",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "result = service.post_changes_as_stream(\n",
                      "  db='orders'\n",
                      ").get_result()\n",
                      "\n",
                      "with open('result.json', 'wb') as f:\n",
                      "  for chunk in result.iter_content():\n",
                      "    f.write(chunk)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/{db}/_design/{ddoc}": {
      "delete": {
        "description": "Marks the specified design document as deleted by adding a `_deleted` field with the value `true`. Documents with this field are not returned with requests but stay in the database. You must supply the current (latest) revision, either by using the `rev` parameter or by using the `If-Match` header to specify the revision.",
        "operationId": "deleteDesignDocument",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderIfMatch"
          },
          {
            "$ref": "#/components/parameters/QueryBatch"
          },
          {
            "$ref": "#/components/parameters/QueryRev"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/DocumentResult"
          },
          "202": {
            "$ref": "#/components/responses/DocumentResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "409": {
            "$ref": "#/components/responses/Error409DocumentConflict"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Delete a design document",
        "tags": [
          "Design Documents"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.design-document.write"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.design-document.write"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `write` request.",
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X DELETE \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/products/_design/appliances?rev=1-00000000000000000000000000000000\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "deleteDesignDocumentOptions := service.NewDeleteDesignDocumentOptions(\n",
                      "  \"products\",\n",
                      "  \"appliances\",\n",
                      ")\n",
                      "deleteDesignDocumentOptions.SetRev(\"1-00000000000000000000000000000000\")\n",
                      "\n",
                      "documentResult, response, err := service.DeleteDesignDocument(deleteDesignDocumentOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(documentResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This request requires the example revisions in the DELETE body to be replaced with valid revisions."
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.DeleteDesignDocumentOptions;\n",
                      "import com.ibm.cloud.cloudant.v1.model.DocumentResult;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "DeleteDesignDocumentOptions designDocumentOptions =\n",
                      "    new DeleteDesignDocumentOptions.Builder()\n",
                      "        .db(\"products\")\n",
                      "        .ddoc(\"appliances\")\n",
                      "        .rev(\"1-00000000000000000000000000000000\")\n",
                      "        .build();\n",
                      "\n",
                      "DocumentResult response =\n",
                      "    service.deleteDesignDocument(designDocumentOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.deleteDesignDocument({\n",
                      "  db: 'products',\n",
                      "  ddoc: 'appliances',\n",
                      "  rev: '1-00000000000000000000000000000000'\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.delete_design_document(\n",
                      "  db='products',\n",
                      "  ddoc='appliances',\n",
                      "  rev='1-00000000000000000000000000000000'\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "get": {
        "description": "Returns design document with the specified `doc_id` from the specified database. Unless you request a specific revision, the current revision of the design document is always returned.",
        "operationId": "getDesignDocument",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderIfNoneMatch"
          },
          {
            "$ref": "#/components/parameters/QueryAttachments"
          },
          {
            "$ref": "#/components/parameters/QueryAttEncodingInfo"
          },
          {
            "$ref": "#/components/parameters/QueryAttsSince"
          },
          {
            "$ref": "#/components/parameters/QueryConflicts"
          },
          {
            "$ref": "#/components/parameters/QueryDeletedConflicts"
          },
          {
            "$ref": "#/components/parameters/QueryLatest"
          },
          {
            "$ref": "#/components/parameters/QueryLocalSeq"
          },
          {
            "$ref": "#/components/parameters/QueryMeta"
          },
          {
            "$ref": "#/components/parameters/QueryOpenRevs"
          },
          {
            "$ref": "#/components/parameters/QueryRev"
          },
          {
            "$ref": "#/components/parameters/QueryRevs"
          },
          {
            "$ref": "#/components/parameters/QueryRevsInfo"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/DesignDocument"
          },
          "304": {
            "$ref": "#/components/responses/NotModified"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve a design document",
        "tags": [
          "Design Documents"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `read` request.",
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/products/_design/appliances\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "getDesignDocumentOptions := service.NewGetDesignDocumentOptions(\n",
                      "  \"products\",\n",
                      "  \"appliances\",\n",
                      ")\n",
                      "\n",
                      "designDocument, response, err := service.GetDesignDocument(getDesignDocumentOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(designDocument, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.DesignDocument;\n",
                      "import com.ibm.cloud.cloudant.v1.model.GetDesignDocumentOptions;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "GetDesignDocumentOptions designDocumentOptions = new GetDesignDocumentOptions.Builder()\n",
                      "    .db(\"products\")\n",
                      "    .ddoc(\"appliances\")\n",
                      "    .build();\n",
                      "\n",
                      "DesignDocument response =\n",
                      "    service.getDesignDocument(designDocumentOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.getDesignDocument({\n",
                      "  db: 'products',\n",
                      "  ddoc: 'appliances'\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.get_design_document(\n",
                      "  db='products',\n",
                      "  ddoc='appliances'\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "head": {
        "description": "This method supports the same query arguments as the `GET /{db}/_design/{ddoc}` method, but the results include only the header information (including design document size, and the revision as an ETag). The ETag header shows the current revision for the requested design document, and if you requested the design document in full, the Content-Length specifies the length of the data. If you add any of the query arguments, then the resulting HTTP headers correspond to what is returned for the equivalent GET request.",
        "operationId": "headDesignDocument",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderIfNoneMatch"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/DesignDocumentHead"
          },
          "304": {
            "$ref": "#/components/responses/NotModified"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve the HTTP headers for a design document",
        "tags": [
          "Design Documents"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `read` request.",
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" --head \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/products/_design/appliances\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "headDesignDocumentOptions := service.NewHeadDesignDocumentOptions(\n",
                      "  \"events\",\n",
                      "  \"checkout\",\n",
                      ")\n",
                      "\n",
                      "response, err := service.HeadDesignDocument(headDesignDocumentOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "fmt.Println(response.StatusCode)\n",
                      "fmt.Println(response.Headers[\"ETag\"])\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.sdk.core.http.Headers;\n",
                      "\n",
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.HeadDesignDocumentOptions;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "HeadDesignDocumentOptions designDocumentOptions =\n",
                      "    new HeadDesignDocumentOptions.Builder()\n",
                      "        .db(\"events\")\n",
                      "        .ddoc(\"checkout\")\n",
                      "        .build();\n",
                      "\n",
                      "int statusCode =\n",
                      "    service.headDesignDocument(designDocumentOptions).execute()\n",
                      "        .getStatusCode();\n",
                      "\n",
                      "Headers headers =\n",
                      "    service.headDesignDocument(designDocumentOptions).execute()\n",
                      "        .getHeaders();\n",
                      "\n",
                      "System.out.println(statusCode);\n",
                      "System.out.println(headers.values(\"ETag\"));\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.headDesignDocument({\n",
                      "  db: 'events',\n",
                      "  ddoc: 'checkout'\n",
                      "}).then(response => {\n",
                      "  console.log(response.status);\n",
                      "  console.log(response.headers['ETag']);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.head_design_document(\n",
                      "  db='events',\n",
                      "  ddoc='checkout'\n",
                      ")\n",
                      "print(response.get_status_code())\n",
                      "print(response.get_headers()['ETag'])\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        },
        {
          "$ref": "#/components/parameters/PathDesignDocumentName"
        }
      ],
      "put": {
        "description": "The PUT method creates a new named design document, or creates a new revision of the existing design document.",
        "operationId": "putDesignDocument",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderIfMatch"
          },
          {
            "$ref": "#/components/parameters/QueryBatch"
          },
          {
            "$ref": "#/components/parameters/QueryNewEdits"
          },
          {
            "$ref": "#/components/parameters/QueryRev"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/DesignDocument"
        },
        "responses": {
          "201": {
            "$ref": "#/components/responses/DocumentResult"
          },
          "202": {
            "$ref": "#/components/responses/DocumentResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "409": {
            "$ref": "#/components/responses/Error409DocumentConflict"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "413": {
            "$ref": "#/components/responses/Error413DocumentTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          },
          "507": {
            "$ref": "#/components/responses/Error507InsufficientStorage"
          }
        },
        "summary": "Create or modify a design document",
        "tags": [
          "Design Documents"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-codegen-request-body-name": "designDocument",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.design-document.write"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.design-document.write"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `write` request.",
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X PUT \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/users/_design/allusers\" -H \"Content-Type: application/json\" --data '{\n",
                      "  \"views\": {\n",
                      "    \"getVerifiedEmails\": {\n",
                      "      \"map\": \"function(doc) { if(doc.email_verified  === true){ emit(doc.email, [doc.name, doc.email_verified, doc.joined]) }}\"\n",
                      "    }\n",
                      "  },\n",
                      "  \"indexes\": {\n",
                      "    \"activeUsers\": {\n",
                      "      \"index\": \"function (doc) {  index(\\\"name\\\", doc.name);  index(\\\"active\\\", doc.active); }\"\n",
                      "    }\n",
                      "  }\n",
                      "}'\n",
                      "\n",
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X PUT \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/products/_design/appliances\" -H \"Content-Type: application/json\" --data '{\n",
                      "  \"views\": {\n",
                      "    \"byApplianceProdId\": {\n",
                      "      \"map\": \"function(doc) { emit(doc.productId, [doc.brand, doc.name, doc.description]) }\"\n",
                      "    }\n",
                      "  },\n",
                      "  \"indexes\": {\n",
                      "    \"findByPrice\": {\n",
                      "      \"index\": \"function (doc) {  index(\\\"price\\\", doc.price);  }\"\n",
                      "    }\n",
                      "  }\n",
                      "}'\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example creates `allusers` design document in the `users` database and `appliances` design document in the partitioned `products` database."
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "emailViewMapReduce, err := service.NewDesignDocumentViewsMapReduce(\"function(doc) { if(doc.email_verified === true) { emit(doc.email, [doc.name, doc.email_verified, doc.joined]); }}\")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "userIndexDefinition, err := service.NewSearchIndexDefinition(\"function(doc) { index(\\\"name\\\", doc.name); index(\\\"active\\\", doc.active); }\")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "designDocument := &cloudantv1.DesignDocument{\n",
                      "  Views: map[string]cloudantv1.DesignDocumentViewsMapReduce{\n",
                      "    \"getVerifiedEmails\": *emailViewMapReduce,\n",
                      "  },\n",
                      "  Indexes: map[string]cloudantv1.SearchIndexDefinition{\n",
                      "    \"activeUsers\": *userIndexDefinition,\n",
                      "  },\n",
                      "}\n",
                      "\n",
                      "putDesignDocumentOptions := service.NewPutDesignDocumentOptions(\n",
                      "  \"users\",\n",
                      "  \"allusers\",\n",
                      "  designDocument,\n",
                      ")\n",
                      "\n",
                      "documentResult, response, err := service.PutDesignDocument(putDesignDocumentOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(documentResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n",
                      "\n",
                      "applianceProdIdViewMapReduce, err := service.NewDesignDocumentViewsMapReduce(\"function(doc) { emit(doc.productId, [doc.date, doc.eventType, doc.userId]); }\")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "dateIndexDefinition, err := service.NewSearchIndexDefinition(\"function(doc) { index(\\\"date\\\", doc.date); }\")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "partitionedDesignDocument := &cloudantv1.DesignDocument{\n",
                      "  Views: map[string]cloudantv1.DesignDocumentViewsMapReduce{\n",
                      "    \"byProductId\": *applianceProdIdViewMapReduce,\n",
                      "  },\n",
                      "  Indexes: map[string]cloudantv1.SearchIndexDefinition{\n",
                      "    \"findByDate\": *dateIndexDefinition,\n",
                      "  },\n",
                      "}\n",
                      "\n",
                      "putPartitionedDesignDocumentOptions := service.NewPutDesignDocumentOptions(\n",
                      "  \"events\",\n",
                      "  \"checkout\",\n",
                      "  partitionedDesignDocument,\n",
                      ")\n",
                      "\n",
                      "documentResult, response, err = service.PutDesignDocument(putPartitionedDesignDocumentOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ = json.MarshalIndent(documentResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example creates `allusers` design document in the `users` database and `checkout` design document in the partitioned `events` database."
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.DesignDocument;\n",
                      "import com.ibm.cloud.cloudant.v1.model.DesignDocumentViewsMapReduce;\n",
                      "import com.ibm.cloud.cloudant.v1.model.DocumentResult;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PutDesignDocumentOptions;\n",
                      "import com.ibm.cloud.cloudant.v1.model.SearchIndexDefinition;\n",
                      "\n",
                      "import java.util.Collections;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "DesignDocumentViewsMapReduce emailViewMapReduce =\n",
                      "    new DesignDocumentViewsMapReduce.Builder()\n",
                      "        .map(\"function(doc) { if(doc.email_verified === true) { emit(doc.email, [doc.name, doc.email_verified, doc.joined]); }}\")\n",
                      "        .build();\n",
                      "\n",
                      "SearchIndexDefinition usersIndex =\n",
                      "    new SearchIndexDefinition.Builder()\n",
                      "        .index(\"function(doc) { index(\\\"name\\\", doc.name); index(\\\"active\\\", doc.active); }\")\n",
                      "        .build();\n",
                      "\n",
                      "DesignDocument designDocument = new DesignDocument();\n",
                      "designDocument.setViews(\n",
                      "    Collections.singletonMap(\"getVerifiedEmails\", emailViewMapReduce));\n",
                      "designDocument.setIndexes(\n",
                      "    Collections.singletonMap(\"activeUsers\", usersIndex));\n",
                      "\n",
                      "PutDesignDocumentOptions designDocumentOptions =\n",
                      "    new PutDesignDocumentOptions.Builder()\n",
                      "        .db(\"users\")\n",
                      "        .designDocument(designDocument)\n",
                      "        .ddoc(\"allusers\")\n",
                      "        .build();\n",
                      "\n",
                      "DocumentResult allusersResponse =\n",
                      "    service.putDesignDocument(designDocumentOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(allusersResponse);\n",
                      "\n",
                      "DesignDocumentViewsMapReduce applianceView =\n",
                      "    new DesignDocumentViewsMapReduce.Builder()\n",
                      "        .map(\"function(doc) { emit(doc.productId, [doc.date, doc.eventType, doc.userId]); }\")\n",
                      "        .build();\n",
                      "\n",
                      "SearchIndexDefinition dateIndex =\n",
                      "    new SearchIndexDefinition.Builder()\n",
                      "        .index(\"function(doc) { index(\\\"date\\\", doc.date); }\")\n",
                      "        .build();\n",
                      "\n",
                      "DesignDocument partitionedDesignDocument = new DesignDocument();\n",
                      "partitionedDesignDocument.setViews(\n",
                      "    Collections.singletonMap(\"byProductId\", applianceView));\n",
                      "partitionedDesignDocument.setIndexes(\n",
                      "    Collections.singletonMap(\"findByDate\", dateIndex));\n",
                      "\n",
                      "PutDesignDocumentOptions partitionedDesignDocumentOptions =\n",
                      "    new PutDesignDocumentOptions.Builder()\n",
                      "        .db(\"events\")\n",
                      "        .designDocument(partitionedDesignDocument)\n",
                      "        .ddoc(\"checkout\")\n",
                      "        .build();\n",
                      "\n",
                      "DocumentResult appliancesResponse =\n",
                      "    service.putDesignDocument(partitionedDesignDocumentOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(appliancesResponse);\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example creates `allusers` design document in the `users` database and `checkout` design document in the partitioned `events` database."
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "const emailViewMapReduce: CloudantV1.DesignDocumentViewsMapReduce = {\n",
                      "  map: 'function(doc) { if(doc.email_verified === true) { emit(doc.email, [doc.name, doc.email_verified, doc.joined]); }}'\n",
                      "}\n",
                      "\n",
                      "const userIndex: CloudantV1.SearchIndexDefinition = {\n",
                      "  index: 'function(doc) { index(\"name\", doc.name); index(\"active\", doc.active); }'\n",
                      "}\n",
                      "\n",
                      "const designDocument: CloudantV1.DesignDocument = {\n",
                      "  views: {'getVerifiedEmails': emailViewMapReduce},\n",
                      "  indexes: {'activeUsers': userIndex}}\n",
                      "\n",
                      "service.putDesignDocument({\n",
                      "  db: 'users',\n",
                      "  designDocument: designDocument,\n",
                      "  ddoc: 'allusers'\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n",
                      "\n",
                      "const productMap: CloudantV1.DesignDocumentViewsMapReduce = {\n",
                      "  map: 'function(doc) { emit(doc.productId, [doc.date, doc.eventType, doc.userId]); }'\n",
                      "}\n",
                      "\n",
                      "const dateIndex: CloudantV1.SearchIndexDefinition = {\n",
                      "  index: 'function(doc) { index(\"date\", doc.date); }'\n",
                      "}\n",
                      "\n",
                      "const partitionedDesignDoc: CloudantV1.DesignDocument = {\n",
                      "  views: {'byProductId': productMap},\n",
                      "  indexes: {'findByDate': dateIndex}}\n",
                      "\n",
                      "service.putDesignDocument({\n",
                      "  db: 'events',\n",
                      "  designDocument: partitionedDesignDoc,\n",
                      "  ddoc: 'checkout'\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example creates `allusers` design document in the `users` database and `checkout` design document in the partitioned `events` database."
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import Analyzer, AnalyzerConfiguration, CloudantV1, DesignDocument, DesignDocumentOptions, DesignDocumentViewsMapReduce, SearchIndexDefinition\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "email_view_map_reduce = DesignDocumentViewsMapReduce(\n",
                      "  map='function(doc) { if(doc.email_verified === true) { emit(doc.email, [doc.name, doc.email_verified, doc.joined]); }}'\n",
                      ")\n",
                      "\n",
                      "user_index = SearchIndexDefinition(\n",
                      "  index='function(doc) { index(\"name\", doc.name); index(\"active\", doc.active); }',\n",
                      "  analyzer=AnalyzerConfiguration(name=\"standard\", fields={\"email\": Analyzer(name=\"email\")}))\n",
                      "\n",
                      "design_document = DesignDocument(\n",
                      "  views={'getVerifiedEmails': email_view_map_reduce},\n",
                      "  indexes={'activeUsers': user_index}\n",
                      ")\n",
                      "\n",
                      "response = service.put_design_document(\n",
                      "  db='users',\n",
                      "  design_document=design_document,\n",
                      "  ddoc='allusers'\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n",
                      "\n",
                      "# Partitioned DesignDocument Example\n",
                      "\n",
                      "product_map = DesignDocumentViewsMapReduce(\n",
                      "  map='function(doc) { emit(doc.productId, [doc.date, doc.eventType, doc.userId]); }'\n",
                      ")\n",
                      "\n",
                      "date_index = SearchIndexDefinition(\n",
                      "  index='function(doc) { index(\"date\", doc.date); }',\n",
                      "  analyzer=AnalyzerConfiguration(name=\"classic\", fields={\"description\": Analyzer(name=\"english\")})\n",
                      ")\n",
                      "\n",
                      "design_document_options = DesignDocumentOptions(\n",
                      "  partitioned=True\n",
                      ")\n",
                      "\n",
                      "partitioned_design_doc = DesignDocument(\n",
                      "  views={'byProductId': product_map},\n",
                      "  indexes={'findByDate': date_index},\n",
                      "  options=design_document_options\n",
                      ")\n",
                      "\n",
                      "response = service.put_design_document(\n",
                      "  db='events',\n",
                      "  design_document=partitioned_design_doc,\n",
                      "  ddoc='checkout'\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example creates `allusers` design document in the `users` database and `checkout` design document in the partitioned `events` database."
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "x-copy": {
        "description": "The COPY operation, which is non-standard HTTP, copies an existing design document to a new or existing design document. The source design document is specified on the request line, with the Destination header of the request specifying the target design document. Given that view indexes on disk are named after their MD5 hash of the view definition, and that a COPY operation won't change that definition, the copied views won't have to be reconstructed. Both views are served from the same index on disk.",
        "operationId": "copyDesignDocument",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderDestination"
          },
          {
            "$ref": "#/components/parameters/HeaderIfMatch"
          },
          {
            "$ref": "#/components/parameters/QueryBatch"
          },
          {
            "$ref": "#/components/parameters/QueryRev"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "201": {
            "$ref": "#/components/responses/DocumentResult"
          },
          "202": {
            "$ref": "#/components/responses/DocumentResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "409": {
            "$ref": "#/components/responses/Error409DocumentConflict"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          },
          "507": {
            "$ref": "#/components/responses/Error507InsufficientStorage"
          }
        },
        "summary": "Copy a design document",
        "tags": [
          "Design Documents"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-ibm-events": {
          "description": "In addition to `cloudantnosqldb.any-document.read` this operation requires one of the three `write` events appropriate to the destination document type.",
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            },
            {
              "name": "cloudantnosqldb.data-document.write"
            },
            {
              "name": "cloudantnosqldb.design-document.write"
            },
            {
              "name": "cloudantnosqldb.local-document.write"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            },
            {
              "name": "cloudantnosqldb.data-document.write"
            },
            {
              "name": "cloudantnosqldb.design-document.write"
            },
            {
              "name": "cloudantnosqldb.local-document.write"
            }
          ],
          "description": "In addition to `cloudantnosqldb.any-document.read` this operation requires one of the three `write` permissions appropriate to the destination document type."
        },
        "x-rate-limit": "This operation consumes one `read` and one `write` request.",
        "x-visible-environment": "default"
      }
    },
    "/{db}/_design/{ddoc}/_info": {
      "get": {
        "description": "Retrieves information about the specified design document, including the index, index size, and current status of the design document and associated index information.",
        "operationId": "getDesignDocumentInformation",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/DesignDocumentInformation"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve information about a design document",
        "tags": [
          "Design Documents"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/products/_design/appliances/_info\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "getDesignDocumentInformationOptions := service.NewGetDesignDocumentInformationOptions(\n",
                      "  \"products\",\n",
                      "  \"appliances\",\n",
                      ")\n",
                      "\n",
                      "designDocumentInformation, response, err := service.GetDesignDocumentInformation(getDesignDocumentInformationOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(designDocumentInformation, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.DesignDocumentInformation;\n",
                      "import com.ibm.cloud.cloudant.v1.model.GetDesignDocumentInformationOptions;\n",
                      "\n",
                      "\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "GetDesignDocumentInformationOptions informationOptions =\n",
                      "    new GetDesignDocumentInformationOptions.Builder()\n",
                      "        .db(\"products\")\n",
                      "        .ddoc(\"appliances\")\n",
                      "        .build();\n",
                      "\n",
                      "DesignDocumentInformation response =\n",
                      "    service.getDesignDocumentInformation(informationOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.getDesignDocumentInformation({\n",
                      "  db: 'products',\n",
                      "  ddoc: 'appliances'\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.get_design_document_information(\n",
                      "  db='products',\n",
                      "  ddoc='appliances'\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        },
        {
          "$ref": "#/components/parameters/PathDesignDocumentName"
        }
      ]
    },
    "/{db}/_design/{ddoc}/_search/{index}": {
      "get": {
        "description": "Search indexes, which are defined in design documents, allow databases to be queried by using Lucene Query Parser Syntax. An index function defines search indexes, similar to a map function in MapReduce views. The index function decides what data to index and what data to store in the index.",
        "operationId": "getSearch",
        "parameters": [
          {
            "$ref": "#/components/parameters/QueryQuery"
          },
          {
            "$ref": "#/components/parameters/QueryBookmark"
          },
          {
            "$ref": "#/components/parameters/QueryCounts"
          },
          {
            "$ref": "#/components/parameters/QueryDrilldown"
          },
          {
            "$ref": "#/components/parameters/QueryGroupField"
          },
          {
            "$ref": "#/components/parameters/QueryGroupLimit"
          },
          {
            "$ref": "#/components/parameters/QueryGroupSort"
          },
          {
            "$ref": "#/components/parameters/QueryHighlightFields"
          },
          {
            "$ref": "#/components/parameters/QueryHighlightPreTag"
          },
          {
            "$ref": "#/components/parameters/QueryHighlightPostTag"
          },
          {
            "$ref": "#/components/parameters/QueryHighlightNumber"
          },
          {
            "$ref": "#/components/parameters/QueryHighlightSize"
          },
          {
            "$ref": "#/components/parameters/QueryIncludeDocs"
          },
          {
            "$ref": "#/components/parameters/QueryIncludeFields"
          },
          {
            "$ref": "#/components/parameters/QueryLimit"
          },
          {
            "$ref": "#/components/parameters/QueryRanges"
          },
          {
            "$ref": "#/components/parameters/QuerySort"
          },
          {
            "$ref": "#/components/parameters/QueryStaleSearch"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/SearchResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Query a search index (GET)",
        "tags": [
          "Searches"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `global query` request.",
        "x-sdk-exclude": true,
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/users/_design/allusers/_search/activeUsers?query=name:Jane*%20AND%20active:True\"\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `activeUsers` Cloudant Search index to exist. To create the design document with this index, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        },
        {
          "$ref": "#/components/parameters/PathDesignDocumentName"
        },
        {
          "$ref": "#/components/parameters/PathIndex"
        }
      ],
      "post": {
        "description": "Search indexes, which are defined in design documents, allow databases to be queried by using Lucene Query Parser Syntax. An index function defines a search index, similar to a map function in MapReduce views. The index function decides what data to index and what data to store in the index.\nThe advantage of using the HTTP `POST` method is that the query is submitted as a JSON object in the request body. This avoids the limitations of passing query options as URL query parameters of a `GET` request.",
        "operationId": "postSearch",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/SearchQuery"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/SearchResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400NotSupportedOption"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "413": {
            "$ref": "#/components/responses/Error413TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Query a search index",
        "tags": [
          "Searches"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-codegen-request-body-name": "searchQuery",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `global query` request.",
        "x-sdk-stream-response": true,
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X POST \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/users/_design/allusers/_search/activeUsers\" --data '{\n",
                      "  \"query\": \"name:Jane* AND active:True\"\n",
                      "}'\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `activeUsers` Cloudant Search index to exist. To create the design document with this index, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "postSearchOptions := service.NewPostSearchOptions(\n",
                      "  \"users\",\n",
                      "  \"allusers\",\n",
                      "  \"activeUsers\",\n",
                      "  \"name:Jane* AND active:True\",\n",
                      ")\n",
                      "\n",
                      "searchResult, response, err := service.PostSearch(postSearchOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(searchResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `activeUsers` Cloudant Search index to exist. To create the design document with this index, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PostSearchOptions;\n",
                      "import com.ibm.cloud.cloudant.v1.model.SearchResult;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "PostSearchOptions searchOptions = new PostSearchOptions.Builder()\n",
                      "    .db(\"users\")\n",
                      "    .ddoc(\"allusers\")\n",
                      "    .index(\"activeUsers\")\n",
                      "    .query(\"name:Jane* AND active:True\")\n",
                      "    .build();\n",
                      "\n",
                      "SearchResult response =\n",
                      "    service.postSearch(searchOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `activeUsers` Cloudant Search index to exist. To create the design document with this index, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.postSearch({\n",
                      "  db: 'users',\n",
                      "  ddoc: 'allusers',\n",
                      "  index: 'activeUsers',\n",
                      "  query: 'name:Jane* AND active:True'\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `activeUsers` Cloudant Search index to exist. To create the design document with this index, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.post_search(\n",
                      "  db='users',\n",
                      "  ddoc='allusers',\n",
                      "  index='activeUsers',\n",
                      "  query='name:Jane* AND active:True'\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `activeUsers` Cloudant Search index to exist. To create the design document with this index, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/{db}/_design/{ddoc}/_search_disk_size/{index}": {
      "get": {
        "description": "Retrieve size of the search index on disk.",
        "operationId": "getSearchDiskSize",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/SearchDiskSizeInformation"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve information about the search index disk size",
        "tags": [
          "Searches"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-visible-environment": "default"
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        },
        {
          "$ref": "#/components/parameters/PathDesignDocumentName"
        },
        {
          "$ref": "#/components/parameters/PathIndex"
        }
      ]
    },
    "/{db}/_design/{ddoc}/_search_info/{index}": {
      "get": {
        "description": "Retrieve search index metadata information, such as the size of the index on disk.",
        "operationId": "getSearchInfo",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/SearchInfoResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve information about a search index",
        "tags": [
          "Searches"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/products/_design/appliances/_search_info/findByPrice\"\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `findByPrice` Cloudant Search partitioned index to exist. To create the design document with this index, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "getSearchInfoOptions := service.NewGetSearchInfoOptions(\n",
                      "  \"events\",\n",
                      "  \"checkout\",\n",
                      "  \"findByDate\",\n",
                      ")\n",
                      "\n",
                      "searchInfoResult, response, err := service.GetSearchInfo(getSearchInfoOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(searchInfoResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `findByDate` Cloudant Search partitioned index to exist. To create the design document with this index, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.GetSearchInfoOptions;\n",
                      "import com.ibm.cloud.cloudant.v1.model.SearchInfoResult;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "GetSearchInfoOptions infoOptions =\n",
                      "    new GetSearchInfoOptions.Builder()\n",
                      "        .db(\"events\")\n",
                      "        .ddoc(\"checkout\")\n",
                      "        .index(\"findByDate\")\n",
                      "        .build();\n",
                      "\n",
                      "SearchInfoResult response =\n",
                      "    service.getSearchInfo(infoOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `findByDate` Cloudant Search partitioned index to exist. To create the design document with this index, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.getSearchInfo({\n",
                      "  db: 'events',\n",
                      "  ddoc: 'checkout',\n",
                      "  index: 'findByDate'\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `findByDate` Cloudant Search partitioned index to exist. To create the design document with this index, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.get_search_info(\n",
                      "  db='events',\n",
                      "  ddoc='checkout',\n",
                      "  index='findByDate'\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `findByDate` Cloudant Search partitioned index to exist. To create the design document with this index, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        },
        {
          "$ref": "#/components/parameters/PathDesignDocumentName"
        },
        {
          "$ref": "#/components/parameters/PathIndex"
        }
      ]
    },
    "/{db}/_design/{ddoc}/_view/{view}": {
      "get": {
        "description": "This operation queries the specified MapReduce view of the specified design document. By default, the map and reduce functions of the view are run to update the view before returning the response.",
        "operationId": "getView",
        "parameters": [
          {
            "$ref": "#/components/parameters/QueryAttEncodingInfo"
          },
          {
            "$ref": "#/components/parameters/QueryAttachments"
          },
          {
            "$ref": "#/components/parameters/QueryConflicts"
          },
          {
            "$ref": "#/components/parameters/QueryDescending"
          },
          {
            "$ref": "#/components/parameters/QueryEndKey"
          },
          {
            "$ref": "#/components/parameters/QueryEndKeyDocId"
          },
          {
            "$ref": "#/components/parameters/QueryGroup"
          },
          {
            "$ref": "#/components/parameters/QueryGroupLevel"
          },
          {
            "$ref": "#/components/parameters/QueryIncludeDocs"
          },
          {
            "$ref": "#/components/parameters/QueryInclusiveEnd"
          },
          {
            "$ref": "#/components/parameters/QueryKey"
          },
          {
            "$ref": "#/components/parameters/QueryKeys"
          },
          {
            "$ref": "#/components/parameters/QueryLimit"
          },
          {
            "$ref": "#/components/parameters/QueryReduce"
          },
          {
            "$ref": "#/components/parameters/QuerySkip"
          },
          {
            "$ref": "#/components/parameters/QuerySorted"
          },
          {
            "$ref": "#/components/parameters/QueryStable"
          },
          {
            "$ref": "#/components/parameters/QueryStale"
          },
          {
            "$ref": "#/components/parameters/QueryStartKey"
          },
          {
            "$ref": "#/components/parameters/QueryStartKeyDocId"
          },
          {
            "$ref": "#/components/parameters/QueryUpdate"
          },
          {
            "$ref": "#/components/parameters/QueryUpdateSeq"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/ViewResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          },
          "507": {
            "$ref": "#/components/responses/Error507InsufficientStorage"
          }
        },
        "summary": "Query a MapReduce view (GET)",
        "tags": [
          "Views"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `global query` request.",
        "x-sdk-exclude": true,
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/users/_design/allusers/_view/getVerifiedEmails?limit=10\"\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `getVerifiedEmails` view to exist. To create the design document with this view, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        },
        {
          "$ref": "#/components/parameters/PathDesignDocumentName"
        },
        {
          "$ref": "#/components/parameters/PathView"
        }
      ],
      "post": {
        "description": "This operation queries the specified MapReduce view of the specified design document. By default, the map and reduce functions of the view are run to update the view before returning the response. The advantage of using the HTTP `POST` method is that the query is submitted as a JSON object in the request body. This avoids the limitations of passing query options as URL query parameters of a `GET` request.",
        "operationId": "postView",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ViewQuery"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/ViewResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "413": {
            "$ref": "#/components/responses/Error413TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          },
          "507": {
            "$ref": "#/components/responses/Error507InsufficientStorage"
          }
        },
        "summary": "Query a MapReduce view",
        "tags": [
          "Views"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-codegen-request-body-name": "viewQuery",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `global query` request.",
        "x-sdk-stream-response": true,
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X POST \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/users/_design/allusers/_view/getVerifiedEmails\" -H \"Content-Type: application/json\" --data '{\n",
                      "  \"limit\": 10\n",
                      "}'\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `getVerifiedEmails` view to exist. To create the design document with this view, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "postViewOptions := service.NewPostViewOptions(\n",
                      "  \"users\",\n",
                      "  \"allusers\",\n",
                      "  \"getVerifiedEmails\",\n",
                      ")\n",
                      "\n",
                      "viewResult, response, err := service.PostView(postViewOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(viewResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `getVerifiedEmails` view to exist. To create the design document with this view, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PostViewOptions;\n",
                      "import com.ibm.cloud.cloudant.v1.model.ViewResult;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "PostViewOptions viewOptions = new PostViewOptions.Builder()\n",
                      "    .db(\"users\")\n",
                      "    .ddoc(\"allusers\")\n",
                      "    .view(\"getVerifiedEmails\")\n",
                      "    .build();\n",
                      "\n",
                      "ViewResult response =\n",
                      "    service.postView(viewOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `getVerifiedEmails` view to exist. To create the design document with this view, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.postView({\n",
                      "  db: 'users',\n",
                      "  ddoc: 'allusers',\n",
                      "  view: 'getVerifiedEmails'\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `getVerifiedEmails` view to exist. To create the design document with this view, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.post_view(\n",
                      "  db='users',\n",
                      "  ddoc='allusers',\n",
                      "  view='getVerifiedEmails'\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `getVerifiedEmails` view to exist. To create the design document with this view, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/{db}/_design/{ddoc}/_view/{view}/queries": {
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        },
        {
          "$ref": "#/components/parameters/PathDesignDocumentName"
        },
        {
          "$ref": "#/components/parameters/PathView"
        }
      ],
      "post": {
        "description": "This operation runs multiple specified view queries against the view function from the specified design document.",
        "operationId": "postViewQueries",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/ViewQueriesQuery"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/ViewQueriesResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404MissingNamedView"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "413": {
            "$ref": "#/components/responses/Error413TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          },
          "507": {
            "$ref": "#/components/responses/Error507InsufficientStorage"
          }
        },
        "summary": "Multi-query a MapReduce view",
        "tags": [
          "Views"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-codegen-request-body-name": "viewQueriesQuery",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `global query` per query in the request.",
        "x-sdk-stream-response": true,
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X POST \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/users/_design/allusers/_view/getVerifiedEmails/queries\" -H \"Content-Type: application/json\" --data '{\n",
                      "  \"queries\": [\n",
                      "    {\n",
                      "      \"include_docs\": true,\n",
                      "      \"limit\": 5\n",
                      "    },\n",
                      "    {\n",
                      "      \"descending\": true,\n",
                      "      \"skip\": 1\n",
                      "    }\n",
                      "  ]\n",
                      "}'\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `getVerifiedEmails` view to exist. To create the design document with this view, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      "  \"github.com/IBM/go-sdk-core/v5/core\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "postViewQueriesOptions := service.NewPostViewQueriesOptions(\n",
                      "  \"users\",\n",
                      "  \"allusers\",\n",
                      "  \"getVerifiedEmails\",\n",
                      "  []cloudantv1.ViewQuery{\n",
                      "    {\n",
                      "      IncludeDocs: core.BoolPtr(true),\n",
                      "      Limit:       core.Int64Ptr(5),\n",
                      "    },\n",
                      "    {\n",
                      "      Descending: core.BoolPtr(true),\n",
                      "      Skip:       core.Int64Ptr(1),\n",
                      "    },\n",
                      "  },\n",
                      ")\n",
                      "\n",
                      "viewQueriesResult, response, err := service.PostViewQueries(postViewQueriesOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(viewQueriesResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `getVerifiedEmails` view to exist. To create the design document with this view, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PostViewQueriesOptions;\n",
                      "import com.ibm.cloud.cloudant.v1.model.ViewQueriesResult;\n",
                      "import com.ibm.cloud.cloudant.v1.model.ViewQuery;\n",
                      "\n",
                      "import java.util.Arrays;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "ViewQuery query1 = new ViewQuery.Builder()\n",
                      "    .includeDocs(true)\n",
                      "    .limit(5)\n",
                      "    .build();\n",
                      "\n",
                      "ViewQuery query2 = new ViewQuery.Builder()\n",
                      "    .descending(true)\n",
                      "    .skip(1)\n",
                      "    .build();\n",
                      "\n",
                      "PostViewQueriesOptions queriesOptions =\n",
                      "    new PostViewQueriesOptions.Builder()\n",
                      "        .db(\"users\")\n",
                      "        .ddoc(\"allusers\")\n",
                      "        .queries(Arrays.asList(query1, query2))\n",
                      "        .view(\"getVerifiedEmails\")\n",
                      "        .build();\n",
                      "\n",
                      "ViewQueriesResult response =\n",
                      "    service.postViewQueries(queriesOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `getVerifiedEmails` view to exist. To create the design document with this view, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "const viewQueries: CloudantV1.ViewQuery[] = [\n",
                      "  {\n",
                      "    includeDocs: true,\n",
                      "    limit: 5\n",
                      "  },\n",
                      "  {\n",
                      "    descending: true,\n",
                      "    skip: 1\n",
                      "  }\n",
                      "];\n",
                      "service.postViewQueries({\n",
                      "  db: 'users',\n",
                      "  ddoc: 'allusers',\n",
                      "  queries: viewQueries,\n",
                      "  view: 'getVerifiedEmails'\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `getVerifiedEmails` view to exist. To create the design document with this view, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1, ViewQuery\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "query1 = ViewQuery(\n",
                      "  include_docs=True,\n",
                      "  limit=5\n",
                      ")\n",
                      "query2 = ViewQuery(\n",
                      "  descending=True,\n",
                      "  skip=1\n",
                      ")\n",
                      "\n",
                      "response = service.post_view_queries(\n",
                      "  db='users',\n",
                      "  ddoc='allusers',\n",
                      "  queries=[query1, query2],\n",
                      "  view='getVerifiedEmails'\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `getVerifiedEmails` view to exist. To create the design document with this view, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/{db}/_design/{ddoc}/{attachment_name}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        },
        {
          "$ref": "#/components/parameters/PathDesignDocumentName"
        },
        {
          "$ref": "#/components/parameters/PathAttachmentName"
        }
      ]
    },
    "/{db}/_design_docs": {
      "get": {
        "description": "Queries the index of all design document IDs. The results matching the query parameters are returned in a JSON object, including a list of matching design documents with basic contents, such as the ID and revision. When no query parameters are specified, results for all design documents in the database are returned. Optionally, the design document content or additional metadata can be included in the response.",
        "operationId": "getDesignDocs",
        "parameters": [
          {
            "$ref": "#/components/parameters/QueryConflicts"
          },
          {
            "$ref": "#/components/parameters/QueryDescending"
          },
          {
            "$ref": "#/components/parameters/QueryEndKey"
          },
          {
            "$ref": "#/components/parameters/QueryEndKeyDocId"
          },
          {
            "$ref": "#/components/parameters/QueryIncludeDocs"
          },
          {
            "$ref": "#/components/parameters/QueryInclusiveEnd"
          },
          {
            "$ref": "#/components/parameters/QueryKey"
          },
          {
            "$ref": "#/components/parameters/QueryKeys"
          },
          {
            "$ref": "#/components/parameters/QueryLimit"
          },
          {
            "$ref": "#/components/parameters/QuerySkip"
          },
          {
            "$ref": "#/components/parameters/QueryStartKey"
          },
          {
            "$ref": "#/components/parameters/QueryStartKeyDocId"
          },
          {
            "$ref": "#/components/parameters/QueryUpdateSeq"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/AllDocsResultDesign"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Query a list of all design documents in a database (GET)",
        "tags": [
          "Design Documents"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `global query` request.",
        "x-sdk-exclude": true,
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/users/_design_docs?descending=true\"\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        }
      ],
      "post": {
        "description": "Queries the index of all design document IDs. The results matching the request body parameters are returned in a JSON object, including a list of matching design documents with basic contents, such as the ID and revision. When no request body parameters are specified, results for all design documents in the database are returned. Optionally, the design document content or additional metadata can be included in the response.",
        "operationId": "postDesignDocs",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/AllDocsQuery"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/AllDocsResultDesign"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "413": {
            "$ref": "#/components/responses/Error413TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Query a list of all design documents in a database",
        "tags": [
          "Design Documents"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-codegen-request-body-name": "allDocsQuery",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `global query` request.",
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X POST \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/users/_design_docs\" -H \"Content-Type: application/json\" --data '{\n",
                      "  \"descending\": true\n",
                      "}'\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "postDesignDocsOptions := service.NewPostDesignDocsOptions(\n",
                      "  \"users\",\n",
                      ")\n",
                      "postDesignDocsOptions.SetDescending(true)\n",
                      "\n",
                      "allDocsResult, response, err := service.PostDesignDocs(postDesignDocsOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(allDocsResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.AllDocsResult;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PostDesignDocsOptions;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "PostDesignDocsOptions docsOptions =\n",
                      "    new PostDesignDocsOptions.Builder()\n",
                      "        .descending(true)\n",
                      "        .db(\"users\")\n",
                      "        .build();\n",
                      "\n",
                      "AllDocsResult response =\n",
                      "    service.postDesignDocs(docsOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.postDesignDocs({\n",
                      "  descending: true,\n",
                      "  db: 'users'\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.post_design_docs(\n",
                      "  descending=True,\n",
                      "  db='users'\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/{db}/_design_docs/queries": {
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        }
      ],
      "post": {
        "description": "This operation runs multiple view queries of all design documents in the database. This operation enables you to request numerous queries in a single request, in place of multiple POST `/{db}/_design_docs` requests.",
        "operationId": "postDesignDocsQueries",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/AllDocsQueriesQuery"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/AllDocsQueriesResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "413": {
            "$ref": "#/components/responses/Error413TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Multi-query the list of all design documents",
        "tags": [
          "Design Documents"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-codegen-request-body-name": "allDocsQueriesQuery",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `global query` per query in the request.",
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X POST \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/users/_design_docs/queries\" -H \"Content-Type: application/json\" --data '{\n",
                      "  \"queries\": [\n",
                      "    {\n",
                      "      \"descending\": true,\n",
                      "      \"include_docs\": true,\n",
                      "      \"limit\": 10\n",
                      "    },\n",
                      "    {\n",
                      "      \"inclusive_end\": true,\n",
                      "      \"start_key\": \"_design/allusers\",\n",
                      "      \"skip\": 1\n",
                      "    }\n",
                      "  ]\n",
                      "}'\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      "  \"github.com/IBM/go-sdk-core/v5/core\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "doc1 := cloudantv1.AllDocsQuery{\n",
                      "  Descending:  core.BoolPtr(true),\n",
                      "  IncludeDocs: core.BoolPtr(true),\n",
                      "  Limit:       core.Int64Ptr(10),\n",
                      "}\n",
                      "\n",
                      "doc2 := cloudantv1.AllDocsQuery{\n",
                      "  InclusiveEnd: core.BoolPtr(true),\n",
                      "  StartKey:     core.StringPtr(\"_design/allusers\"),\n",
                      "  Skip:         core.Int64Ptr(1),\n",
                      "}\n",
                      "\n",
                      "postDesignDocsQueriesOptions := service.NewPostDesignDocsQueriesOptions(\n",
                      "  \"users\",\n",
                      "  []cloudantv1.AllDocsQuery{\n",
                      "    doc1,\n",
                      "    doc2,\n",
                      "  },\n",
                      ")\n",
                      "\n",
                      "allDocsQueriesResult, response, err := service.PostDesignDocsQueries(postDesignDocsQueriesOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(allDocsQueriesResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.AllDocsQueriesResult;\n",
                      "import com.ibm.cloud.cloudant.v1.model.AllDocsQuery;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PostDesignDocsQueriesOptions;\n",
                      "\n",
                      "import java.util.Arrays;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "AllDocsQuery query1 = new AllDocsQuery.Builder()\n",
                      "    .descending(true)\n",
                      "    .includeDocs(true)\n",
                      "    .limit(10)\n",
                      "    .build();\n",
                      "AllDocsQuery query2 = new AllDocsQuery.Builder()\n",
                      "    .inclusiveEnd(true)\n",
                      "    .startKey(\"_design/allusers\")\n",
                      "    .skip(1)\n",
                      "    .build();\n",
                      "\n",
                      "PostDesignDocsQueriesOptions queriesOptions =\n",
                      "    new PostDesignDocsQueriesOptions.Builder()\n",
                      "        .db(\"users\")\n",
                      "        .queries(Arrays.asList(query1, query2))\n",
                      "        .build();\n",
                      "\n",
                      "AllDocsQueriesResult response =\n",
                      "    service.postDesignDocsQueries(queriesOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "const doc1: CloudantV1.AllDocsQuery = {\n",
                      "  descending: true,\n",
                      "  includeDocs: true,\n",
                      "  limit: 10\n",
                      "};\n",
                      "const doc2: CloudantV1.AllDocsQuery = {\n",
                      "  inclusiveEnd: true,\n",
                      "  startKey: '_design/allusers',\n",
                      "  skip: 1\n",
                      "};\n",
                      "\n",
                      "const allDocsQueries: CloudantV1.AllDocsQuery[] = [doc1, doc2];\n",
                      "\n",
                      "service.postDesignDocsQueries({\n",
                      "  db: 'users',\n",
                      "  queries: allDocsQueries\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import AllDocsQuery, CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "doc1 = AllDocsQuery(\n",
                      "  descending=True,\n",
                      "  include_docs=True,\n",
                      "  limit=10\n",
                      ")\n",
                      "doc2 = AllDocsQuery(\n",
                      "  inclusive_end=True,\n",
                      "  start_key='_design/allusers',\n",
                      "  skip=1\n",
                      ")\n",
                      "\n",
                      "response = service.post_design_docs_queries(\n",
                      "  db='users',\n",
                      "  queries=[doc1, doc2]\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/{db}/_ensure_full_commit": {
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        }
      ]
    },
    "/{db}/_explain": {
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        }
      ],
      "post": {
        "description": "Shows which index is being used by the query. Parameters are the same as the [`_find` endpoint](#postfind).",
        "operationId": "postExplain",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/FindQuery"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/ExplainResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "413": {
            "$ref": "#/components/responses/Error413TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve information about which index is used for a query",
        "tags": [
          "Queries"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-codegen-request-body-name": "findQuery",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `global query` request.",
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X POST \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/users/_explain\" -H \"Content-Type: application/json\" --data '{\n",
                      "  \"execution_stats\": true,\n",
                      "  \"limit\": 10,\n",
                      "  \"selector\": {\"type\": {\"$eq\": \"user\"}}\n",
                      "}'\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "postExplainOptions := service.NewPostExplainOptions(\n",
                      "  \"users\",\n",
                      "  map[string]interface{}{\n",
                      "    \"type\": map[string]string{\n",
                      "      \"$eq\": \"user\",\n",
                      "    },\n",
                      "  },\n",
                      ")\n",
                      "postExplainOptions.SetExecutionStats(true)\n",
                      "postExplainOptions.SetLimit(10)\n",
                      "\n",
                      "explainResult, response, err := service.PostExplain(postExplainOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(explainResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.ExplainResult;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PostExplainOptions;\n",
                      "\n",
                      "import java.util.Collections;\n",
                      "import java.util.Map;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "Map<String, Object> selector = Collections.singletonMap(\n",
                      "    \"type\",\n",
                      "    Collections.singletonMap(\"$eq\", \"user\"));\n",
                      "\n",
                      "PostExplainOptions explainOptions =\n",
                      "    new PostExplainOptions.Builder()\n",
                      "        .db(\"users\")\n",
                      "        .executionStats(true)\n",
                      "        .limit(10)\n",
                      "        .selector(selector)\n",
                      "        .build();\n",
                      "\n",
                      "ExplainResult response =\n",
                      "    service.postExplain(explainOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "const selector = {\n",
                      "  type: {\n",
                      "    \"$eq\": \"user\"\n",
                      "  }\n",
                      "};\n",
                      "\n",
                      "service.postExplain({\n",
                      "  db: 'users',\n",
                      "  executionStats: true,\n",
                      "  limit: 10,\n",
                      "  selector: selector\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.post_explain(\n",
                      "  db='users',\n",
                      "  execution_stats=True,\n",
                      "  limit=10,\n",
                      "  selector={'type': {\"$eq\": \"user\"}}\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/{db}/_find": {
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        }
      ],
      "post": {
        "description": "Query documents by using a\ndeclarative JSON querying syntax.\nIt's best practice to create an appropriate index\nfor all fields in selector by using the `_index` endpoint.\n\nQueries without an appropriate backing index by default\nfallback to using the built-in `_all_docs` index.\nThis isn't recommended because it has a significant\nperformance impact causing a full scan of the database\nwith each request.\nIn this case the response body includes a warning field\nrecommending the creation of an index.\n\nTo avoid the fallback behavior set the `allow_fallback` option\nto `false` and the server responds with a `400` status code\nif no suitable index exists.\nIf you want to use only a specific index for your query set\n`allow_fallback` to `false` and set the `use_index` option.",
        "operationId": "postFind",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/FindQuery"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/FindResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "413": {
            "$ref": "#/components/responses/Error413TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          },
          "507": {
            "$ref": "#/components/responses/Error507InsufficientStorage"
          }
        },
        "summary": "Query an index by using selector syntax",
        "tags": [
          "Queries"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-codegen-request-body-name": "findQuery",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `global query` request.",
        "x-sdk-stream-response": true,
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request for \"json\" index type",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X POST \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/users/_find\" -H \"Content-Type: application/json\" --data '{\n",
                      "  \"fields\": [\"_id\", \"type\", \"name\", \"email\"],\n",
                      "  \"limit\": 3,\n",
                      "  \"selector\": {\n",
                      "    \"email_verified\": {\n",
                      "      \"$eq\": true\n",
                      "    }\n",
                      "  },\n",
                      "  \"sort\": [{\n",
                      "    \"email\": \"desc\"\n",
                      "  }]\n",
                      "}'\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `getUserByEmail` Cloudant Query \"json\" index to exist. To create the index, see [Create a new index on a database.](#postindex)"
                    ]
                  }
                ]
              },
              {
                "name": "Example request for \"text\" index type",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X POST \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/users/_find\" -H \"Content-Type: application/json\" --data '{\n",
                      "  \"fields\": [\"_id\", \"type\", \"name\", \"email\", \"address\"],\n",
                      "  \"limit\": 3,\n",
                      "  \"selector\": {\n",
                      "    \"address\": {\n",
                      "      \"$exists\": true\n",
                      "    }\n",
                      "  }\n",
                      "}'\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `getUserByAddress` Cloudant Query \"text\" index to exist. To create the index, see [Create a new index on a database.](#postindex)"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request for \"json\" index type",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "postFindOptions := service.NewPostFindOptions(\n",
                      "  \"users\",\n",
                      "  map[string]interface{}{\n",
                      "    \"email_verified\": map[string]bool{\n",
                      "      \"$eq\": true,\n",
                      "    },\n",
                      "  },\n",
                      ")\n",
                      "postFindOptions.SetFields(\n",
                      "  []string{\"_id\", \"type\", \"name\", \"email\"},\n",
                      ")\n",
                      "postFindOptions.SetSort([]map[string]string{{\"email\": \"desc\"}})\n",
                      "postFindOptions.SetLimit(3)\n",
                      "\n",
                      "findResult, response, err := service.PostFind(postFindOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(findResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `getUserByEmail` Cloudant Query \"json\" index to exist. To create the index, see [Create a new index on a database.](#postindex)"
                    ]
                  }
                ]
              },
              {
                "name": "Example request for \"text\" index type",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "postFindOptions := service.NewPostFindOptions(\n",
                      "  \"users\",\n",
                      "  map[string]interface{}{\n",
                      "    \"address\": map[string]boolean{\n",
                      "      \"$exists\": true,\n",
                      "    },\n",
                      "  },\n",
                      ")\n",
                      "postFindOptions.SetFields(\n",
                      "  []string{\"_id\", \"type\", \"name\", \"email\", \"address\"},\n",
                      ")\n",
                      "postFindOptions.SetLimit(3)\n",
                      "\n",
                      "findResult, response, err := service.PostFind(postFindOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(findResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `getUserByAddress` Cloudant Query \"text\" index to exist. To create the index, see [Create a new index on a database.](#postindex)"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request for \"json\" index type",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.FindResult;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PostFindOptions;\n",
                      "\n",
                      "import java.util.Arrays;\n",
                      "import java.util.Collections;\n",
                      "import java.util.Map;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "Map<String, Object> selector = Collections.singletonMap(\n",
                      "    \"email_verified\",\n",
                      "    Collections.singletonMap(\"$eq\", true));\n",
                      "\n",
                      "Map<String, String> fieldSort = Collections.singletonMap(\"email\", \"desc\");\n",
                      "\n",
                      "PostFindOptions findOptions = new PostFindOptions.Builder()\n",
                      "    .db(\"users\")\n",
                      "    .selector(selector)\n",
                      "    .fields(Arrays.asList(\"_id\", \"type\", \"name\", \"email\"))\n",
                      "    .addSort(fieldSort)\n",
                      "    .limit(3)\n",
                      "    .build();\n",
                      "\n",
                      "FindResult response =\n",
                      "    service.postFind(findOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `getUserByEmail` Cloudant Query \"json\" index to exist. To create the index, see [Create a new index on a database.](#postindex)"
                    ]
                  }
                ]
              },
              {
                "name": "Example request for \"text\" index type",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.FindResult;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PostFindOptions;\n",
                      "\n",
                      "import java.util.Arrays;\n",
                      "import java.util.Collections;\n",
                      "import java.util.Map;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "Map<String, Object> selector = Collections.singletonMap(\n",
                      "    \"address\",\n",
                      "    Collections.singletonMap(\"$exists\", true));\n",
                      "\n",
                      "PostFindOptions findOptions = new PostFindOptions.Builder()\n",
                      "    .db(\"users\")\n",
                      "    .selector(selector)\n",
                      "    .fields(Arrays.asList(\"_id\", \"type\", \"name\", \"email\", \"address\"))\n",
                      "    .limit(3)\n",
                      "    .build();\n",
                      "\n",
                      "FindResult response =\n",
                      "    service.postFind(findOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `getUserByAddress` Cloudant Query \"text\" index to exist. To create the index, see [Create a new index on a database.](#postindex)"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request for \"json\" index type",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "const selector: CloudantV1.JsonObject = {\n",
                      "  email_verified: {\n",
                      "    '$eq': true\n",
                      "  }\n",
                      "};\n",
                      "\n",
                      "const sort: CloudantV1.JsonObject = {\n",
                      "  email: 'desc'\n",
                      "};\n",
                      "\n",
                      "service.postFind({\n",
                      "  db: 'users',\n",
                      "  selector: selector,\n",
                      "  fields: ['_id', 'type', 'name', 'email'],\n",
                      "  sort: [sort],\n",
                      "  limit: 3\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `getUserByEmail` Cloudant Query \"json\" index to exist. To create the index, see [Create a new index on a database.](#postindex)"
                    ]
                  }
                ]
              },
              {
                "name": "Example request for \"text\" index type",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "const selector: CloudantV1.JsonObject = {\n",
                      "  address: {\n",
                      "    '$exists': true\n",
                      "  }\n",
                      "};\n",
                      "\n",
                      "service.postFind({\n",
                      "  db: 'users',\n",
                      "  selector: selector,\n",
                      "  fields: ['_id', 'type', 'name', 'email', 'address'],\n",
                      "  limit: 3\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `getUserByAddress` Cloudant Query \"text\" index to exist. To create the index, see [Create a new index on a database.](#postindex)"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request for \"json\" index type",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.post_find(\n",
                      "  db='users',\n",
                      "  selector={'email_verified': {'$eq': True}},\n",
                      "  fields=[\"_id\", \"type\", \"name\", \"email\"],\n",
                      "  sort=[{'email': 'desc'}],\n",
                      "  limit=3\n",
                      ").get_result()\n",
                      "print(response)\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `getUserByEmail` Cloudant Query \"json\" index to exist. To create the index, see [Create a new index on a database.](#postindex)"
                    ]
                  }
                ]
              },
              {
                "name": "Example request for \"text\" index type",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.post_find(\n",
                      "  db='users',\n",
                      "  selector={'address': {'$exists': True}},\n",
                      "  fields=[\"_id\", \"type\", \"name\", \"email\", \"address\"],\n",
                      "  limit=3\n",
                      ").get_result()\n",
                      "print(response)\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `getUserByAddress` Cloudant Query \"text\" index to exist. To create the index, see [Create a new index on a database.](#postindex)"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/{db}/_index": {
      "get": {
        "description": "When you make a GET request to `/db/_index`, you get a list of all the indexes using `\"language\":\"query\"` in the database and the primary index. In addition to the information available through this API, the indexes are stored in the `indexes` property of their respective design documents.",
        "operationId": "getIndexesInformation",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/IndexesInformation"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve information about all indexes",
        "tags": [
          "Queries"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `global query` request.",
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/users/_index\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "getIndexesInformationOptions := service.NewGetIndexesInformationOptions(\n",
                      "  \"users\",\n",
                      ")\n",
                      "\n",
                      "indexesInformation, response, err := service.GetIndexesInformation(getIndexesInformationOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(indexesInformation, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.GetIndexesInformationOptions;\n",
                      "import com.ibm.cloud.cloudant.v1.model.IndexesInformation;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "GetIndexesInformationOptions indexesInformationOptions =\n",
                      "    new GetIndexesInformationOptions.Builder()\n",
                      "        .db(\"users\")\n",
                      "        .build();\n",
                      "\n",
                      "IndexesInformation response =\n",
                      "    service.getIndexesInformation(indexesInformationOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.getIndexesInformation({\n",
                      "  db: 'users'\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.get_indexes_information(\n",
                      "  db='users'\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        }
      ],
      "post": {
        "description": "Create a new index on a database.",
        "operationId": "postIndex",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/IndexConfiguration"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/IndexResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "413": {
            "$ref": "#/components/responses/Error413TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Create a new index on a database",
        "tags": [
          "Queries"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-codegen-request-body-name": "indexConfiguration",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.design-document.write"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.design-document.write"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `global query` request.",
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request using \"json\" type index",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X POST \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/users/_index\" -H \"Content-Type: application/json\" --data '{\n",
                      "    \"ddoc\": \"json-index\",\n",
                      "    \"index\": {\n",
                      "      \"fields\": [{\n",
                      "        \"email\": \"asc\"\n",
                      "      }]\n",
                      "    },\n",
                      "    \"name\": \"getUserByEmail\",\n",
                      "    \"type\": \"json\"\n",
                      "}'\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "Type \"json\" index fields require an object that maps the name of a field to a sort direction."
                    ]
                  }
                ]
              },
              {
                "name": "Example request using \"text\" type index",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X POST \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/users/_index\" -H \"Content-Type: application/json\" --data '{\n",
                      "    \"ddoc\": \"text-index\",\n",
                      "    \"index\": {\n",
                      "      \"fields\": [{\n",
                      "        \"name\": \"address\",\n",
                      "        \"type\": \"string\"\n",
                      "      }]\n",
                      "    },\n",
                      "    \"name\": \"getUserByAddress\",\n",
                      "    \"type\": \"text\"\n",
                      "}'\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "Type \"text\" index fields require an object with a name and type properties for the field."
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request using \"json\" type index",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      "  \"github.com/IBM/go-sdk-core/v5/core\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "// Type \"json\" index fields require an object that maps the name of a field to a sort direction.\n",
                      "var indexField cloudantv1.IndexField\n",
                      "indexField.SetProperty(\"email\", core.StringPtr(\"asc\"))\n",
                      "\n",
                      "postIndexOptions := service.NewPostIndexOptions(\n",
                      "  \"users\",\n",
                      "  &cloudantv1.IndexDefinition{\n",
                      "    Fields: []cloudantv1.IndexField{\n",
                      "      indexField,\n",
                      "    },\n",
                      "  },\n",
                      ")\n",
                      "postIndexOptions.SetDdoc(\"json-index\")\n",
                      "postIndexOptions.SetName(\"getUserByEmail\")\n",
                      "postIndexOptions.SetType(\"json\")\n",
                      "\n",
                      "indexResult, response, err := service.PostIndex(postIndexOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(indexResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              },
              {
                "name": "Example request using \"text\" type index",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      "  \"github.com/IBM/go-sdk-core/v5/core\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "// Type \"text\" index fields require an object with a name and type properties for the field.\n",
                      "indexField := cloudantv1.IndexField{\n",
                      "  Name: core.StringPtr(\"address\"),\n",
                      "  Type: core.StringPtr(cloudantv1.IndexFieldTypeStringConst),\n",
                      "}\n",
                      "\n",
                      "postIndexOptions := service.NewPostIndexOptions(\n",
                      "  \"users\",\n",
                      "  &cloudantv1.IndexDefinition{\n",
                      "    Fields: []cloudantv1.IndexField{\n",
                      "      indexField,\n",
                      "    },\n",
                      "  },\n",
                      ")\n",
                      "postIndexOptions.SetDdoc(\"text-index\")\n",
                      "postIndexOptions.SetName(\"getUserByAddress\")\n",
                      "postIndexOptions.SetType(\"text\")\n",
                      "\n",
                      "indexResult, response, err := service.PostIndex(postIndexOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(indexResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request using \"json\" type index",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.IndexDefinition;\n",
                      "import com.ibm.cloud.cloudant.v1.model.IndexField;\n",
                      "import com.ibm.cloud.cloudant.v1.model.IndexResult;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PostIndexOptions;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "// Type \"json\" index fields require an object that maps the name of a field to a sort direction.\n",
                      "\n",
                      "IndexField field = new IndexField.Builder()\n",
                      "    .add(\"email\", \"asc\")\n",
                      "    .build();\n",
                      "\n",
                      "IndexDefinition indexDefinition = new IndexDefinition.Builder()\n",
                      "    .addFields(field)\n",
                      "    .build();\n",
                      "\n",
                      "PostIndexOptions indexOptions = new PostIndexOptions.Builder()\n",
                      "    .db(\"users\")\n",
                      "    .ddoc(\"json-index\")\n",
                      "    .index(indexDefinition)\n",
                      "    .name(\"getUserByEmail\")\n",
                      "    .type(\"json\")\n",
                      "    .build();\n",
                      "\n",
                      "IndexResult response =\n",
                      "    service.postIndex(indexOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              },
              {
                "name": "Example request using \"text\" type index",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.IndexDefinition;\n",
                      "import com.ibm.cloud.cloudant.v1.model.IndexField;\n",
                      "import com.ibm.cloud.cloudant.v1.model.IndexResult;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PostIndexOptions;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "// Type \"text\" index fields require an object with a name and type properties for the field.\n",
                      "IndexField field = new IndexField.Builder()\n",
                      "    .name(\"address\")\n",
                      "    .type(IndexField.Type.STRING)\n",
                      "    .build();\n",
                      "\n",
                      "IndexDefinition indexDefinition = new IndexDefinition.Builder()\n",
                      "    .addFields(field)\n",
                      "    .build();\n",
                      "\n",
                      "PostIndexOptions indexOptions = new PostIndexOptions.Builder()\n",
                      "    .db(\"users\")\n",
                      "    .ddoc(\"text-index\")\n",
                      "    .index(indexDefinition)\n",
                      "    .name(\"getUserByAddress\")\n",
                      "    .type(\"text\")\n",
                      "    .build();\n",
                      "\n",
                      "IndexResult response =\n",
                      "    service.postIndex(indexOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request using \"json\" type index",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "// Type \"json\" index fields require an object that maps the name of a field to a sort direction.\n",
                      "const indexField: CloudantV1.IndexField = {\n",
                      "  email: 'asc'\n",
                      "}\n",
                      "\n",
                      "const index: CloudantV1.IndexDefinition = {\n",
                      "  fields: [indexField]\n",
                      "}\n",
                      "\n",
                      "service.postIndex({\n",
                      "  db: 'users',\n",
                      "  ddoc: 'json-index',\n",
                      "  name: 'getUserByEmail',\n",
                      "  index: index,\n",
                      "  type: 'json'\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              },
              {
                "name": "Example request using \"text\" type index",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "// Type \"text\" index fields require an object with a name and type properties for the field.\n",
                      "const indexField: CloudantV1.IndexField = {\n",
                      "  name: 'address',\n",
                      "  type: CloudantV1.IndexField.Constants.Type.STRING\n",
                      "}\n",
                      "\n",
                      "const index: CloudantV1.IndexDefinition = {\n",
                      "  fields: [indexField]\n",
                      "}\n",
                      "\n",
                      "service.postIndex({\n",
                      "  db: 'users',\n",
                      "  ddoc: 'text-index',\n",
                      "  name: 'getUserByAddress',\n",
                      "  index: index,\n",
                      "  type: 'text'\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request using \"json\" type index",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1, IndexDefinition, IndexField\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "# Type \"json\" index fields require an object that maps the name of a field to a sort direction.\n",
                      "index_field = IndexField(\n",
                      "  email=\"asc\"\n",
                      ")\n",
                      "index = IndexDefinition(\n",
                      "  fields=[index_field]\n",
                      ")\n",
                      "\n",
                      "response = service.post_index(\n",
                      "  db='users',\n",
                      "  ddoc='json-index',\n",
                      "  name='getUserByEmail',\n",
                      "  index=index,\n",
                      "  type='json'\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              },
              {
                "name": "Example request using \"text\" type index",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1, IndexDefinition, IndexField\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "# Type \"text\" index fields require an object with a name and type properties for the field.\n",
                      "index_field = IndexField(\n",
                      "  name=\"address\",\n",
                      "  type=IndexField.TypeEnum.STRING\n",
                      ")\n",
                      "index = IndexDefinition(\n",
                      "  fields=[index_field]\n",
                      ")\n",
                      "\n",
                      "response = service.post_index(\n",
                      "  db='users',\n",
                      "  ddoc='text-index',\n",
                      "  name='getUserByAddress',\n",
                      "  index=index,\n",
                      "  type='text'\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/{db}/_index/_design/{ddoc}/{type}/{index}": {
      "delete": {
        "description": "Delete the index functions from the design document and index files on the server.",
        "operationId": "deleteIndex",
        "parameters": [
          {
            "$ref": "#/components/parameters/PathDb"
          },
          {
            "$ref": "#/components/parameters/PathDesignDocumentName"
          },
          {
            "$ref": "#/components/parameters/PathType"
          },
          {
            "$ref": "#/components/parameters/PathIndex"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/Ok"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Delete an index",
        "tags": [
          "Queries"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.design-document.write"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.design-document.write"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `global query` request.",
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X DELETE \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/users/_index/_design/json-index/json/getUserByName\"\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example will fail if `getUserByName` index doesn't exist. To create the index, see [Create a new index on a database.](#postindex)"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "deleteIndexOptions := service.NewDeleteIndexOptions(\n",
                      "  \"users\",\n",
                      "  \"json-index\",\n",
                      "  \"json\",\n",
                      "  \"getUserByName\",\n",
                      ")\n",
                      "\n",
                      "ok, response, err := service.DeleteIndex(deleteIndexOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(ok, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example will fail if `getUserByName` index doesn't exist. To create the index, see [Create a new index on a database.](#postindex)"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.DeleteIndexOptions;\n",
                      "import com.ibm.cloud.cloudant.v1.model.Ok;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "DeleteIndexOptions indexOptions = new DeleteIndexOptions.Builder()\n",
                      "    .db(\"users\")\n",
                      "    .ddoc(\"json-index\")\n",
                      "    .index(\"getUserByName\")\n",
                      "    .type(\"json\")\n",
                      "    .build();\n",
                      "\n",
                      "Ok response =\n",
                      "    service.deleteIndex(indexOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example will fail if `getUserByName` index doesn't exist. To create the index, see [Create a new index on a database.](#postindex)"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.deleteIndex({\n",
                      "  db: 'users',\n",
                      "  ddoc: 'json-index',\n",
                      "  index: 'getUserByName',\n",
                      "  type: 'json'\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example will fail if `getUserByName` index doesn't exist. To create the index, see [Create a new index on a database.](#postindex)"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.delete_index(\n",
                      "  db='users',\n",
                      "  ddoc='json-index',\n",
                      "  index='getUserByName',\n",
                      "  type='json'\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example will fail if `getUserByName` index doesn't exist. To create the index, see [Create a new index on a database.](#postindex)"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/{db}/_local/{doc_id}": {
      "delete": {
        "description": "Deletes the specified local document. The semantics are identical to deleting a standard document in the specified database, except that the document is not replicated.",
        "operationId": "deleteLocalDocument",
        "parameters": [
          {
            "$ref": "#/components/parameters/QueryBatch"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/DocumentResult"
          },
          "202": {
            "$ref": "#/components/responses/DocumentResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Delete a local document",
        "tags": [
          "Local Documents"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.local-document.write"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.local-document.write"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `write` request.",
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X DELETE \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/orders/_local/local-0007741142412418284\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "deleteLocalDocumentOptions := service.NewDeleteLocalDocumentOptions(\n",
                      "  \"orders\",\n",
                      "  \"local-0007741142412418284\",\n",
                      ")\n",
                      "\n",
                      "documentResult, response, err := service.DeleteLocalDocument(deleteLocalDocumentOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(documentResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.DeleteLocalDocumentOptions;\n",
                      "import com.ibm.cloud.cloudant.v1.model.DocumentResult;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "DeleteLocalDocumentOptions documentOptions =\n",
                      "    new DeleteLocalDocumentOptions.Builder()\n",
                      "        .db(\"orders\")\n",
                      "        .docId(\"local-0007741142412418284\")\n",
                      "        .build();\n",
                      "\n",
                      "DocumentResult response =\n",
                      "    service.deleteLocalDocument(documentOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.deleteLocalDocument({\n",
                      "  db: 'orders',\n",
                      "  docId: 'local-0007741142412418284'\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.delete_local_document(\n",
                      "  db='orders',\n",
                      "  doc_id='local-0007741142412418284'\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "get": {
        "description": "Retrieves the specified local document. The semantics are identical to accessing a standard document in the specified database, except that the document is not replicated.",
        "operationId": "getLocalDocument",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderIfNoneMatch"
          },
          {
            "$ref": "#/components/parameters/QueryAttachments"
          },
          {
            "$ref": "#/components/parameters/QueryAttEncodingInfo"
          },
          {
            "$ref": "#/components/parameters/QueryAttsSince"
          },
          {
            "$ref": "#/components/parameters/QueryLocalSeq"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/Document"
          },
          "304": {
            "$ref": "#/components/responses/NotModified"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve a local document",
        "tags": [
          "Local Documents"
        ],
        "x-accept-default": "application/json",
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `read` request.",
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/orders/_local/local-0007741142412418284\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "getLocalDocumentOptions := service.NewGetLocalDocumentOptions(\n",
                      "  \"orders\",\n",
                      "  \"local-0007741142412418284\",\n",
                      ")\n",
                      "\n",
                      "document, response, err := service.GetLocalDocument(getLocalDocumentOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(document, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.Document;\n",
                      "import com.ibm.cloud.cloudant.v1.model.GetLocalDocumentOptions;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "GetLocalDocumentOptions documentOptions =\n",
                      "    new GetLocalDocumentOptions.Builder()\n",
                      "        .db(\"orders\")\n",
                      "        .docId(\"local-0007741142412418284\")\n",
                      "        .build();\n",
                      "\n",
                      "Document response =\n",
                      "    service.getLocalDocument(documentOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.getLocalDocument({\n",
                      "  db: 'orders',\n",
                      "  docId: 'local-0007741142412418284'\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.get_local_document(\n",
                      "  db='orders',\n",
                      "  doc_id='local-0007741142412418284'\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "head": {
        "description": "Retrieves the HTTP headers containing minimal amount of information about the specified local document. Since the response body is empty, using the HEAD method is a lightweight way to check if the local document exists or not.",
        "operationId": "headLocalDocument",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderIfNoneMatch"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/DocumentHead"
          },
          "304": {
            "$ref": "#/components/responses/NotModified"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve HTTP headers for a local document",
        "tags": [
          "Local Documents"
        ],
        "x-accept-default": "application/json",
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `read` request.",
        "x-visible-environment": "default"
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        },
        {
          "$ref": "#/components/parameters/PathDocId"
        }
      ],
      "put": {
        "description": "Stores the specified local document. The semantics are identical to storing a standard document in the specified database, except that the document is not replicated.",
        "operationId": "putLocalDocument",
        "parameters": [
          {
            "$ref": "#/components/parameters/QueryBatch"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Document"
        },
        "responses": {
          "201": {
            "$ref": "#/components/responses/DocumentResult"
          },
          "202": {
            "$ref": "#/components/responses/DocumentResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "413": {
            "$ref": "#/components/responses/Error413DocumentTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          },
          "507": {
            "$ref": "#/components/responses/Error507InsufficientStorage"
          }
        },
        "summary": "Create or modify a local document",
        "tags": [
          "Local Documents"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-codegen-request-body-name": "document",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.local-document.write"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.local-document.write"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `write` request.",
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X PUT \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/orders/_local/local-0007741142412418284\" -H \"Content-Type: application/json\" --data '{\n",
                      "  \"type\": \"order\",\n",
                      "  \"user\": \"Bob Smith\",\n",
                      "  \"orderid\": \"0007741142412418284\",\n",
                      "  \"userid\": \"abc123\",\n",
                      "  \"basket\": [\n",
                      "    {\n",
                      "      \"name\": \"Salter - Digital Kitchen Scales\",\n",
                      "      \"price\": 14.99\n",
                      "    },\n",
                      "    {\n",
                      "      \"name\": \"Kenwood - Stand Mixer\",\n",
                      "      \"price\": 199.99\n",
                      "    }\n",
                      "  ],\n",
                      "  \"total\": 214.98,\n",
                      "  \"deliveryAddress\": \"19 Front Street, Darlington, DL5 1TY\",\n",
                      "  \"delivered\": \"true\",\n",
                      "  \"courier\": \"UPS\",\n",
                      "  \"courierid\": \"15125425151261289\",\n",
                      "  \"date\": \"2019-01-28T10:44:22.000Z\"\n",
                      "}'\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "localDocument := cloudantv1.Document{}\n",
                      "properties := map[string]interface{}{\n",
                      "  \"type\":            \"order\",\n",
                      "  \"user\":            \"Bob Smith\",\n",
                      "  \"orderId\":         \"0007741142412418284\",\n",
                      "  \"userId\":          \"abc123\",\n",
                      "  \"total\":           214.98,\n",
                      "  \"deliveryAddress\": \"19 Front Street, Darlington, DL5 1TY\",\n",
                      "  \"delivered\":       true,\n",
                      "  \"courier\":         \"UPS\",\n",
                      "  \"courierId\":       \"15125425151261289\",\n",
                      "  \"date\":            \"2019-01-28T10:44:22.000Z\",\n",
                      "}\n",
                      "for key, value := range properties {\n",
                      "  localDocument.SetProperty(key, value)\n",
                      "}\n",
                      "\n",
                      "putLocalDocumentOptions := service.NewPutLocalDocumentOptions(\n",
                      "  \"orders\",\n",
                      "  \"local-0007741142412418284\",\n",
                      ")\n",
                      "putLocalDocumentOptions.SetDocument(&localDocument)\n",
                      "\n",
                      "documentResult, response, err := service.PutLocalDocument(putLocalDocumentOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(documentResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.Document;\n",
                      "import com.ibm.cloud.cloudant.v1.model.DocumentResult;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PutLocalDocumentOptions;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "Document orderDocument = new Document();\n",
                      "orderDocument.put(\"type\", \"order\");\n",
                      "orderDocument.put(\"user\", \"Bob Smith\");\n",
                      "orderDocument.put(\"orderId\", \"0007741142412418284\");\n",
                      "orderDocument.put(\"userId\", \"abc123\");\n",
                      "orderDocument.put(\"total\", 214.98);\n",
                      "orderDocument.put(\"deliveryAddress\", \"19 Front Street, Darlington, DL5 1TY\");\n",
                      "orderDocument.put(\"delivered\", true);\n",
                      "orderDocument.put(\"courier\", \"UPS\");\n",
                      "orderDocument.put(\"courierId\", \"15125425151261289\");\n",
                      "orderDocument.put(\"date\", \"2019-01-28T10:44:22.000Z\");\n",
                      "\n",
                      "PutLocalDocumentOptions documentOptions =\n",
                      "    new PutLocalDocumentOptions.Builder()\n",
                      "        .db(\"orders\")\n",
                      "        .docId(\"local-0007741142412418284\")\n",
                      "        .document(orderDocument)\n",
                      "        .build();\n",
                      "\n",
                      "DocumentResult response =\n",
                      "    service.putLocalDocument(documentOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "const localDocument: CloudantV1.Document = {\n",
                      "  type: 'order',\n",
                      "  user: 'Bob Smith',\n",
                      "  orderId: '0007741142412418284',\n",
                      "  userId: 'abc123',\n",
                      "  total: 214.98,\n",
                      "  deliveryAddress: '19 Front Street, Darlington, DL5 1TY',\n",
                      "  delivered: 'true',\n",
                      "  courier: 'UPS',\n",
                      "  courierId: '15125425151261289',\n",
                      "  date: '2019-01-28T10:44:22.000Z'\n",
                      "}\n",
                      "\n",
                      "service.putLocalDocument({\n",
                      "  db: 'orders',\n",
                      "  docId: 'local-0007741142412418284',\n",
                      "  document: localDocument\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import Document, CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "local_document = Document(\n",
                      "   type='order',\n",
                      "   user='Bob Smith',\n",
                      "   orderId='0007741142412418284',\n",
                      "   userId='abc123',\n",
                      "   total=214.98,\n",
                      "   deliveryAddress='19 Front Street, Darlington, DL5 1TY',\n",
                      "   delivered='true',\n",
                      "   courier='UPS',\n",
                      "   courierId='15125425151261289',\n",
                      "   date='2019-01-28T10:44:22.000Z'\n",
                      ")\n",
                      "\n",
                      "response = service.put_local_document(\n",
                      "  db='orders',\n",
                      "  doc_id='local-0007741142412418284',\n",
                      "  document=local_document,\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "x-copy": {
        "description": "Copies the specified local document. The semantics are identical to copying a standard document in the specified database, except that the document is not replicated.",
        "operationId": "copyLocalDocument",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderDestination"
          },
          {
            "$ref": "#/components/parameters/QueryBatch"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "201": {
            "$ref": "#/components/responses/DocumentResult"
          },
          "202": {
            "$ref": "#/components/responses/DocumentResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          },
          "507": {
            "$ref": "#/components/responses/Error507InsufficientStorage"
          }
        },
        "summary": "Copy a local document",
        "tags": [
          "Local Documents"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-ibm-events": {
          "description": "In addition to `cloudantnosqldb.any-document.read` this operation requires one of the three `write` events appropriate to the destination document type.",
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            },
            {
              "name": "cloudantnosqldb.data-document.write"
            },
            {
              "name": "cloudantnosqldb.design-document.write"
            },
            {
              "name": "cloudantnosqldb.local-document.write"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            },
            {
              "name": "cloudantnosqldb.data-document.write"
            },
            {
              "name": "cloudantnosqldb.design-document.write"
            },
            {
              "name": "cloudantnosqldb.local-document.write"
            }
          ],
          "description": "In addition to `cloudantnosqldb.any-document.read` this operation requires one of the three `write` permissions appropriate to the destination document type."
        },
        "x-rate-limit": "This operation consumes one `read` and one `write` request.",
        "x-visible-environment": "default"
      }
    },
    "/{db}/_local_docs": {
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        }
      ]
    },
    "/{db}/_local_docs/queries": {
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        }
      ]
    },
    "/{db}/_missing_revs": {
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        }
      ]
    },
    "/{db}/_partition/{partition_key}": {
      "get": {
        "description": "Given a partition key, return the database name, sizes, partition, doc count, and doc delete count.",
        "operationId": "getPartitionInformation",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/PartitionInformation"
          },
          "400": {
            "$ref": "#/components/responses/Error400InvalidPartition"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve information about a database partition",
        "tags": [
          "Partitioned Databases"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/products/_partition/small-appliances\" -H \"Content-Type: application/json\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "getPartitionInformationOptions := service.NewGetPartitionInformationOptions(\n",
                      "  \"events\",\n",
                      "  \"ns1HJS13AMkK\",\n",
                      ")\n",
                      "\n",
                      "partitionInformation, response, err := service.GetPartitionInformation(getPartitionInformationOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(partitionInformation, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.GetPartitionInformationOptions;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PartitionInformation;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "GetPartitionInformationOptions informationOptions =\n",
                      "    new GetPartitionInformationOptions.Builder()\n",
                      "        .db(\"events\")\n",
                      "        .partitionKey(\"ns1HJS13AMkK\")\n",
                      "        .build();\n",
                      "\n",
                      "PartitionInformation response =\n",
                      "    service.getPartitionInformation(informationOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.getPartitionInformation({\n",
                      "  db: 'events',\n",
                      "  partitionKey: 'ns1HJS13AMkK'\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.get_partition_information(\n",
                      "  db='events',\n",
                      "  partition_key='ns1HJS13AMkK'\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "head": {
        "description": "Retrieves the HTTP headers for information about a database partition.",
        "operationId": "headPartitionInformation",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/PartitionInformationHead"
          },
          "400": {
            "$ref": "#/components/responses/Error400InvalidPartition"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve HTTP headers for information about a database partition",
        "tags": [
          "Partitioned Databases"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-sdk-exclude": true,
        "x-visible-environment": "default"
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        },
        {
          "$ref": "#/components/parameters/PathPartitionKey"
        }
      ]
    },
    "/{db}/_partition/{partition_key}/_all_docs": {
      "get": {
        "description": "Queries the primary index (all document IDs). The results that match the query parameters are returned in a JSON object, including a list of matching documents with basic contents, such as the ID and revision. When no query parameters are specified, results for all documents in the database partition are returned. Optionally, document content or additional metadata can be included in the response.",
        "operationId": "getPartitionAllDocs",
        "parameters": [
          {
            "$ref": "#/components/parameters/QueryConflicts"
          },
          {
            "$ref": "#/components/parameters/QueryDescending"
          },
          {
            "$ref": "#/components/parameters/QueryEndKey"
          },
          {
            "$ref": "#/components/parameters/QueryEndKeyDocId"
          },
          {
            "$ref": "#/components/parameters/QueryIncludeDocs"
          },
          {
            "$ref": "#/components/parameters/QueryInclusiveEnd"
          },
          {
            "$ref": "#/components/parameters/QueryKey"
          },
          {
            "$ref": "#/components/parameters/QueryKeys"
          },
          {
            "$ref": "#/components/parameters/QueryLimit"
          },
          {
            "$ref": "#/components/parameters/QuerySkip"
          },
          {
            "$ref": "#/components/parameters/QueryStartKey"
          },
          {
            "$ref": "#/components/parameters/QueryStartKeyDocId"
          },
          {
            "$ref": "#/components/parameters/QueryUpdateSeq"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/AllDocsResultPartition"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Query a list of all documents in a database partition (GET)",
        "tags": [
          "Documents",
          "Partitioned Databases"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes 0.01 `read` requests per row read from the index (rounded up) and one further `read` for each document included in the response.",
        "x-sdk-exclude": true,
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/events/_partition/ns1HJS13AMkK/_all_docs?include_docs=true\"\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        },
        {
          "$ref": "#/components/parameters/PathPartitionKey"
        }
      ],
      "post": {
        "description": "Queries the primary index (all document IDs). The results that match the query parameters are returned in a JSON object, including a list of matching documents with basic contents, such as the ID and revision. When no query parameters are specified, results for all documents in the database partition are returned. Optionally, document content or additional metadata can be included in the response.",
        "operationId": "postPartitionAllDocs",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/AllDocsQuery"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/AllDocsResultPartition"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "413": {
            "$ref": "#/components/responses/Error413TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Query a list of all documents in a database partition",
        "tags": [
          "Partitioned Databases"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-codegen-request-body-name": "allDocsQuery",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes 0.01 `read` requests per row read from the index (rounded up) and one further `read` for each document included in the response.",
        "x-sdk-stream-response": true,
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X POST \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/events/_partition/ns1HJS13AMkK/_all_docs\" -H \"Content-Type: application/json\" --data '{\n",
                      "  \"include_docs\": true\n",
                      "}'\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "postPartitionAllDocsOptions := service.NewPostPartitionAllDocsOptions(\n",
                      "  \"events\",\n",
                      "  \"ns1HJS13AMkK\",\n",
                      ")\n",
                      "postPartitionAllDocsOptions.SetIncludeDocs(true)\n",
                      "\n",
                      "allDocsResult, response, err := service.PostPartitionAllDocs(postPartitionAllDocsOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(allDocsResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.AllDocsResult;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PostPartitionAllDocsOptions;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "PostPartitionAllDocsOptions allDocsOptions =\n",
                      "    new PostPartitionAllDocsOptions.Builder()\n",
                      "        .db(\"events\")\n",
                      "        .partitionKey(\"ns1HJS13AMkK\")\n",
                      "        .includeDocs(true)\n",
                      "        .build();\n",
                      "\n",
                      "AllDocsResult response =\n",
                      "    service.postPartitionAllDocs(allDocsOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.postPartitionAllDocs({\n",
                      "  db: 'events',\n",
                      "  partitionKey: 'ns1HJS13AMkK',\n",
                      "  includeDocs: true\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.post_partition_all_docs(\n",
                      "  db='events',\n",
                      "  partition_key='ns1HJS13AMkK',\n",
                      "  include_docs=True\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/{db}/_partition/{partition_key}/_design/{ddoc}/_search/{index}": {
      "get": {
        "description": "Partitioned Search indexes, which are defined in design documents, allow partition databases to be queried by using Lucene Query Parser Syntax. Search indexes are defined by an index function, similar to a map function in MapReduce views. The index function decides what data to index and store in the index.",
        "operationId": "getPartitionSearch",
        "parameters": [
          {
            "$ref": "#/components/parameters/QueryQuery"
          },
          {
            "$ref": "#/components/parameters/QueryBookmark"
          },
          {
            "$ref": "#/components/parameters/QueryHighlightFields"
          },
          {
            "$ref": "#/components/parameters/QueryHighlightPreTag"
          },
          {
            "$ref": "#/components/parameters/QueryHighlightPostTag"
          },
          {
            "$ref": "#/components/parameters/QueryHighlightNumber"
          },
          {
            "$ref": "#/components/parameters/QueryHighlightSize"
          },
          {
            "$ref": "#/components/parameters/QueryIncludeDocs"
          },
          {
            "$ref": "#/components/parameters/QueryIncludeFields"
          },
          {
            "$ref": "#/components/parameters/QueryLimit"
          },
          {
            "$ref": "#/components/parameters/QuerySort"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/SearchResultPartition"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Query a database partition search index (GET)",
        "tags": [
          "Partitioned Databases",
          "Searches"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes 0.01 `read` requests per row read from the index (rounded up) and one further `read` for each document included in the response.",
        "x-sdk-exclude": true,
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/products/_partition/small-appliances/_design/appliances/_search/findByPrice?query=price:[14%20TO%2020]\"\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `findByPrice` Cloudant Search partitioned index to exist. To create the design document with this index, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        },
        {
          "$ref": "#/components/parameters/PathPartitionKey"
        },
        {
          "$ref": "#/components/parameters/PathDesignDocumentName"
        },
        {
          "$ref": "#/components/parameters/PathIndex"
        }
      ],
      "post": {
        "description": "Partitioned Search indexes, which are defined in design documents, allow partition databases to be queried by using Lucene Query Parser Syntax. Search indexes are defined by an index function, similar to a map function in MapReduce views. The index function decides what data to index and store in the index.\n\n\nBefore using read the\n[FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-database-partitioning#partition-querying)\nto understand the limitations and appropriate use cases.\n",
        "operationId": "postPartitionSearch",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/PartitionSearchQuery"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/SearchResultPartition"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "413": {
            "$ref": "#/components/responses/Error413TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Query a database partition search index",
        "tags": [
          "Partitioned Databases"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-codegen-request-body-name": "partitionSearchQuery",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes 0.01 `read` requests per row read from the index (rounded up) and one further `read` for each document included in the response.",
        "x-sdk-stream-response": true,
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X POST \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/products/_partition/small-appliances/_design/appliances/_search/findByPrice\" -H \"Content-Type: application/json\" --data '{\n",
                      "  \"query\": \"price:[14 TO 20]\"\n",
                      "}'\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `findByPrice` Cloudant Search partitioned index to exist. To create the design document with this index, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "postPartitionSearchOptions := service.NewPostPartitionSearchOptions(\n",
                      "  \"events\",\n",
                      "  \"ns1HJS13AMkK\",\n",
                      "  \"checkout\",\n",
                      "  \"findByDate\",\n",
                      "  \"date:[2019-01-01T12:00:00.000Z TO 2019-01-31T12:00:00.000Z]\",\n",
                      ")\n",
                      "\n",
                      "searchResult, response, err := service.PostPartitionSearch(postPartitionSearchOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(searchResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `findByDate` Cloudant Search partitioned index to exist. To create the design document with this index, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PostPartitionSearchOptions;\n",
                      "import com.ibm.cloud.cloudant.v1.model.SearchResult;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "PostPartitionSearchOptions searchOptions =\n",
                      "    new PostPartitionSearchOptions.Builder()\n",
                      "        .db(\"events\")\n",
                      "        .partitionKey(\"ns1HJS13AMkK\")\n",
                      "        .ddoc(\"checkout\")\n",
                      "        .index(\"findByDate\")\n",
                      "        .query(\"date:[2019-01-01T12:00:00.000Z TO 2019-01-31T12:00:00.000Z]\")\n",
                      "        .build();\n",
                      "\n",
                      "SearchResult response =\n",
                      "    service.postPartitionSearch(searchOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `findByDate` Cloudant Search partitioned index to exist. To create the design document with this index, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.postPartitionSearch({\n",
                      "  db: 'events',\n",
                      "  partitionKey: 'ns1HJS13AMkK',\n",
                      "  ddoc: 'checkout',\n",
                      "  index: 'findByDate',\n",
                      "  query: 'date:[2019-01-01T12:00:00.000Z TO 2019-01-31T12:00:00.000Z]'\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `findByDate` Cloudant Search partitioned index to exist. To create the design document with this index, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.post_partition_search(\n",
                      "  db='events',\n",
                      "  partition_key='ns1HJS13AMkK',\n",
                      "  ddoc='checkout',\n",
                      "  index='findByDate',\n",
                      "  query='date:[2019-01-01T12:00:00.000Z TO 2019-01-31T12:00:00.000Z]'\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `findByDate` Cloudant Search partitioned index to exist. To create the design document with this index, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/{db}/_partition/{partition_key}/_design/{ddoc}/_view/{view}": {
      "get": {
        "description": "This operation queries the specified MapReduce view of the specified design document. By default, the map and reduce functions of the view are run to update the view before returning the response.",
        "operationId": "getPartitionView",
        "parameters": [
          {
            "$ref": "#/components/parameters/QueryConflicts"
          },
          {
            "$ref": "#/components/parameters/QueryDescending"
          },
          {
            "$ref": "#/components/parameters/QueryEndKey"
          },
          {
            "$ref": "#/components/parameters/QueryEndKeyDocId"
          },
          {
            "$ref": "#/components/parameters/QueryGroup"
          },
          {
            "$ref": "#/components/parameters/QueryGroupLevel"
          },
          {
            "$ref": "#/components/parameters/QueryIncludeDocs"
          },
          {
            "$ref": "#/components/parameters/QueryInclusiveEnd"
          },
          {
            "$ref": "#/components/parameters/QueryKey"
          },
          {
            "$ref": "#/components/parameters/QueryKeys"
          },
          {
            "$ref": "#/components/parameters/QueryLimit"
          },
          {
            "$ref": "#/components/parameters/QueryReduce"
          },
          {
            "$ref": "#/components/parameters/QuerySkip"
          },
          {
            "$ref": "#/components/parameters/QuerySorted"
          },
          {
            "$ref": "#/components/parameters/QueryStartKey"
          },
          {
            "$ref": "#/components/parameters/QueryStartKeyDocId"
          },
          {
            "$ref": "#/components/parameters/QueryUpdate"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/ViewResultPartition"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          },
          "507": {
            "$ref": "#/components/responses/Error507InsufficientStorage"
          }
        },
        "summary": "Query a database partition MapReduce view function (GET)",
        "tags": [
          "Partitioned Databases",
          "Views"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes 0.01 `read` requests per row read from the index (rounded up) and one further `read` for each document included in the response.",
        "x-sdk-exclude": true,
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/products/_partition/small-appliances/_design/appliances/_view/byApplianceProdId?include_docs=true&limit=10\"\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `byApplianceProdId` partitioned view to exist. To create the view, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        },
        {
          "$ref": "#/components/parameters/PathPartitionKey"
        },
        {
          "$ref": "#/components/parameters/PathDesignDocumentName"
        },
        {
          "$ref": "#/components/parameters/PathView"
        }
      ],
      "post": {
        "description": "Runs the specified view function from the specified design document.\nUnlike `GET /{db}/_design/{ddoc}/_view/{view}` for accessing views, the POST method supports the specification of explicit keys to be retrieved from the view results. The remainder of the POST view functionality is identical to the `GET /{db}/_design/{ddoc}/_view/{view}` API.\n\n\nBefore using read the\n[FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-database-partitioning#partition-querying)\nto understand the limitations and appropriate use cases.\n",
        "operationId": "postPartitionView",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/PartitionViewQuery"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/ViewResultPartition"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "413": {
            "$ref": "#/components/responses/Error413TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          },
          "507": {
            "$ref": "#/components/responses/Error507InsufficientStorage"
          }
        },
        "summary": "Query a database partition MapReduce view function",
        "tags": [
          "Partitioned Databases"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-codegen-request-body-name": "viewQuery",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes 0.01 `read` requests per row read from the index (rounded up) and one further `read` for each document included in the response.",
        "x-sdk-stream-response": true,
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X POST \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/products/_partition/small-appliances/_design/appliances/_view/byApplianceProdId\" -H \"Content-Type: application/json\" --data '{\n",
                      "  \"include_docs\": true,\n",
                      "  \"limit\": 10\n",
                      "}'\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `byApplianceProdId` partitioned view to exist. To create the view, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "postPartitionViewOptions := service.NewPostPartitionViewOptions(\n",
                      "  \"events\",\n",
                      "  \"ns1HJS13AMkK\",\n",
                      "  \"checkout\",\n",
                      "  \"byProductId\",\n",
                      ")\n",
                      "postPartitionViewOptions.SetIncludeDocs(true)\n",
                      "postPartitionViewOptions.SetLimit(10)\n",
                      "\n",
                      "viewResult, response, err := service.PostPartitionView(postPartitionViewOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(viewResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `byProductId` partitioned view to exist. To create the view, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PostPartitionViewOptions;\n",
                      "import com.ibm.cloud.cloudant.v1.model.ViewResult;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "PostPartitionViewOptions viewOptions =\n",
                      "    new PostPartitionViewOptions.Builder()\n",
                      "        .db(\"events\")\n",
                      "        .ddoc(\"checkout\")\n",
                      "        .includeDocs(true)\n",
                      "        .limit(10)\n",
                      "        .partitionKey(\"ns1HJS13AMkK\")\n",
                      "        .view(\"byProductId\")\n",
                      "        .build();\n",
                      "\n",
                      "ViewResult response =\n",
                      "    service.postPartitionView(viewOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `byProductId` partitioned view to exist. To create the design document with this view, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.postPartitionView({\n",
                      "  db: 'events',\n",
                      "  ddoc: 'checkout',\n",
                      "  includeDocs: true,\n",
                      "  limit: 10,\n",
                      "  partitionKey: 'ns1HJS13AMkK',\n",
                      "  view: 'byProductId'\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `byProductId` partitioned view to exist. To create the design document with this view, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.post_partition_view(\n",
                      "  db='events',\n",
                      "  ddoc='checkout',\n",
                      "  include_docs=True,\n",
                      "  limit=10,\n",
                      "  partition_key='ns1HJS13AMkK',\n",
                      "  view='byProductId'\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `byProductId` partitioned view to exist. To create the design document with this view, see [Create or modify a design document.](#putdesigndocument)"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/{db}/_partition/{partition_key}/_explain": {
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        },
        {
          "$ref": "#/components/parameters/PathPartitionKey"
        }
      ],
      "post": {
        "description": "Shows which index is being used by the query. Parameters\nare the same as the\n[`/{db}/_partition/{partition_key}/_find` endpoint](#postpartitionfind-queries).",
        "operationId": "postPartitionExplain",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/PartitionFindQuery"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/ExplainResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "413": {
            "$ref": "#/components/responses/Error413TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve information about which partition index is used for a query",
        "tags": [
          "Partitioned Databases",
          "Queries"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-codegen-request-body-name": "partitionFindQuery",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes 0.01 `read` requests per row read from the index (rounded up) and one further read for each document read. Additional document reads occur if the selector includes unindexed fields or if the projected values cannot be read from the index row. If no rows are read, the minimum cost is 1 `read`.",
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "selector := map[string]interface{}{\n",
                      "  \"userId\": map[string]string{\n",
                      "    \"$eq\": \"abc123\",\n",
                      "  },\n",
                      "}\n",
                      "\n",
                      "postPartitionExplainOptions := service.NewPostPartitionExplainOptions(\n",
                      "  \"events\",\n",
                      "  \"ns1HJS13AMkK\",\n",
                      "  selector,\n",
                      ")\n",
                      "postExplainOptions.SetExecutionStats(true)\n",
                      "postExplainOptions.SetLimit(10)\n",
                      "\n",
                      "\n",
                      "explainResult, response, err := service.PostPartitionExplain(postPartitionExplainOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(explainResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.ExplainResult;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PostPartitionExplainOptions;\n",
                      "\n",
                      "import java.util.Collections;\n",
                      "import java.util.Map;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "Map<String, Object> selector = Collections.singletonMap(\n",
                      "    \"userId\",\n",
                      "    Collections.singletonMap(\"$eq\", \"abc123\"));\n",
                      "\n",
                      "PostPartitionExplainOptions explainOptions =\n",
                      "    new PostPartitionExplainOptions.Builder()\n",
                      "        .db(\"events\")\n",
                      "        .executionStats(true)\n",
                      "        .limit(10)\n",
                      "        .partitionKey(\"ns1HJS13AMkK\")\n",
                      "        .selector(selector)\n",
                      "        .build();\n",
                      "\n",
                      "ExplainResult response =\n",
                      "    service.postPartitionExplain(explainOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "const selector: CloudantV1.Selector = {\n",
                      "  userId: {'$eq': 'abc123'}\n",
                      "}\n",
                      "service.postPartitionExplain({\n",
                      "  db: 'events',\n",
                      "  executionStats: true,\n",
                      "  limit: 10,\n",
                      "  partitionKey: 'ns1HJS13AMkK',\n",
                      "  selector: selector\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.post_partition_explain(\n",
                      "  db='events',\n",
                      "  execution_stats=True,\n",
                      "  limit=10,\n",
                      "  partition_key='ns1HJS13AMkK',\n",
                      "  selector={'userId': {'$eq': 'abc123'}}\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/{db}/_partition/{partition_key}/_find": {
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        },
        {
          "$ref": "#/components/parameters/PathPartitionKey"
        }
      ],
      "post": {
        "description": "Query documents by using a\ndeclarative JSON querying syntax.\nIt's best practice to create an appropriate index\nfor all fields in selector by using the `_index` endpoint.\n\nQueries without an appropriate backing index by default\nfallback to using the built-in `_all_docs` index.\nThis isn't recommended because it has a significant\nperformance impact causing a full scan of the partition\nwith each request.\nIn this case the response body includes a warning field\nrecommending the creation of an index.\n\nTo avoid the fallback behavior set the `allow_fallback` option\nto `false` and the server responds with a `400` status code\nif no suitable index exists.\nIf you want to use only a specific index for your query set\n`allow_fallback` to `false` and set the `use_index` option.\n\nBefore using read the\n[FAQs](https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-database-partitioning#partition-querying)\nto understand the limitations and appropriate use cases.",
        "operationId": "postPartitionFind",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/PartitionFindQuery"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/FindResultPartition"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "413": {
            "$ref": "#/components/responses/Error413TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          },
          "507": {
            "$ref": "#/components/responses/Error507InsufficientStorage"
          }
        },
        "summary": "Query a database partition index by using selector syntax",
        "tags": [
          "Partitioned Databases",
          "Queries"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-codegen-request-body-name": "partitionFindQuery",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes 0.01 `read` requests per row read from the index (rounded up) and one further read for each document read. Additional document reads occur if the selector includes unindexed fields or if the projected values cannot be read from the index row. If no rows are read, the minimum cost is 1 `read`.",
        "x-sdk-stream-response": true,
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X POST \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/products/_partition/small-appliances/_find\" -H \"Content-Type: application/json\" --data '{\n",
                      "  \"fields\": [\n",
                      "    \"productId\",\n",
                      "    \"name\",\n",
                      "    \"description\"\n",
                      "  ],\n",
                      "  \"selector\": {\n",
                      "    \"type\": {\n",
                      "      \"$eq\": \"product\"\n",
                      "    }\n",
                      "  }\n",
                      "}'\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "selector := map[string]interface{}{\n",
                      "  \"userId\": map[string]string{\n",
                      "    \"$eq\": \"abc123\",\n",
                      "  },\n",
                      "}\n",
                      "\n",
                      "postPartitionFindOptions := service.NewPostPartitionFindOptions(\n",
                      "  \"events\",\n",
                      "  \"ns1HJS13AMkK\",\n",
                      "  selector,\n",
                      ")\n",
                      "postPartitionFindOptions.SetFields([]string{\n",
                      "  \"productId\", \"eventType\", \"date\",\n",
                      "})\n",
                      "\n",
                      "findResult, response, err := service.PostPartitionFind(postPartitionFindOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(findResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.FindResult;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PostPartitionFindOptions;\n",
                      "\n",
                      "import java.util.Arrays;\n",
                      "import java.util.HashMap;\n",
                      "import java.util.Map;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "Map<String, String> typeEqualsProduct = new HashMap<>();\n",
                      "typeEqualsProduct.put(\"$eq\", \"abc123\");\n",
                      "\n",
                      "Map<String, Object> selector = new HashMap<>();\n",
                      "selector.put(\"userId\", typeEqualsProduct);\n",
                      "\n",
                      "PostPartitionFindOptions findOptions =\n",
                      "    new PostPartitionFindOptions.Builder()\n",
                      "        .db(\"events\")\n",
                      "        .partitionKey(\"ns1HJS13AMkK\")\n",
                      "        .fields(Arrays.asList(\"productId\", \"eventType\", \"date\"))\n",
                      "        .selector(selector)\n",
                      "        .build();\n",
                      "\n",
                      "FindResult response =\n",
                      "    service.postPartitionFind(findOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "const selector: CloudantV1.Selector = {\n",
                      "  userId: {'$eq': 'abc123'}\n",
                      "}\n",
                      "service.postPartitionFind({\n",
                      "  db: 'events',\n",
                      "  partitionKey: 'ns1HJS13AMkK',\n",
                      "  fields: ['productId', 'eventType', 'date'],\n",
                      "  selector: selector\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.post_partition_find(\n",
                      "  db='events',\n",
                      "  partition_key='ns1HJS13AMkK',\n",
                      "  fields=['productId', 'eventType', 'date'],\n",
                      "  selector={'userId': {'$eq': 'abc123'}}\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/{db}/_purged_infos_limit": {
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        }
      ]
    },
    "/{db}/_revs_diff": {
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        }
      ],
      "post": {
        "description": "The replicator is the primary user of this operation. After receiving a set of new revision IDs from the source database, the replicator sends this set to the destination database's `_revs_diff` to find out which of them already exists there. It can then avoid fetching and sending already-known document bodies.",
        "operationId": "postRevsDiff",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/DocumentRevisions"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/RevsDiffResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "413": {
            "$ref": "#/components/responses/Error413TooLarge"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Query the document revisions and possible ancestors missing from the database",
        "tags": [
          "Database Details"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-codegen-request-body-name": "documentRevisions",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X POST \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/orders/_revs_diff\" -H \"Content-Type: application/json\" -d '{\n",
                      "  \"order00077\": [\n",
                      "    \"1-00000000000000000000000000000000\",\n",
                      "    \"2-11111111111111111111111111111111\",\n",
                      "    \"3-22222222222222222222222222222222\"\n",
                      "  ]\n",
                      "}'\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the example revisions in the POST body to be replaced with valid revisions."
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "postRevsDiffOptions := service.NewPostRevsDiffOptions(\n",
                      "  \"orders\",\n",
                      "  map[string][]string{\n",
                      "    \"order00077\": {\n",
                      "      \"1-00000000000000000000000000000000\", // missing revision\n",
                      "      \"2-11111111111111111111111111111111\", // missing revision\n",
                      "      \"3-22222222222222222222222222222222\", // possible ancestor revision\n",
                      "    },\n",
                      "  },\n",
                      ")\n",
                      "\n",
                      "mapStringRevsDiff, response, err := service.PostRevsDiff(postRevsDiffOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(mapStringRevsDiff, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the example revisions in the POST body to be replaced with valid revisions."
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PostRevsDiffOptions;\n",
                      "import com.ibm.cloud.cloudant.v1.model.RevsDiff;\n",
                      "\n",
                      "import java.util.Collections;\n",
                      "import java.util.List;\n",
                      "import java.util.Map;\n",
                      "import java.util.Arrays;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "Map<String, List<String>> docRevisions =\n",
                      "    Collections.singletonMap(\"order00077\", Arrays.asList(\n",
                      "        \"1-00000000000000000000000000000000\", // missing revision\n",
                      "        \"2-11111111111111111111111111111111\", // missing revision\n",
                      "        \"3-22222222222222222222222222222222\"  // possible ancestor revision\n",
                      "    ));\n",
                      "\n",
                      "PostRevsDiffOptions revsDiffOptions =\n",
                      "    new PostRevsDiffOptions.Builder()\n",
                      "        .db(\"orders\")\n",
                      "        .documentRevisions(docRevisions)\n",
                      "        .build();\n",
                      "\n",
                      "Map<String,RevsDiff> response =\n",
                      "    service.postRevsDiff(revsDiffOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the example revisions in the POST body to be replaced with valid revisions."
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "const revsDiff: CloudantV1.DocumentRevisions = {\n",
                      "  order00077: [\n",
                      "    \"1-00000000000000000000000000000000\", // missing revision\n",
                      "    \"2-11111111111111111111111111111111\", // missing revision\n",
                      "    \"3-22222222222222222222222222222222\"  // possible ancestor revision\n",
                      "  ]\n",
                      "}\n",
                      "\n",
                      "service.postRevsDiff({\n",
                      "  db: 'orders',\n",
                      "  revsDiffRequest: revsDiff\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the example revisions in the POST body to be replaced with valid revisions."
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import DocumentRevisions, CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "revs_diff = DocumentRevisions(\n",
                      "  order00077=[\n",
                      "      \"1-00000000000000000000000000000000\", # missing revision\n",
                      "      \"2-11111111111111111111111111111111\", # missing revision\n",
                      "      \"3-22222222222222222222222222222222\"  # possible ancestor revision\n",
                      "]\n",
                      ")\n",
                      "\n",
                      "response = service.post_revs_diff(\n",
                      "  db='orders',\n",
                      "  revs_diff_request=revs_diff.to_dict()\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n",
                      "// section: markdown\n",
                      "// This example requires the example revisions in the POST body to be replaced with valid revisions.\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/{db}/_revs_limit": {
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        }
      ]
    },
    "/{db}/_security": {
      "get": {
        "description": "See who has permission to read, write, and manage the database. The credentials you use to log in to the dashboard automatically include `_admin` permissions to all databases you create. Everyone and everything else, including users you share databases with and API keys you create, must be given a permission level explicitly.",
        "operationId": "getSecurity",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/Security"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve database permissions information",
        "tags": [
          "Authorization"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.database-security.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.database-security.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `read` request.",
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/products/_security\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "getSecurityOptions := service.NewGetSecurityOptions(\n",
                      "  \"products\",\n",
                      ")\n",
                      "\n",
                      "security, response, err := service.GetSecurity(getSecurityOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(security, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.GetSecurityOptions;\n",
                      "import com.ibm.cloud.cloudant.v1.model.Security;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "GetSecurityOptions securityOptions =\n",
                      "    new GetSecurityOptions.Builder()\n",
                      "        .db(\"products\")\n",
                      "        .build();\n",
                      "\n",
                      "Security response =\n",
                      "    service.getSecurity(securityOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.getSecurity({\n",
                      "  db: 'products'\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.get_security(\n",
                      "  db='products'\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        }
      ],
      "put": {
        "description": "Modify who has permission to read, write, or manage a database. This\nendpoint can be used to modify both Cloudant and CouchDB related\npermissions.\nBe careful: by removing a Cloudant API key, a member or an admin from\nthe list of users that have access permissions, you remove it from the\nlist of users that have access to the database.\n\n### Note about nobody role\n\nThe `nobody` username applies to all unauthenticated connection\nattempts. For example, if an application tries to read data from a\ndatabase, but did not identify itself, the task can continue only if\nthe `nobody` user has the role `_reader`.",
        "operationId": "putSecurity",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Security"
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/Ok"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "413": {
            "$ref": "#/components/responses/Error413DocumentTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Modify database permissions",
        "tags": [
          "Authorization"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-codegen-request-body-name": "security",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.database-security.write"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.database-security.write"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `write` request.",
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X PUT \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/products/_security\" -H \"Content-Type: application/json\" --data '{\n",
                      "  \"members\": {\n",
                      "    \"names\": [\n",
                      "      \"user1\",\n",
                      "      \"user2\"\n",
                      "    ],\n",
                      "    \"roles\": [\n",
                      "      \"developers\"\n",
                      "    ]\n",
                      "  }\n",
                      "}'\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "The `nobody` username applies to all unauthenticated connection attempts. For example, if an application tries to read data from a database, but didn't identify itself, the task can continue only if the `nobody` user has the role `_reader`."
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "If instead of using Cloudant's security model for managing permissions you opt to use the Apache CouchDB `_users` database (that is using legacy credentials _and_ the `couchdb_auth_only:true` option) then be aware that the user must already exist in `_users` database before adding permissions. For information on the `_users` database, see <a href=\"https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-work-with-your-account#using-the-users-database-with-cloudant-nosql-db\" target=\"_blank\">Using the `_users` database with Cloudant</a>."
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "putSecurityOptions := service.NewPutSecurityOptions(\n",
                      "  \"products\",\n",
                      ")\n",
                      "putSecurityOptions.SetMembers(&cloudantv1.SecurityObject{\n",
                      "  Names: []string{\"user1\", \"user2\"},\n",
                      "  Roles: []string{\"developers\"},\n",
                      "})\n",
                      "\n",
                      "ok, response, err := service.PutSecurity(putSecurityOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(ok, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "The `nobody` username applies to all unauthenticated connection attempts. For example, if an application tries to read data from a database, but didn't identify itself, the task can continue only if the `nobody` user has the role `_reader`."
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "If instead of using Cloudant's security model for managing permissions you opt to use the Apache CouchDB `_users` database (that is using legacy credentials _and_ the `couchdb_auth_only:true` option) then be aware that the user must already exist in `_users` database before adding permissions. For information on the `_users` database, see <a href=\"https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-work-with-your-account#using-the-users-database-with-cloudant-nosql-db\" target=\"_blank\">Using the `_users` database with Cloudant</a>."
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.Ok;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PutSecurityOptions;\n",
                      "import com.ibm.cloud.cloudant.v1.model.SecurityObject;\n",
                      "\n",
                      "import java.util.Arrays;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "SecurityObject members = new SecurityObject.Builder()\n",
                      "    .names(Arrays.asList(\"user1\", \"user2\"))\n",
                      "    .roles(Arrays.asList(\"developers\"))\n",
                      "    .build();\n",
                      "\n",
                      "PutSecurityOptions securityOptions =\n",
                      "    new PutSecurityOptions.Builder()\n",
                      "        .db(\"products\")\n",
                      "        .members(members)\n",
                      "        .build();\n",
                      "\n",
                      "Ok response =\n",
                      "    service.putSecurity(securityOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "The `nobody` username applies to all unauthenticated connection attempts. For example, if an application tries to read data from a database, but didn't identify itself, the task can continue only if the `nobody` user has the role `_reader`."
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "If instead of using Cloudant's security model for managing permissions you opt to use the Apache CouchDB `_users` database (that is using legacy credentials _and_ the `couchdb_auth_only:true` option) then be aware that the user must already exist in `_users` database before adding permissions. For information on the `_users` database, see <a href=\"https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-work-with-your-account#using-the-users-database-with-cloudant-nosql-db\" target=\"_blank\">Using the `_users` database with Cloudant</a>."
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "const members: CloudantV1.SecurityObject = {\n",
                      "  names: ['user1', 'user2'],\n",
                      "  roles: ['developers']\n",
                      "};\n",
                      "\n",
                      "service.putSecurity({\n",
                      "  db: 'products',\n",
                      "  members: members\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "The `nobody` username applies to all unauthenticated connection attempts. For example, if an application tries to read data from a database, but didn't identify itself, the task can continue only if the `nobody` user has the role `_reader`."
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "If instead of using Cloudant's security model for managing permissions you opt to use the Apache CouchDB `_users` database (that is using legacy credentials _and_ the `couchdb_auth_only:true` option) then be aware that the user must already exist in `_users` database before adding permissions. For information on the `_users` database, see <a href=\"https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-work-with-your-account#using-the-users-database-with-cloudant-nosql-db\" target=\"_blank\">Using the `_users` database with Cloudant</a>."
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1, SecurityObject\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "members = SecurityObject(\n",
                      "  names=['user1', 'user2'],\n",
                      "  roles=['developers']\n",
                      ")\n",
                      "\n",
                      "response = service.put_security(\n",
                      "  db='products',\n",
                      "  members=members\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "The `nobody` username applies to all unauthenticated connection attempts. For example, if an application tries to read data from a database, but didn't identify itself, the task can continue only if the `nobody` user has the role `_reader`."
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "If instead of using Cloudant's security model for managing permissions you opt to use the Apache CouchDB `_users` database (that is using legacy credentials _and_ the `couchdb_auth_only:true` option) then be aware that the user must already exist in `_users` database before adding permissions. For information on the `_users` database, see <a href=\"https://cloud.ibm.com/docs/Cloudant?topic=Cloudant-work-with-your-account#using-the-users-database-with-cloudant-nosql-db\" target=\"_blank\">Using the `_users` database with Cloudant</a>."
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    },
    "/{db}/_shards": {
      "get": {
        "description": "List each shard range and the corresponding replicas for a specified database.",
        "operationId": "getShardsInformation",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/ShardsInformation"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve shard information",
        "tags": [
          "Database Details"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.database-shards.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.database-shards.read"
            }
          ]
        },
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/products/_shards\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "getShardsInformationOptions := service.NewGetShardsInformationOptions(\n",
                      "  \"products\",\n",
                      ")\n",
                      "\n",
                      "shardsInformation, response, err := service.GetShardsInformation(getShardsInformationOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(shardsInformation, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.GetShardsInformationOptions;\n",
                      "import com.ibm.cloud.cloudant.v1.model.ShardsInformation;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "GetShardsInformationOptions shardsInformationOptions =\n",
                      "    new GetShardsInformationOptions.Builder()\n",
                      "        .db(\"products\")\n",
                      "        .build();\n",
                      "\n",
                      "ShardsInformation response =\n",
                      "    service.getShardsInformation(shardsInformationOptions)\n",
                      "        .execute().getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.getShardsInformation({\n",
                      "  db: 'products'\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.get_shards_information(\n",
                      "  db='products'\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        }
      ]
    },
    "/{db}/_shards/{doc_id}": {
      "get": {
        "description": "Retrieves information about a specific shard where a particular document is stored, along with information about the nodes where that shard has a replica.",
        "operationId": "getDocumentShardsInfo",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/DocumentShardInfo"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve shard information for a specific document",
        "tags": [
          "Database Details"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.database-shards.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.database-shards.read"
            }
          ]
        },
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/products/_shards/small-appliances:1000042\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "getDocumentShardsInfoOptions := service.NewGetDocumentShardsInfoOptions(\n",
                      "  \"products\",\n",
                      "  \"1000042\",\n",
                      ")\n",
                      "\n",
                      "documentShardInfo, response, err := service.GetDocumentShardsInfo(getDocumentShardsInfoOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(documentShardInfo, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.DocumentShardInfo;\n",
                      "import com.ibm.cloud.cloudant.v1.model.GetDocumentShardsInfoOptions;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "GetDocumentShardsInfoOptions shardsInfoOptions =\n",
                      "    new GetDocumentShardsInfoOptions.Builder()\n",
                      "        .db(\"products\")\n",
                      "        .docId(\"1000042\")\n",
                      "        .build();\n",
                      "\n",
                      "DocumentShardInfo response =\n",
                      "    service.getDocumentShardsInfo(shardsInfoOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.getDocumentShardsInfo({\n",
                      "  db: 'products',\n",
                      "  docId: '1000042'\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.get_document_shards_info(\n",
                      "  db='products',\n",
                      "  doc_id='1000042'\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        },
        {
          "$ref": "#/components/parameters/PathDocId"
        }
      ]
    },
    "/{db}/{doc_id}": {
      "delete": {
        "description": "Marks the specified document as deleted by adding a `_deleted` field with the value `true`. Documents with this field are not returned within requests anymore but stay in the database. You must supply the current (latest) revision, either by using the `rev` parameter or by using the `If-Match` header to specify the revision.",
        "operationId": "deleteDocument",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderIfMatch"
          },
          {
            "$ref": "#/components/parameters/QueryBatch"
          },
          {
            "$ref": "#/components/parameters/QueryRev"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/DocumentResult"
          },
          "202": {
            "$ref": "#/components/responses/DocumentResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "409": {
            "$ref": "#/components/responses/Error409DocumentConflict"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Delete a document",
        "tags": [
          "Documents"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.data-document.write"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.data-document.write"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `write` request.",
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X DELETE \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/events/0007241142412418284?rev=1-00000000000000000000000000000000\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "deleteDocumentOptions := service.NewDeleteDocumentOptions(\n",
                      "  \"orders\",\n",
                      "  \"order00058\",\n",
                      ")\n",
                      "deleteDocumentOptions.SetRev(\"1-00000000000000000000000000000000\")\n",
                      "\n",
                      "documentResult, response, err := service.DeleteDocument(deleteDocumentOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(documentResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.DeleteDocumentOptions;\n",
                      "import com.ibm.cloud.cloudant.v1.model.DocumentResult;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "DeleteDocumentOptions documentOptions =\n",
                      "    new DeleteDocumentOptions.Builder()\n",
                      "        .db(\"orders\")\n",
                      "        .docId(\"order00058\")\n",
                      "        .rev(\"1-00000000000000000000000000000000\")\n",
                      "        .build();\n",
                      "\n",
                      "DocumentResult response =\n",
                      "    service.deleteDocument(documentOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.deleteDocument({\n",
                      "  db: 'orders',\n",
                      "  docId: 'order00058',\n",
                      "  rev: '1-00000000000000000000000000000000'\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.delete_document(\n",
                      "  db='orders',\n",
                      "  doc_id='order00058',\n",
                      "  rev='1-00000000000000000000000000000000'\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "get": {
        "description": "Returns document with the specified `doc_id` from the specified database. Unless you request a specific revision, the latest revision of the document is always returned.",
        "operationId": "getDocument",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderIfNoneMatch"
          },
          {
            "$ref": "#/components/parameters/QueryAttachments"
          },
          {
            "$ref": "#/components/parameters/QueryAttEncodingInfo"
          },
          {
            "$ref": "#/components/parameters/QueryAttsSince"
          },
          {
            "$ref": "#/components/parameters/QueryConflicts"
          },
          {
            "$ref": "#/components/parameters/QueryDeletedConflicts"
          },
          {
            "$ref": "#/components/parameters/QueryLatest"
          },
          {
            "$ref": "#/components/parameters/QueryLocalSeq"
          },
          {
            "$ref": "#/components/parameters/QueryMeta"
          },
          {
            "$ref": "#/components/parameters/QueryOpenRevs"
          },
          {
            "$ref": "#/components/parameters/QueryRev"
          },
          {
            "$ref": "#/components/parameters/QueryRevs"
          },
          {
            "$ref": "#/components/parameters/QueryRevsInfo"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/Document"
          },
          "304": {
            "$ref": "#/components/responses/NotModified"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404DocumentDoesNotExist"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve a document",
        "tags": [
          "Documents"
        ],
        "x-accept-default": "application/json",
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `read` request.",
        "x-sdk-stream-response": true,
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/products/small-appliances:1000042\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "getDocumentOptions := service.NewGetDocumentOptions(\n",
                      "  \"products\",\n",
                      "  \"1000042\",\n",
                      ")\n",
                      "\n",
                      "document, response, err := service.GetDocument(getDocumentOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(document, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.Document;\n",
                      "import com.ibm.cloud.cloudant.v1.model.GetDocumentOptions;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "GetDocumentOptions documentOptions =\n",
                      "    new GetDocumentOptions.Builder()\n",
                      "        .db(\"products\")\n",
                      "        .docId(\"1000042\")\n",
                      "        .build();\n",
                      "\n",
                      "Document response =\n",
                      "    service.getDocument(documentOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.getDocument({\n",
                      "  db: 'products',\n",
                      "  docId: '1000042'\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.get_document(\n",
                      "  db='products',\n",
                      "  doc_id='1000042'\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "head": {
        "description": "This method supports the same query arguments as the `GET /{db}/{docid}` method, but only the header information (including document size and the revision as an ETag) is returned. The ETag header shows the current revision for the requested document, and the Content-Length specifies the length of the data if the document was requested in full. Add any of the query arguments, then the resulting HTTP headers that correspond to it are returned.",
        "operationId": "headDocument",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderIfNoneMatch"
          },
          {
            "$ref": "#/components/parameters/QueryLatest"
          },
          {
            "$ref": "#/components/parameters/QueryRev"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/DocumentHead"
          },
          "304": {
            "$ref": "#/components/responses/NotModified"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404DocumentDoesNotExist"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve the HTTP headers for the document",
        "tags": [
          "Documents"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `read` request.",
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" --head \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/orders/0007741142412418284\"\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "headDocumentOptions := service.NewHeadDocumentOptions(\n",
                      "  \"orders\",\n",
                      "  \"order00058\",\n",
                      ")\n",
                      "\n",
                      "response, err := service.HeadDocument(headDocumentOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "fmt.Println(response.StatusCode)\n",
                      "fmt.Println(response.Headers[\"ETag\"])\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.sdk.core.http.Headers;\n",
                      "\n",
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.HeadDocumentOptions;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "HeadDocumentOptions documentOptions =\n",
                      "    new HeadDocumentOptions.Builder()\n",
                      "        .db(\"orders\")\n",
                      "        .docId(\"order00058\")\n",
                      "        .build();\n",
                      "\n",
                      "int statusCode =\n",
                      "    service.headDocument(documentOptions).execute()\n",
                      "        .getStatusCode();\n",
                      "Headers headers =\n",
                      "    service.headDocument(documentOptions).execute()\n",
                      "        .getHeaders();\n",
                      "\n",
                      "System.out.println(statusCode);\n",
                      "System.out.println(headers.values(\"ETag\"));\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.headDocument({\n",
                      "  db: 'orders',\n",
                      "  docId: 'order00058'\n",
                      "}).then(response => {\n",
                      "  console.log(response.status);\n",
                      "  console.log(response.headers['ETag']);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.head_document(\n",
                      "  db='orders',\n",
                      "  doc_id='order00058'\n",
                      ")\n",
                      "print(response.get_status_code())\n",
                      "print(response.get_headers()['ETag'])\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        },
        {
          "$ref": "#/components/parameters/PathDocId"
        }
      ],
      "put": {
        "description": "Creates or modifies a document in the specified database.\n\nFor creation, you must specify the document ID but you should not\nspecify the revision.\n\nFor modification, you must specify the document ID and a revision\nidentifier.\n",
        "operationId": "putDocument",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderIfMatch"
          },
          {
            "$ref": "#/components/parameters/QueryBatch"
          },
          {
            "$ref": "#/components/parameters/QueryNewEdits"
          },
          {
            "$ref": "#/components/parameters/QueryRev"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Document"
        },
        "responses": {
          "201": {
            "$ref": "#/components/responses/DocumentResult"
          },
          "202": {
            "$ref": "#/components/responses/DocumentResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400InvalidJson"
          },
          "401": {
            "$ref": "#/components/responses/Error401WriterPrivilegesRequired"
          },
          "402": {
            "$ref": "#/components/responses/Error402OverDataQuota"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "409": {
            "$ref": "#/components/responses/Error409DocumentConflict"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "413": {
            "$ref": "#/components/responses/Error413DocumentTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          },
          "507": {
            "$ref": "#/components/responses/Error507InsufficientStorage"
          }
        },
        "summary": "Create or modify a document",
        "tags": [
          "Documents"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-codegen-request-body-name": "document",
        "x-content-type-default": "application/json",
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.data-document.write"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.data-document.write"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `write` request.",
        "x-sdk-stream-request": true,
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X PUT \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/events/0007241142412418284\" -H \"Content-Type: application/json\" --data '{\n",
                      "  \"type\": \"event\",\n",
                      "  \"userid\": \"abc123\",\n",
                      "  \"eventType\": \"addedToBasket\",\n",
                      "  \"productId\": \"1000042\",\n",
                      "  \"date\": \"2019-01-28T10:44:22.000Z\"\n",
                      "}'\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "eventDoc := cloudantv1.Document{}\n",
                      "eventDoc.SetProperty(\"type\", \"event\")\n",
                      "eventDoc.SetProperty(\"userId\", \"abc123\")\n",
                      "eventDoc.SetProperty(\"eventType\", \"addedToBasket\")\n",
                      "eventDoc.SetProperty(\"productId\", \"1000042\")\n",
                      "eventDoc.SetProperty(\"date\", \"2019-01-28T10:44:22.000Z\")\n",
                      "\n",
                      "putDocumentOptions := service.NewPutDocumentOptions(\n",
                      "  \"events\",\n",
                      "  \"ns1HJS13AMkK:0007241142412418284\",\n",
                      ")\n",
                      "putDocumentOptions.SetDocument(&eventDoc)\n",
                      "\n",
                      "documentResult, response, err := service.PutDocument(putDocumentOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(documentResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.Document;\n",
                      "import com.ibm.cloud.cloudant.v1.model.DocumentResult;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PutDocumentOptions;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "Document eventDoc = new Document();\n",
                      "eventDoc.put(\"type\", \"event\");\n",
                      "eventDoc.put(\"userId\", \"abc123\");\n",
                      "eventDoc.put(\"eventType\", \"addedToBasket\");\n",
                      "eventDoc.put(\"productId\", \"1000042\");\n",
                      "eventDoc.put(\"date\", \"2019-01-28T10:44:22.000Z\");\n",
                      "\n",
                      "PutDocumentOptions documentOptions =\n",
                      "    new PutDocumentOptions.Builder()\n",
                      "        .db(\"events\")\n",
                      "        .docId(\"ns1HJS13AMkK:0007241142412418284\")\n",
                      "        .document(eventDoc)\n",
                      "        .build();\n",
                      "\n",
                      "DocumentResult response =\n",
                      "    service.putDocument(documentOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "const eventDoc: CloudantV1.Document = {\n",
                      "  type: 'event',\n",
                      "  userId: 'abc123',\n",
                      "  eventType: 'addedToBasket',\n",
                      "  productId: '1000042',\n",
                      "  date: '2019-01-28T10:44:22.000Z'\n",
                      "};\n",
                      "\n",
                      "service.putDocument({\n",
                      "  db: 'events',\n",
                      "  docId: 'ns1HJS13AMkK:0007241142412418284',\n",
                      "  document: eventDoc\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import Document, CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "event_doc = Document(\n",
                      "  type='event',\n",
                      "  userId='abc123',\n",
                      "  eventType='addedToBasket',\n",
                      "  productId='1000042',\n",
                      "  date='2019-01-28T10:44:22.000Z'\n",
                      ")\n",
                      "response = service.put_document(\n",
                      "  db='events',\n",
                      "  doc_id='ns1HJS13AMkK:0007241142412418284',\n",
                      "  document=event_doc\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "x-copy": {
        "description": "The COPY (which is non-standard HTTP) method copies an existing document to a new or existing document. The source document is specified on the request line, with the Destination header of the request specifying the target document.",
        "operationId": "copyDocument",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderDestination"
          },
          {
            "$ref": "#/components/parameters/HeaderIfMatch"
          },
          {
            "$ref": "#/components/parameters/QueryBatch"
          },
          {
            "$ref": "#/components/parameters/QueryRev"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "201": {
            "$ref": "#/components/responses/DocumentResult"
          },
          "202": {
            "$ref": "#/components/responses/DocumentResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "409": {
            "$ref": "#/components/responses/Error409DocumentConflict"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          },
          "507": {
            "$ref": "#/components/responses/Error507InsufficientStorage"
          }
        },
        "summary": "Copy a document",
        "tags": [
          "Documents"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-ibm-events": {
          "description": "In addition to `cloudantnosqldb.any-document.read` this operation requires one of the three `write` events appropriate to the destination document type.",
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            },
            {
              "name": "cloudantnosqldb.data-document.write"
            },
            {
              "name": "cloudantnosqldb.design-document.write"
            },
            {
              "name": "cloudantnosqldb.local-document.write"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            },
            {
              "name": "cloudantnosqldb.data-document.write"
            },
            {
              "name": "cloudantnosqldb.design-document.write"
            },
            {
              "name": "cloudantnosqldb.local-document.write"
            }
          ],
          "description": "In addition to `cloudantnosqldb.any-document.read` this operation requires one of the three `write` permissions appropriate to the destination document type."
        },
        "x-rate-limit": "This operation consumes one `read` and one `write` request.",
        "x-visible-environment": "default"
      }
    },
    "/{db}/{doc_id}/{attachment_name}": {
      "delete": {
        "description": "Deletes the attachment with the filename, `{attachment_name}`, from the specified doc. You must supply the `rev` query parameter or `If-Match` header with the current revision to delete the attachment.",
        "operationId": "deleteAttachment",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderIfMatch"
          },
          {
            "$ref": "#/components/parameters/QueryRev"
          },
          {
            "$ref": "#/components/parameters/QueryBatch"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/DocumentResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "409": {
            "$ref": "#/components/responses/Error409DocumentConflict"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Delete an attachment",
        "tags": [
          "Attachments"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.data-document.write"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.data-document.write"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `write` request.",
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X DELETE \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/products/small-appliances:100001/product_details.txt?rev=4-33333333333333333333333333333333\"\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `product_details.txt` attachment in `small-appliances:100001` document to exist. To create the attachment, see [Create or modify an attachment.](#putattachment)"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "deleteAttachmentOptions := service.NewDeleteAttachmentOptions(\n",
                      "  \"products\",\n",
                      "  \"1000042\",\n",
                      "  \"product_details.txt\",\n",
                      ")\n",
                      "deleteAttachmentOptions.SetRev(\"4-33333333333333333333333333333333\")\n",
                      "\n",
                      "documentResult, response, err := service.DeleteAttachment(deleteAttachmentOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(documentResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `product_details.txt` attachment in `1000042` document to exist. To create the attachment, see [Create or modify an attachment.](#putattachment)"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.DeleteAttachmentOptions;\n",
                      "import com.ibm.cloud.cloudant.v1.model.DocumentResult;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "DeleteAttachmentOptions attachmentOptions =\n",
                      "    new DeleteAttachmentOptions.Builder()\n",
                      "        .db(\"products\")\n",
                      "        .docId(\"1000042\")\n",
                      "        .attachmentName(\"product_details.txt\")\n",
                      "        .rev(\"4-33333333333333333333333333333333\")\n",
                      "        .build();\n",
                      "\n",
                      "DocumentResult response =\n",
                      "    service.deleteAttachment(attachmentOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `product_details.txt` attachment in `1000042` document to exist. To create the attachment, see [Create or modify an attachment.](#putattachment)"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.deleteAttachment({\n",
                      "  db: 'products',\n",
                      "  docId: '1000042',\n",
                      "  attachmentName: 'product_details.txt',\n",
                      "  rev: '4-33333333333333333333333333333333'\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `product_details.txt` attachment in `1000042` document to exist. To create the attachment, see [Create or modify an attachment.](#putattachment)"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.delete_attachment(\n",
                      "  db='products',\n",
                      "  doc_id='1000042',\n",
                      "  attachment_name='product_details.txt',\n",
                      "  rev='4-33333333333333333333333333333333'\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `product_details.txt` attachment in `1000042` document to exist. To create the attachment, see [Create or modify an attachment.](#putattachment)"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "get": {
        "description": "Returns the file attachment that is associated with the document. The raw data of the associated attachment is returned, just as if you were accessing a static file. The returned Content-Type header is the same as the content type set when the document attachment was submitted to the database.",
        "operationId": "getAttachment",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderIfMatch"
          },
          {
            "$ref": "#/components/parameters/HeaderIfNoneMatch"
          },
          {
            "$ref": "#/components/parameters/HeaderRange"
          },
          {
            "$ref": "#/components/parameters/QueryRev"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/Attachment"
          },
          "206": {
            "$ref": "#/components/responses/Attachment"
          },
          "304": {
            "$ref": "#/components/responses/NotModified"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "416": {
            "$ref": "#/components/responses/Error416RangeNotSatisfiable"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve an attachment",
        "tags": [
          "Attachments"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `read` request.",
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X GET \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/products/small-appliances:100001/product_details.txt\"\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `product_details.txt` attachment in `small-appliances:100001` document to exist. To create the attachment, see [Create or modify an attachment.](#putattachment)"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "  \"io\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "getAttachmentOptions := service.NewGetAttachmentOptions(\n",
                      "  \"products\",\n",
                      "  \"1000042\",\n",
                      "  \"product_details.txt\",\n",
                      ")\n",
                      "\n",
                      "result, response, err := service.GetAttachment(getAttachmentOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "data, _ := io.ReadAll(result)\n",
                      "fmt.Println(\"\\n\", string(data))\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `product_details.txt` attachment in `1000042` document to exist. To create the attachment, see [Create or modify an attachment.](#putattachment)"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.GetAttachmentOptions;\n",
                      "\n",
                      "import java.io.BufferedReader;\n",
                      "import java.io.InputStream;\n",
                      "import java.io.InputStreamReader;\n",
                      "import java.util.stream.Collectors;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "GetAttachmentOptions attachmentOptions =\n",
                      "    new GetAttachmentOptions.Builder()\n",
                      "        .db(\"products\")\n",
                      "        .docId(\"1000042\")\n",
                      "        .attachmentName(\"product_details.txt\")\n",
                      "        .build();\n",
                      "\n",
                      "try(InputStream streamResult =\n",
                      "        service.getAttachment(attachmentOptions).execute()\n",
                      "            .getResult()) {        \n",
                      "    String response =\n",
                      "        new BufferedReader(new InputStreamReader(streamResult))\n",
                      "            .lines().collect(Collectors.joining(\"\\n\"));\n",
                      "    \n",
                      "    System.out.println(response);\n",
                      "}\n",
                      "\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `product_details.txt` attachment in `1000042` document to exist. To create the attachment, see [Create or modify an attachment.](#putattachment)"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.getAttachment({\n",
                      "  db: 'products',\n",
                      "  docId: '1000042',\n",
                      "  attachmentName: 'product_details.txt'\n",
                      "}).then(response => {\n",
                      "  let attachment = response.result as Readable;\n",
                      "  attachment.pipe(process.stdout);\n",
                      "});\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `product_details.txt` attachment in `1000042` document to exist. To create the attachment, see [Create or modify an attachment.](#putattachment)"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response_attachment = service.get_attachment(\n",
                      "  db='products',\n",
                      "  doc_id='1000042',\n",
                      "  attachment_name='product_details.txt'\n",
                      ").get_result().content\n",
                      "\n",
                      "print(response_attachment)\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `product_details.txt` attachment in `1000042` document to exist. To create the attachment, see [Create or modify an attachment.](#putattachment)"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "head": {
        "description": "Returns the HTTP headers that contain a minimal amount of information about the specified attachment. This method supports the same query arguments as the `GET /{db}/{doc_id}/{attachment_name}` method, but only the header information (including attachment size, encoding, and the MD5 hash as an ETag), is returned.",
        "operationId": "headAttachment",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderIfMatch"
          },
          {
            "$ref": "#/components/parameters/HeaderIfNoneMatch"
          },
          {
            "$ref": "#/components/parameters/QueryRev"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/AttachmentHead"
          },
          "206": {
            "$ref": "#/components/responses/AttachmentHead"
          },
          "304": {
            "$ref": "#/components/responses/NotModified"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "416": {
            "$ref": "#/components/responses/Error416RangeNotSatisfiable"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          }
        },
        "summary": "Retrieve the HTTP headers for an attachment",
        "tags": [
          "Attachments"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.any-document.read"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `read` request.",
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" --head \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/products/small-appliances:100001/product_details.txt\"\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `product_details.txt` attachment in `small-appliances:100001` document to exist. To create the attachment, see [Create or modify an attachment.](#putattachment)"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "headAttachmentOptions := service.NewHeadAttachmentOptions(\n",
                      "  \"products\",\n",
                      "  \"1000042\",\n",
                      "  \"product_details.txt\",\n",
                      ")\n",
                      "\n",
                      "response, err := service.HeadAttachment(headAttachmentOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "fmt.Println(response.StatusCode)\n",
                      "fmt.Println(response.Headers[\"Content-Length\"])\n",
                      "fmt.Println(response.Headers[\"Content-Type\"])\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `product_details.txt` attachment in `1000042` document to exist. To create the attachment, see [Create or modify an attachment.](#putattachment)"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.sdk.core.http.Headers;\n",
                      "\n",
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.HeadAttachmentOptions;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "HeadAttachmentOptions attachmentOptions =\n",
                      "    new HeadAttachmentOptions.Builder()\n",
                      "        .db(\"products\")\n",
                      "        .docId(\"1000042\")\n",
                      "        .attachmentName(\"product_details.txt\")\n",
                      "        .build();\n",
                      "\n",
                      "int statusCode =\n",
                      "    service.headAttachment(attachmentOptions).execute()\n",
                      "        .getStatusCode();\n",
                      "\n",
                      "Headers headers =\n",
                      "    service.headAttachment(attachmentOptions).execute()\n",
                      "        .getHeaders();\n",
                      "\n",
                      "System.out.println(statusCode);\n",
                      "System.out.println(headers.values(\"Content-Length\"));\n",
                      "System.out.println(headers.values(\"Content-Type\"));\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `product_details.txt` attachment in `1000042` document to exist. To create the attachment, see [Create or modify an attachment.](#putattachment)"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "service.headAttachment({\n",
                      "  db: 'products',\n",
                      "  docId: '1000042',\n",
                      "  attachmentName: 'product_details.txt'\n",
                      "}).then(response => {\n",
                      "  console.log(response.status);\n",
                      "  console.log(response.headers['Content-Length']);\n",
                      "  console.log(response.headers['Content-Type']);\n",
                      "});\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `product_details.txt` attachment in `1000042` document to exist. To create the attachment, see [Create or modify an attachment.](#putattachment)"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "response = service.head_attachment(\n",
                      "  db='products',\n",
                      "  doc_id='1000042',\n",
                      "  attachment_name='product_details.txt'\n",
                      ")\n",
                      "print(response.get_status_code())\n",
                      "print(response.get_headers()['Content-Length'])\n",
                      "print(response.get_headers()['Content-Type'])\n"
                    ]
                  },
                  {
                    "type": "markdown",
                    "source": [
                      "This example requires the `product_details.txt` attachment in `1000042` document to exist. To create the attachment, see [Create or modify an attachment.](#putattachment)"
                    ]
                  }
                ]
              }
            ]
          }
        }
      },
      "parameters": [
        {
          "$ref": "#/components/parameters/PathDb"
        },
        {
          "$ref": "#/components/parameters/PathDocId"
        },
        {
          "$ref": "#/components/parameters/PathAttachmentName"
        }
      ],
      "put": {
        "description": "Uploads the supplied content as an attachment to the specified document. The attachment name that you provide must be a URL encoded string. You must supply the Content-Type header, and for an existing document, you must also supply either the `rev` query argument or the `If-Match` HTTP header. If you omit the revision, a new, otherwise empty, document is created with the provided attachment, or a conflict occurs. If the uploaded attachment uses an existing attachment name in the remote database, it updates the corresponding stored content of the database. Since you must supply the revision information to add an attachment to the document, this serves as validation to update the existing attachment.",
        "operationId": "putAttachment",
        "parameters": [
          {
            "$ref": "#/components/parameters/HeaderIfMatch"
          },
          {
            "$ref": "#/components/parameters/QueryRev"
          },
          {
            "$ref": "#/components/parameters/HeaderXRequestId"
          }
        ],
        "requestBody": {
          "$ref": "#/components/requestBodies/Attachment"
        },
        "responses": {
          "201": {
            "$ref": "#/components/responses/DocumentResult"
          },
          "202": {
            "$ref": "#/components/responses/DocumentResult"
          },
          "400": {
            "$ref": "#/components/responses/Error400BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Error401Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/Error402PaymentRequired"
          },
          "403": {
            "$ref": "#/components/responses/Error403Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/Error404NotFound"
          },
          "408": {
            "$ref": "#/components/responses/Error408RequestTimeout"
          },
          "409": {
            "$ref": "#/components/responses/Error409DocumentConflict"
          },
          "410": {
            "$ref": "#/components/responses/Error410Gone"
          },
          "413": {
            "$ref": "#/components/responses/Error413AttachmentTooLarge"
          },
          "415": {
            "$ref": "#/components/responses/Error415UnsupportedMediaType"
          },
          "429": {
            "$ref": "#/components/responses/Error429TooManyRequests"
          },
          "500": {
            "$ref": "#/components/responses/Error500UnknownError"
          },
          "502": {
            "$ref": "#/components/responses/Error502BadGateway"
          },
          "503": {
            "$ref": "#/components/responses/Error503ServiceUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Error504GatewayTimeout"
          },
          "507": {
            "$ref": "#/components/responses/Error507InsufficientStorage"
          }
        },
        "summary": "Create or modify an attachment",
        "tags": [
          "Attachments"
        ],
        "x-api-tags": [
          "Apache CouchDB",
          "IBM Cloudant"
        ],
        "x-cli-exclude": true,
        "x-codegen-request-body-name": "attachment",
        "x-content-type-default": "application/octet-stream",
        "x-content-type-description": "Content-Type of the attachment.",
        "x-content-type-required": true,
        "x-ibm-events": {
          "events": [
            {
              "name": "cloudantnosqldb.data-document.write"
            }
          ]
        },
        "x-ibm-permissions": {
          "actions": [
            {
              "name": "cloudantnosqldb.data-document.write"
            }
          ]
        },
        "x-rate-limit": "This operation consumes one `write` request.",
        "x-visible-environment": "default",
        "x-sdk-operations": {
          "request-examples": {
            "curl": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "curl -H \"Authorization: Bearer A1b2C3QiOiIyMDE4MDgxNDAwMDAwMDAwMDAwMDBjNzYwNzY2YjYxYjYwYjYwIiwidHlwIjoiSldUIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJ1c2VyQGdtYWlsLmNvbSIsImF1ZCI6Imh0dHBzOi8vaWF1LmNsb3VkLmlibS5jb20iLCJpYXQiOjE2ODg4ODg4ODgsImV4cCI6MTY4ODg5MjQ4OCwiaXNzIjoiaHR0cHM6Ly9pYXUuY2xvdWQuaWJtLmNvbSIsInNjb3BlIjpbImNsb3VkLnJlYWRlciJdfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c\" -X PUT \"https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud/products/small-appliances:100001/product_details.txt\" -H \"Content-Type: text/plain\" --data 'This appliance includes...'\n"
                    ]
                  }
                ]
              }
            ],
            "go": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import (\n",
                      "  \"bytes\"\n",
                      "  \"encoding/json\"\n",
                      "  \"fmt\"\n",
                      "  \"io\"\n",
                      "\n",
                      "  \"github.com/IBM/cloudant-go-sdk/cloudantv1\"\n",
                      ")\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "service, err := cloudantv1.NewCloudantV1(\n",
                      "  &cloudantv1.CloudantV1Options{},\n",
                      ")\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "putAttachmentOptions := service.NewPutAttachmentOptions(\n",
                      "  \"products\",\n",
                      "  \"1000042\",\n",
                      "  \"product_details.txt\",\n",
                      "  io.NopCloser(\n",
                      "    bytes.NewReader([]byte(\"This appliance includes...\")),\n",
                      "  ),\n",
                      "  \"text/plain\",\n",
                      ")\n",
                      "\n",
                      "documentResult, response, err := service.PutAttachment(putAttachmentOptions)\n",
                      "if err != nil {\n",
                      "  panic(err)\n",
                      "}\n",
                      "\n",
                      "b, _ := json.MarshalIndent(documentResult, \"\", \"  \")\n",
                      "fmt.Println(string(b))\n"
                    ]
                  }
                ]
              }
            ],
            "java": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import com.ibm.cloud.cloudant.v1.Cloudant;\n",
                      "import com.ibm.cloud.cloudant.v1.model.DocumentResult;\n",
                      "import com.ibm.cloud.cloudant.v1.model.PutAttachmentOptions;\n",
                      "\n",
                      "import java.io.ByteArrayInputStream;\n",
                      "import java.io.InputStream;\n",
                      "import java.nio.charset.StandardCharsets;\n"
                    ],
                    "x-note": "imports"
                  },
                  {
                    "type": "code",
                    "source": [
                      "Cloudant service = Cloudant.newInstance();\n",
                      "\n",
                      "String detailedDescription = \"This appliance includes...\";\n",
                      "\n",
                      "InputStream detailedDescriptionStream =\n",
                      "    new ByteArrayInputStream(detailedDescription\n",
                      "        .getBytes(StandardCharsets.UTF_8));\n",
                      "\n",
                      "PutAttachmentOptions attachmentOptions =\n",
                      "    new PutAttachmentOptions.Builder()\n",
                      "        .db(\"products\")\n",
                      "        .docId(\"1000042\")\n",
                      "        .attachmentName(\"product_details.txt\")\n",
                      "        .attachment(detailedDescriptionStream)\n",
                      "        .contentType(\"text/plain\")\n",
                      "        .build();\n",
                      "\n",
                      "DocumentResult response =\n",
                      "    service.putAttachment(attachmentOptions).execute()\n",
                      "        .getResult();\n",
                      "\n",
                      "System.out.println(response);\n"
                    ]
                  }
                ]
              }
            ],
            "node": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "import { CloudantV1 } from '@ibm-cloud/cloudant';\n",
                      "\n",
                      "const service = CloudantV1.newInstance({});\n",
                      "\n",
                      "const stream = new Readable();\n",
                      "stream.push('This appliance includes...');\n",
                      "stream.push(null);\n",
                      "\n",
                      "service.putAttachment({\n",
                      "  db: 'products',\n",
                      "  docId: '1000042',\n",
                      "  attachmentName: 'product_details.txt',\n",
                      "  attachment: stream,\n",
                      "  contentType: 'text/plain'\n",
                      "}).then(response => {\n",
                      "  console.log(response.result);\n",
                      "});\n"
                    ]
                  }
                ]
              }
            ],
            "python": [
              {
                "name": "Example request",
                "example": [
                  {
                    "type": "code",
                    "source": [
                      "from ibmcloudant.cloudant_v1 import CloudantV1\n",
                      "\n",
                      "service = CloudantV1.new_instance()\n",
                      "\n",
                      "detailed_description = \"This appliance includes...\"\n",
                      "response = service.put_attachment(\n",
                      "  db='products',\n",
                      "  doc_id='1000042',\n",
                      "  attachment_name='product_details.txt',\n",
                      "  attachment=detailed_description,\n",
                      "  content_type='text/plain'\n",
                      ").get_result()\n",
                      "\n",
                      "print(response)\n"
                    ]
                  }
                ]
              }
            ]
          }
        }
      }
    }
  },
  "security": [
    {
      "Basic": []
    },
    {
      "Cookie": []
    },
    {
      "IAM": []
    }
  ],
  "servers": [
    {
      "url": "https://~replace-with-cloudant-host~.cloudantnosqldb.appdomain.cloud"
    }
  ],
  "tags": [
    {
      "name": "Server"
    },
    {
      "name": "Databases"
    },
    {
      "name": "Documents"
    },
    {
      "name": "Design Documents"
    },
    {
      "name": "Views"
    },
    {
      "name": "Queries"
    },
    {
      "name": "Searches"
    },
    {
      "name": "Partitioned Databases"
    },
    {
      "name": "Changes"
    },
    {
      "name": "Replication"
    },
    {
      "name": "Authentication"
    },
    {
      "name": "Authorization"
    },
    {
      "name": "CORS"
    },
    {
      "name": "Attachments"
    },
    {
      "name": "Local Documents"
    },
    {
      "name": "Database Details"
    },
    {
      "name": "Monitoring"
    }
  ],
  "x-rate-limit-enabled": true
}