forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

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

patchSchool.ts11 lines, 346 bytesHistoryRawDownload
1import { client } from "../client";
2import type { School, SchoolStatus } from "../client";
3
4export type UpdateSchoolBody = {
5 name?: string;
6 status?: SchoolStatus;
7};
8
9export function patchSchool(id: string, body: UpdateSchoolBody): Promise<School> {
10 return client<School>(`/schools/${encodeURIComponent(id)}`, { method: "PATCH", body });
11}