Update Prompt
update_promptEdit an active question’s text, category and assignments together, preserving its ID, enabled state and omitted fields. Requires at least one editable field. Null or [] clears classification arrays. Changing wording keeps prior history and warns that old evidence measured the old wording. To restore a retired question use reactivate_prompt first. Use get_scan_config for current strategy definitions and list_prompts for saved questions. Returns the complete saved prompt with the same fields as list_prompts, retiredMatches (empty after success), and working scanConfig. Does not launch a Scan.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tags | No | Free-form labels. Omission preserves on edit/restoration; null or [] clears. | |
| text | No | ||
| siteId | Yes | Site or Topic ID from list_sites_and_topics. | |
| regions | No | Exact prompt-selectable refs from list_regions. Omission preserves on edit/restoration; null or [] inherits scan defaults, then Global if defaults are empty. | |
| category | No | ||
| personas | No | Audience definition IDs or names from get_scan_config.personas. Include relevant audiences in the creation call. Omission preserves on edit/restoration; null or [] clears. | |
| products | No | Strategy product/service IDs or names from get_scan_config.products. Optional for Topics. Omission preserves on edit/restoration; null or [] clears. | |
| promptId | Yes | Question ID from list_prompts, including retired questions. | |
| journeyStages | No | Definition IDs or names from get_scan_config.journeyStages. First is primary; separate from category. Optional for Topics. Omission preserves on edit/restoration; null or [] clears both stages and primary. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | ||
| summary | Yes | ||
| scanConfig | Yes | ||
| retiredMatches | Yes |