update_prompt
Partially update a prompt's template, variables, labels, or description by providing only the fields to change. Use for label promotion and small edits.
Instructions
Partially update an existing prompt's template / variables / labels / description (Pro+ only, PATCH /v1/prompts/:id). name + version are immutable (change them via rename_prompt). promptId is required; only the fields you pass are updated. Used by AI agents for label moves (promoting 'staging' to 'production') and small patch edits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| labels | No | New labels (full replacement, up to 8, each [A-Za-z0-9][A-Za-z0-9_-]{0,31}). | |
| promptId | Yes | Target prompt id (list_prompts.prompts[].id) | |
| template | No | New template body (non-empty, up to 50000 chars). | |
| variables | No | New variables (plain object; null clears them all). | |
| description | No | New description (1-500 chars). To explicitly clear the existing description, PATCH other fields without this one (an empty string '' is rejected by the schema — prevents an LLM hallucination from wiping the existing description). |