added happy and sad path for PATCH