forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

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

patchSessionById.ts13 lines, 405 bytesHistoryRawDownload
1import { client } from "./client";
2import type { CourseSession } from "./types";
3
4export type PatchSessionBody = {
5 topic?: string | null;
6 teacher_id?: string | null;
7 starts_at?: number | null;
8 ends_at?: number | null;
9};
10
11export function patchSessionById(id: string, body: PatchSessionBody): Promise<CourseSession> {
12 return client<CourseSession>(`/sessions/${id}`, { method: "PATCH", body });
13}