forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

0 watching0 forksTypeScript5.5 MiB7122d71Burak Boduroğlu4 months ago419 commits

patchTermById.ts12 lines, 338 bytesHistoryRawDownload
1import { client } from "../client";
2import type { Term } from "../client";
3
4export type PatchTermBody = {
5 name?: string | null;
6 starts_at?: number | null;
7 ends_at?: number | null;
8};
9
10export function patchTermById(id: string, body: PatchTermBody): Promise<Term> {
11 return client<Term>(`/terms/${id}`, { method: "PATCH", body });
12}