MCPcopy
hub / github.com/OpenBMB/UltraRAG / renamePrompt

Function renamePrompt

ui/frontend/src/shared/api/prompts.ts:51–58  ·  view source on GitHub ↗
(path: string, newPath: string)

Source from the content-addressed store, hash-verified

49}
50
51export async function renamePrompt(path: string, newPath: string): Promise<unknown> {
52 return httpRequest<unknown>(`/api/prompts/${encodePromptPath(path)}/rename`, {
53 method: "POST",
54 body: {
55 new_name: newPath,
56 },
57 });
58}

Callers 1

handleRenamePromptFunction · 0.90

Calls 2

httpRequestFunction · 0.90
encodePromptPathFunction · 0.85

Tested by

no test coverage detected