forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

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

postInstanceTeacher.ts13 lines, 456 bytesHistoryRawDownload
1import { client } from "../client";
2import type { Instance } from "../client";
3
4/**
5 * Manager+ only — staffing is the office's call. The assignee gets full
6 * management of the instance but no catalog rights over the course itself.
7 */
8export function postInstanceTeacher(instanceId: string, userId: string): Promise<Instance> {
9 return client<Instance>(`/instances/${instanceId}/teachers`, {
10 method: "POST",
11 body: { user_id: userId },
12 });
13}