Introduced replace method to use Put instead of Patch