forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

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

postInstanceWeeklySlot.ts8 lines, 433 bytesHistoryRawDownload
1import { client } from "../client";
2import type { WeeklySlot } from "../client";
3import type { CreateWeeklySlotBody } from "../offerings/postOfferingWeeklySlot";
4
5// Adds a slot to the section's own week; from here its own rows are the plan.
6export function postInstanceWeeklySlot(id: string, body: CreateWeeklySlotBody): Promise<WeeklySlot> {
7 return client<WeeklySlot>(`/instances/${id}/weekly-plan`, { method: "POST", body });
8}