forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB4e0a329Burak Boduroğlu2 months ago537 commits

postPlanAssignment.ts12 lines, 350 bytesHistoryRawDownload
1import { client } from "../client";
2import type { AssignmentOutcome } from "./types";
3
4export function postPlanAssignment(
5 planId: string,
6 body: { student_ids: string[] },
7): Promise<AssignmentOutcome[]> {
8 return client<AssignmentOutcome[]>(
9 `/payments/plans/${encodeURIComponent(planId)}/assignments`,
10 { method: "POST", body },
11 );
12}