forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

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

postClassBlueprint.ts11 lines, 550 bytesHistoryRawDownload
1import { client } from "../client";
2import type { BlueprintResult } from "../client";
3
4export type CreateBlueprintBody = { grade_level: number; course_ids: string[] };
5
6// Manager+. Creates the blueprint and immediately applies it to every existing
7// class at that grade; pairs that could not land come back in `skipped`.
8// A grade that already holds a blueprint is a 409.
9export function postClassBlueprint(body: CreateBlueprintBody): Promise<BlueprintResult> {
10 return client<BlueprintResult>("/classes/blueprints", { method: "POST", body });
11}