forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

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

patchHomeworkById.ts14 lines, 406 bytesHistoryRawDownload
1import { client } from "../client";
2import type { Homework } from "../client";
3
4export type PatchHomeworkBody = {
5 title?: string;
6 description?: string | null;
7 due_at?: number;
8 subject_id?: string;
9 assigned?: string[] | null;
10};
11
12export function patchHomeworkById(id: string, body: PatchHomeworkBody): Promise<Homework> {
13 return client<Homework>(`/homework/${id}`, { method: "PATCH", body });
14}