# Add a question to exam **POST /api/v1/exam/{id}/add-question** Add a new question (structured or unstructured) to an existing exam. Only admins and lecturers can add questions. ## Servers - Local server: http://localhost:3500 (Local server) - Production server: https://api.echoplain.social (Production server) ## Parameters ### Path parameters - **id** (string) UUID of the exam ### Body: application/json (object) Question data including type, text, options, and scoring - **question** (string) - **type** (string) - **options** (array[string]) - **correctAnswers** (array[string]) - **maxScore** (number) ## Responses ### 201 Question added successfully ### 400 Invalid question data ### 404 Exam not found [Powered by Bump.sh](https://bump.sh)