code: def update_category(category):
      
      try:
          res = _pybossa_req('put', 'category',
                             category.id, payload=category.data)
          if res.get('id'):
              return Category(res)
          else:
              return res
      except:  # pragma: no cover
          raise
docs: Update a Category instance.
  
      :param category: PYBOSSA Category
      :type category: PYBOSSA Category
      :returns: True -- the response status code