import { client } from "./client"; import type { ExamQuestion, QuestionKind } from "./types"; export type PatchExamQuestionBody = { text?: string | null; kind?: QuestionKind | null; points?: number | null; choices?: string[] | null; correct?: number | null; }; export function patchExamQuestionById( examId: string, questionId: string, body: PatchExamQuestionBody, ): Promise { return client(`/exams/${examId}/questions/${questionId}`, { method: "PATCH", body }); }