Update a document

Updates the title and content of the specified document.