forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiBdcf123aBurak Boduroğlu2 months ago674 commits

postEventAttendance.ts17 lines, 414 bytesHistoryRawDownload
1import { client } from "../client";
2import type { Attendance, AttendanceStatus } from "../client";
3
4export type PostEventAttendanceBody = {
5 status: AttendanceStatus;
6 user_id?: string | null;
7};
8
9export function postEventAttendance(
10 eventId: string,
11 body: PostEventAttendanceBody,
12): Promise<Attendance> {
13 return client<Attendance>(`/events/${eventId}/attendance`, {
14 method: "POST",
15 body,
16 });
17}