code: def enable_disable(self):
          
          if self.enabled:
              self.data['enabled'] = False
          else:
              self.data['enabled'] = True
          self.update()
docs: Enable or disable this endpoint. If enabled, it will be disabled
          and vice versa.
  
          :return: None