forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

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

postTerm.ts14 lines, 386 bytesHistoryRawDownload
1import { client } from "../client";
2import type { Term } from "../client";
3
4export type PostTermBody = {
5 name: string;
6 /** The academic year the dönem sits in; an archived year refuses it (409). */
7 year: string;
8 starts_at: number;
9 ends_at: number;
10};
11
12export function postTerm(body: PostTermBody): Promise<Term> {
13 return client<Term>("/terms", { method: "POST", body });
14}