Fixed API client when mixing GET and PUT/POST calls