forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB5fcd955Burak Boduroğlu2 months ago730 commits

postExamQuestionFromBank.ts14 lines, 455 bytesHistoryRawDownload
1import { client } from "../client";
2import type { ExamQuestion } from "../client";
3
4/** Copy a bank question into this exam; `subjectId` is the exam-side subject. */
5export function postExamQuestionFromBank(
6 examId: string,
7 bankQuestionId: string,
8 subjectId: string,
9): Promise<ExamQuestion> {
10 return client<ExamQuestion>(`/exams/${examId}/questions/from-bank/${bankQuestionId}`, {
11 method: "POST",
12 body: { subject_id: subjectId },
13 });
14}