forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB4e0a329Burak Boduroğlu2 months ago537 commits

patchCourseNoteById.ts12 lines, 403 bytesHistoryRawDownload
1import { client } from "../client";
2import type { CourseNote } from "../client";
3
4/** Omitted fields keep their value; null never clears here. */
5export type PatchCourseNoteBody = {
6 title?: string;
7 content?: string;
8};
9
10export function patchCourseNoteById(id: string, body: PatchCourseNoteBody): Promise<CourseNote> {
11 return client<CourseNote>(`/course-notes/${id}`, { method: "PATCH", body });
12}