forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits

patchExamById.ts20 lines, 573 bytesHistoryRawDownload
1import { client } from "../client";
2import type { Exam } from "../client";
3
4export type PatchExamBody = {
5 title?: string | null;
6 description?: string | null;
7 kind?: string | null;
8 mode?: string | null;
9 starts_at?: number | null;
10 ends_at?: number | null;
11 duration_ms?: number | null;
12 max_attempts?: number | null;
13 allow_rejoin?: boolean | null;
14 allow_review?: boolean | null;
15 draft?: boolean | null;
16};
17
18export function patchExamById(id: string, body: PatchExamBody): Promise<Exam> {
19 return client<Exam>(`/exams/${id}`, { method: "PATCH", body });
20}