code: def update_kb_attributes(kb_name, new_name, new_description=''):
      
      models.KnwKB.query.filter_by(name=kb_name) \
          .update({"name": new_name, "description": new_description})
docs: Update kb kb_name with a new name and (optionally) description.
  
      :param kb_name: the name of the kb to update
      :param new_name: the new name for the kb
      :param new_description: the new description for the kb