import { client } from "./client"; import type { Course, CourseKind } from "./types"; export type PatchCourseBody = { title?: string | null; description?: string | null; kind?: CourseKind | null; term_id?: string | null; capacity?: number | null; }; export function patchCourseById(id: string, body: PatchCourseBody): Promise { return client(`/courses/${id}`, { method: "PATCH", body }); }