forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

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

postSchoolAdminPassword.ts11 lines, 404 bytesHistoryRawDownload
1import { client } from "../client";
2
3export type SchoolAdminPasswordBody = {
4 username: string;
5 password: string;
6};
7
8// Re-keys an admin of that school and revokes every session the account held.
9export function postSchoolAdminPassword(id: string, body: SchoolAdminPasswordBody): Promise<void> {
10 return client<void>(`/schools/${encodeURIComponent(id)}/admin-password`, { method: "POST", body });
11}