forge
Explore
Log in

Don't you dare go Hollow

hezarfen_frontend

Clone
★ 0

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

patchMessageById.ts11 lines, 352 bytesHistoryRawDownload
1import { client } from "../client";
2import type { Message, MessageFolder } from "../client";
3
4export type PatchMessageBody = {
5 folder?: MessageFolder | null;
6 read?: boolean | null;
7};
8
9export function patchMessageById(id: string, body: PatchMessageBody): Promise<Message> {
10 return client<Message>(`/messages/${id}`, { method: "PATCH", body });
11}