solution for PUT requests