forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

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

patchInstanceById.ts17 lines, 539 bytesHistoryRawDownload
1import { client } from "../client";
2import type { Instance } from "../client";
3
4/**
5 * The section's own overrides. Omit to keep; a PATCH sets, it never clears —
6 * clearing back to inherit is postInstanceReset. Never send null.
7 */
8export type PatchInstanceBody = {
9 title?: string;
10 description?: string;
11 ders_saati?: number;
12 counts_toward_karne?: boolean;
13};
14
15export function patchInstanceById(id: string, body: PatchInstanceBody): Promise<Instance> {
16 return client<Instance>(`/instances/${id}`, { method: "PATCH", body });
17}