Skip to content

0. Add POST /api/v1/admin/courses/:id/modules/:moduleId/quizzes/:quizId endpoint #413

Description

@DeFiVC

What: Add an admin endpoint for updating an existing quiz (regenerate questions, modify metadata).

Why: Admins need to update quizzes that have incorrect or outdated questions. Currently there's no way to modify existing quizzes.

Scope: Create endpoint that allows: replacing all questions, updating quiz metadata, archiving the quiz. Validate new questions before applying.

Acceptance criteria:

  • Admin can update quiz questions
  • New questions are validated
  • Update is atomic
  • Changes are logged in audit logs

Technical context: src/modules/quizzes/quiz.service.ts — quiz operations. src/database/schema.ts:88-109 — quizzes table.


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions