5.8. POST /db/_ensure_full_commit

MethodPOST /db/_ensure_full_commit
Request None
Response JSON success statement
Admin Privileges Requiredno
Return Codes
200 Commit completed successfully
404 The requested content could not be found. The returned content will include further information, as a JSON object, if available.

Commits any recent changes to the specified database to disk. You should call this if you want to ensure that recent changes have been written. For example, to commit all the changes to disk for the database recipes you would use:

POST http://couchdb:5984/recipes/_ensure_full_commit
Content-Type: application/json

This returns a status message, containing the success message and the timestamp for when the CouchDB instance was started:

{
  "ok" : true,
  "instance_start_time" : "1288186189373361"
}