forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

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

patchOfferingExamWeight.ts8 lines, 459 bytesHistoryRawDownload
1import { client } from "../client";
2import type { ExamWeightEntry } from "../client";
3
4// Manager+. `kind` must be one the school runs (400 `unknown_exam_kind`);
5// `weight` 1..100. Inheriting sections pick the change up at once.
6export function patchOfferingExamWeight(id: string, body: ExamWeightEntry): Promise<{ weights: ExamWeightEntry[] }> {
7 return client<{ weights: ExamWeightEntry[] }>(`/offerings/${id}/exam-weights`, { method: "PATCH", body });
8}