Skip to main content
Version: 1.11.0-beta

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 (see Prompt type in the API reference).

Errors

  • Throws "not implemented yet."

Example

await client.updatePrompt("prompt-id", { prompt: "new text" }); // Throws for now