forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

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

patchUserRole.ts9 lines, 247 bytesHistoryRawDownload
1import { client } from "../client";
2import type { Role, User } from "../client";
3
4export function patchUserRole(id: string, role: Role): Promise<User> {
5 return client<User>(`/users/${id}/role`, {
6 method: "PATCH",
7 body: { role },
8 });
9}