Fix bug on REST API wherein sends 404 for successful update/patch