Currently if you try to update a document using the service layer API you can provide a different uid in the document than you give in the function arguments. We need to fix this so that the service layer checks to ensure that the uid in the document either doesn't exist, or matches the one provided in the function arguments.