forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

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

patchInstanceExamWeight.ts9 lines, 494 bytesHistoryRawDownload
1import { client } from "../client";
2import type { ExamWeightEntry } from "../client";
3import type { InstanceExamWeights } from "./getInstanceExamWeights";
4
5// Sets one kind's weight and takes the whole map own: kinds without a row
6// then weigh 1 here instead of following the offering.
7export function patchInstanceExamWeight(id: string, body: ExamWeightEntry): Promise<InstanceExamWeights> {
8 return client<InstanceExamWeights>(`/instances/${id}/exam-weights`, { method: "PATCH", body });
9}