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

Function patchAdminKey

crates/frontend/gpt2api-app/src/api.ts:216–221  ·  view source on GitHub ↗
(key: string, keyId: string, patch: Partial<ProductKey>)

Source from the content-addressed store, hash-verified

214}
215
216export function patchAdminKey(key: string, keyId: string, patch: Partial<ProductKey>) {
217 return fetchJson<ProductKey>(`/admin/keys/${encodeURIComponent(keyId)}`, key, {
218 method: "PATCH",
219 body: JSON.stringify(patch),
220 });
221}
222
223export async function openSessionEventStream(
224 sessionId: string,

Callers 1

updateKeyFunction · 0.90

Calls 1

fetchJsonFunction · 0.85

Tested by

no test coverage detected