forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBc35a83aBurak Boduroğlu4 months ago440 commits

patchSubjectById.ts11 lines, 334 bytesHistoryRawDownload
1import { client } from "../client";
2import type { Subject } from "../client";
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}