forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB249dfedBurak Boduroğlu4 months ago164 commits

patchSubjectById.ts11 lines, 331 bytesHistoryRawDownload
1import { client } from "./client";
2import type { Subject } from "./types";
3
4export type PatchSubjectBody = {
5 name?: string;
6 description?: string;
7};
8
9export function patchSubjectById(subjectId: string, body: PatchSubjectBody): Promise<Subject> {
10 return client<Subject>(`/subjects/${subjectId}`, { method: "PATCH", body });
11}