public Response update ( String id , Object document ) { Misc . checkNotNullOrEmpty ( id , "id" ) ; Misc . checkNotNull ( document , "Document" ) ; // Get the latest rev, will throw if doc doesn't exist getDocumentRev ( id ) ; return putUpdate ( id , document ) ; }
Document should be complete document include _id matches ID