MCPcopy Create free account
hub / github.com/acking-you/static_flow / patchSession

Function patchSession

crates/frontend/gpt2api-app/src/api.ts:68–73  ·  view source on GitHub ↗
(key: string, sessionId: string, patch: { title?: string; status?: string })

Source from the content-addressed store, hash-verified

66}
67
68export function patchSession(key: string, sessionId: string, patch: { title?: string; status?: string }) {
69 return fetchJson<SessionDetail>(`/sessions/${encodeURIComponent(sessionId)}`, key, {
70 method: "PATCH",
71 body: JSON.stringify(patch),
72 });
73}
74
75export function deleteSession(key: string, sessionId: string) {
76 return fetchJson<{ deleted: boolean; id: string }>(`/sessions/${encodeURIComponent(sessionId)}`, key, {

Callers 1

sendFunction · 0.90

Calls 1

fetchJsonFunction · 0.85

Tested by

no test coverage detected