docs: def update_resource_attribute(resource_attr_id, is_var, **kwargs):
      """
          Deletes a resource attribute and all associated data.
      """
      user_id = kwargs.get('user_id')
      try:
          ra = db.DBSession.query(ResourceAttr).filter(ResourceAttr.id == resource_attr_id).one()
      except NoResultFound:
          raise ResourceNotFoundError("Resource Attribute %s not found"%(resource_attr_id))
  
      ra.check_write_permission(user_id)
  
      ra.is_var = is_var
  
      return 'OK'