Change PUT method to use ID in URL. Make error handling more consistent.