changes to use PUT requests to update the pin status, and the GET to get the pin level status