Fetch etag to update revision after successfully adding or editing a
document.