I want to regenerate a whole document by calling the patch functionality. So I don't have to delete the previous document when the data changes.