forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

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

patchInstanceById.ts12 lines, 411 bytesHistoryRawDownload
1import { client } from "../client";
2import type { Instance } from "../client";
3
4/** Both fields are non-clearable: omit to keep, never send null. */
5export type PatchInstanceBody = {
6 ders_saati?: number;
7 counts_toward_karne?: boolean;
8};
9
10export function patchInstanceById(id: string, body: PatchInstanceBody): Promise<Instance> {
11 return client<Instance>(`/instances/${id}`, { method: "PATCH", body });
12}