forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

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

postInstanceReset.ts8 lines, 430 bytesHistoryRawDownload
1import { client } from "../client";
2import type { Instance, InstanceOverrideField } from "../client";
3
4// Clears the named overrides back to inherit; a set field (subjects,
5// exam_weights, weekly_plan) flips its flag back to inherited.
6export function postInstanceReset(id: string, fields: InstanceOverrideField[]): Promise<Instance> {
7 return client<Instance>(`/instances/${id}/reset`, { method: "POST", body: { fields } });
8}