code: def POST_AUTH(self, courseid):  # pylint: disable=arguments-differ
          
          course, __ = self.get_course_and_check_rights(courseid, allow_all_staff=False)
          user_input = web.input(tasks=[], aggregations=[], users=[])
  
          if "submission" in user_input:
              # Replay a unique submission
              submission = self.database.submissions.find_one({"_id": ObjectId(user_input.submission)})
              if submission is None:
                  raise web.notfound()
  
              web.header('Content-Type', 'application/json')
              self.submission_manager.replay_job(course.get_task(submission["taskid"]), submission)
              return json.dumps({"status": "waiting"})
          else:
              # Replay several submissions, check input
              tasks = course.get_tasks()
              error = False
              msg = _("Selected submissions were set for replay.")
              for i in user_input.tasks:
                  if i not in tasks.keys():
                      msg = _("Task with id {} does not exist !").format(i)
                      error = True
  
              if not error:
                  # Load submissions
                  submissions, __ = self.get_selected_submissions(course, user_input.filter_type, user_input.tasks, user_input.users, user_input.aggregations, user_input.type)
                  for submission in submissions:
                      self.submission_manager.replay_job(tasks[submission["taskid"]], submission)
  
              return self.show_page(course, web.input(), msg, error)
docs: GET request