forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

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

postParentStudent.ts15 lines, 383 bytesHistoryRawDownload
1import { client } from "../client";
2import type { PersonRef } from "../client";
3
4export interface ParentLinkResponse {
5 parent: PersonRef;
6 student: PersonRef;
7 linked_by: PersonRef;
8}
9
10export async function postParentStudent(id: string, user_id: string): Promise<ParentLinkResponse> {
11 return client(`/users/${id}/students`, {
12 method: "POST",
13 body: { user_id },
14 });
15}