code: def POST_AUTH(self, courseid):  # pylint: disable=arguments-differ
          
          course, __ = self.get_course_and_check_rights(courseid, allow_all_staff=False)
  
          msg = ""
          error = False
  
          data = web.input()
          if not data.get("token", "") == self.user_manager.session_token():
              msg = _("Operation aborted due to invalid token.")
              error = True
          elif "wipeall" in data:
              if not data.get("courseid", "") == courseid:
                  msg = _("Wrong course id.")
                  error = True
              else:
                  try:
                      self.dump_course(courseid)
                      msg = _("All course data have been deleted.")
                  except:
                      msg = _("An error occurred while dumping course from database.")
                      error = True
          elif "restore" in data:
              if "backupdate" not in data:
                  msg = "No backup date selected."
                  error = True
              else:
                  try:
                      dt = datetime.datetime.strptime(data["backupdate"], "%Y%m%d.%H%M%S")
                      self.restore_course(courseid, data["backupdate"])
                      msg = _("Course restored to date : {}.").format(dt.strftime("%Y-%m-%d %H:%M:%S"))
                  except:
                      msg = _("An error occurred while restoring backup.")
                      error = True
          elif "deleteall" in data:
              if not data.get("courseid", "") == courseid:
                  msg = _("Wrong course id.")
                  error = True
              else:
                  try:
                      self.delete_course(courseid)
                      web.seeother(self.app.get_homepath() + '/index')
                  except:
                      msg = _("An error occurred while deleting the course data.")
                      error = True
  
          return self.page(course, msg, error)
docs: POST request