Skip to content

8. Add POST /api/v1/admin/courses/:id/modules/:moduleId/quizzes/:quizId/questions endpoint #411

Description

@DeFiVC

What: Add an admin endpoint for adding questions to an existing quiz.

Why: Admins need to manually add or modify quiz questions. Currently quizzes are generated as a whole by the AI service.

Scope: Create endpoint that adds a question to an existing quiz. Validate question structure (prompt, options, correct index). Update the quiz's questions JSONB array.

Acceptance criteria:

  • Admin can add questions to existing quizzes
  • Question structure is validated
  • Quiz is updated atomically
  • 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