Method | PUT /db/_revs_limit | |
Request | A scalar integer of the revision limit setting | |
Response | Confirmation of setting of the revision limit | |
Admin Privileges Required | no |
Sets the maximum number of document revisions that will be tracked
by CouchDB, even after compaction has occurred. You can set the
revision limit on a database by using PUT
with
a scalar integer of the limit that you want to set as the request
body.
For example to set the revs limit to 100 for the
recipes
database:
PUT http://couchdb:5984/recipes/_revs_limit Content-Type: application/json 100
If the setting was successful, a JSON status object will be returned:
{ "ok" : true }