forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

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

patchAcademicYearById.ts15 lines, 579 bytesHistoryRawDownload
1import { client } from "../client";
2import type { AcademicYear, GradePromotion } from "../client";
3
4export type PatchAcademicYearBody = {
5 name?: string | null;
6 starts_at?: number | null;
7 ends_at?: number | null;
8 /** The whole new policy, not a delta: a grade left out is no longer promoted. */
9 grade_promotions?: GradePromotion[] | null;
10};
11
12/** An archived year is read-only. */
13export function patchAcademicYearById(id: string, body: PatchAcademicYearBody): Promise<AcademicYear> {
14 return client<AcademicYear>(`/academic-years/${id}`, { method: "PATCH", body });
15}