Fixed the update method to actually call put instead of post.