forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

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

postSchoolAdminPassword.ts11 lines, 408 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(slug: string, body: SchoolAdminPasswordBody): Promise<void> {
10 return client<void>(`/schools/${encodeURIComponent(slug)}/admin-password`, { method: "POST", body });
11}