Update
AI-generatedSummary
Update an existing prompt in DocRouter.ai by specifying the prompt ID along with updated prompt details such as name, content, optional schema information, tags, model, and knowledge base association.
Inputs
- Prompt ID (required) — The stable prompt ID to identify which prompt to update.
- Name (required) — The new name for the prompt.
- Content (required) — The updated prompt content as template text.
- Schema ID — Optional schema ID for structured output associated with this prompt.
- Schema Version — Optional version number of the schema.
- Tag IDs — Comma-separated tag IDs to associate with the prompt.
- Model — The LLM model to use for this prompt, defaulting to 'gpt-4o-mini'.
- Knowledge Base ID — Optional knowledge base ID to link the prompt with.
Output shape
a single record containing the updated prompt details as returned by the DocRouter.ai API
The output includes the updated prompt data in JSON format. Any errors during the operation will be returned as an error message JSON object if 'Continue On Fail' is enabled.