forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

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

patchCourseById.ts13 lines, 433 bytesHistoryRawDownload
1import { client } from "../client";
2import type { Course, CourseKind } from "../client";
3
4/** Omitted fields keep their value. Requires catalog rights: creator or manager+. */
5export type PatchCourseBody = {
6 title?: string;
7 description?: string;
8 kind?: CourseKind;
9};
10
11export function patchCourseById(id: string, body: PatchCourseBody): Promise<Course> {
12 return client<Course>(`/courses/${id}`, { method: "PATCH", body });
13}