Changed put method in TaskAPI class

This is my proposed solution to the issue I raised, should also cover concerns mentioned by one of your commenters on your RESTful API V2 blog post. 

Thanks - liked your tutorials so much that I signed up for book info. If I can get any spare time from work, I'll buy it and work my way through it.