(path: string, newPath: string)
| 49 | } |
| 50 | |
| 51 | export 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 | } |
no test coverage detected