updatePrompt
Stub — This method is not implemented yet. Planned for a future ImagineoAI release.
Updates a prompt by its ID.
Available in: Browser & Node.js SDK (stub)
Signature
async updatePrompt(id: string, input: UpdatePromptRequest): Promise<UpdatePromptResponse>
Parameters
id: string— The prompt ID.input: { prompt?: string, enhancedPrompt?: string }— Fields to update.
Returns
Promise<{ prompt: Prompt }>— The updated prompt object (seePrompttype in the API reference).
Errors
- Throws
"not implemented yet."
Example
await client.updatePrompt("prompt-id", { prompt: "new text" }); // Throws for now