forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBd962efeBurak Boduroğlu4 months ago146 commits

patchCourseById.ts13 lines, 392 bytesHistoryRawDownload
1import { client } from "./client";
2import type { Course, CourseKind } from "./types";
3
4export type PatchCourseBody = {
5 title?: string | null;
6 description?: string | null;
7 kind?: CourseKind | null;
8 term_id?: string | null;
9};
10
11export function patchCourseById(id: string, body: PatchCourseBody): Promise<Course> {
12 return client<Course>(`/courses/${id}`, { method: "PATCH", body });
13}