hezarfen_frontend
Clone
https://git.tahinli.com/archive/hezarfen_frontend.git
0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits
| 1 | import { client } from "../client"; |
| 2 | import type { Course, CourseKind } from "../client"; |
| 3 | |
| 4 | /** Omitted fields keep their value. Requires catalog rights: creator or manager+. */ |
| 5 | export type PatchCourseBody = { |
| 6 | title?: string; |
| 7 | description?: string; |
| 8 | kind?: CourseKind; |
| 9 | }; |
| 10 | |
| 11 | export function patchCourseById(id: string, body: PatchCourseBody): Promise<Course> { |
| 12 | return client<Course>(`/courses/${id}`, { method: "PATCH", body }); |
| 13 | } |