# Update a CAT question **PATCH /api/v1/cats/{id}/question/{question}** Updates an existing question in a CAT. Can modify question text, options, marks, or correct answers. ## Servers - Local server: http://localhost:3500 (Local server) - Production server: https://api.echoplain.social (Production server) ## Parameters ### Path parameters - **question** (string) Question ID to update - **id** () CAT ID (not used in logic but required for route) ### Body: application/json (object) Updated question data (partial update supported) - **question** (string) - **type** (string) Type of question: STRUCTURED (MCQ, auto-gradable) or UNSTRUCTURED (open-ended, essay) - **options** (array[string]) Options for structured questions (MCQ). Required for STRUCTURED type, ignored for UNSTRUCTURED - **correctAnswers** (array[string]) Correct answers for auto-grading. Required for STRUCTURED type, ignored for UNSTRUCTURED - **maxScore** (number) Maximum score/marks for this question ## Responses ### 200 Question updated successfully ### 400 Invalid question data ### 403 Insufficient permissions - requires ADMIN or LECTURER role ### 404 Question not found [Powered by Bump.sh](https://bump.sh)