My bad, I was simply giving the document to the documentUpdate function - it expects docId and docRevision separately.
documentUpdate