forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

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

patchSchoolModules.ts14 lines, 525 bytesHistoryRawDownload
1import { client } from "../client";
2import type { SchoolModules } from "../client";
3
4export type PatchSchoolModulesBody = {
5 enable?: string[];
6 disable?: string[];
7 enable_packages?: string[];
8 disable_packages?: string[];
9};
10
11// One atomic re-sell: a 409 names every broken dependency and nothing is written.
12export function patchSchoolModules(id: string, body: PatchSchoolModulesBody): Promise<SchoolModules> {
13 return client<SchoolModules>(`/schools/${encodeURIComponent(id)}/modules`, { method: "PATCH", body });
14}