Update block in web_api.rb