forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB0069847Burak Boduroğlu2 months ago552 commits

patchSchoolBySlug.ts11 lines, 356 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 patchSchoolBySlug(slug: string, body: UpdateSchoolBody): Promise<School> {
10 return client<School>(`/schools/${encodeURIComponent(slug)}`, { method: "PATCH", body });
11}