# apply_feedback_changes (/mcp/tools/apply_feedback_changes)

`apply_feedback_changes` · Changes data

Correct a product's feedback: the only way to change an insight's type, sentiment or place and to rename or merge topics. Send an ordered list of steps, each an object with `op` and that kind's fields; a single correction is a list of one step:
- `update_insight`: `insightId` and a `type`, a `sentiment`, or both; any insight of the product, linked or not.
- `move_insight`: `insightId` and exactly one of `featureId` (a live feature: the insight leaves its topic and the AI groups it into a topic there after the save), `newOpportunity: true` (likewise, for feedback matching no feature) or `topicId` (a topic not merged away: the insight joins it and so its feature). Only insights of processed records linked to a feature or New opportunity can move.
- `rename_topic`: `topicId` and `name`, 1 to 50 characters on one line, trimmed.
- `merge_topic`: `topicId` into `intoId`, a topic under the same feature (or both under New opportunity), not the topic itself: its insights move into `intoId`, and reading the merged topic answers `intoId`. To bring feedback from another feature, move its insights.
Each step runs on the feedback as the earlier steps left it. A step that would change nothing is skipped, not refused: the type, sentiment or name it already has, or a move to where the insight already reads. A topic can't move as a whole: move its insights, one step each (more than 50 take several changes).
Work in two calls. Find the ids with `search`, `list_topics`, `list_topic_insights` or `list_source_records`, then send the steps with `dryRun: true` and the read's `meta.feedbackVersion` as `expectedVersion`: nothing is saved, and the answer lists each step's `changes` (edited fields with their value `before`), `skipped` steps, `problems` (each step that would be refused, with the reason and rule) and each named topic as it would be after them (`topics`). Show the person the outcome. Then send the same steps without `dryRun`: all are saved or none. The first refused step stops the call and saves nothing: its refusal is the answer, the message starting "Step \<n>: " and `details.step` naming it. A save answers the feedback change it stored and the new `version`; when every step was skipped nothing is stored and `change` is null. Background work (grouping, linking, new feedback) leaves the version as it is, so topic counts may differ from the preview. One `undo_change` with area `feedback` reverses it all; it can't be redone.
At most 50 steps per call. `expectedVersion` refuses the call (`conflict`) when anyone stored a feedback change since your read: read again, check the plan, send the new version. A retry is safe: the same save again answers the first result while it is the product's newest feedback change, yours and not undone. Product Owners and Admins only; Viewers are refused, also for a preview.

## Inputs

- Who can use it: Admins and the product's Owners
- Hints: Changes data, Can remove data, Safe to repeat
- Runs: [`apply_feedback_changes`](/api/feedback/apply_feedback_changes)
- Inputs:
  - `productId` (string, required): From `read_product` with action `list` or `get_me`.
  - `body` (object, required): An ordered list of feedback changes, previewed with `dryRun` or saved as one change.
    - `steps` (array of objects, required): The changes to make, in order, 1 to 50. Each is one object: `op` names the kind of change and the other fields are its inputs, its insight or topic id included.
      - One of:
        - `op`: `update_insight`
          - `insightId` (string, required): The insight to change.
          - `type` (string): What kind of feedback it is: feature_request, bug, praise, complaint or question. Allowed values: `feature_request`, `bug`, `praise`, `complaint`, `question`.
          - `sentiment` (string): How the customer feels: positive, neutral or negative. Allowed values: `positive`, `neutral`, `negative`.
        - `op`: `move_insight`
          - `insightId` (string, required): The insight to change.
          - `featureId` (string): Move it to this feature; the AI then groups it into a topic there.
          - `newOpportunity` (boolean): true: move it to New opportunity, for feedback that matches no feature. Allowed values: `true`.
          - `topicId` (string): Move it into this topic, and so to the topic's feature.
        - `op`: `rename_topic`
          - `topicId` (string, required): The topic to change.
          - `name` (string, required): The topic's new name, 1 to 50 characters on one line.
        - `op`: `merge_topic`
          - `topicId` (string, required): The topic to merge away.
          - `intoId` (string, required): The topic to merge into.
    - `dryRun` (boolean): true: save nothing and answer the outcome (changes, skipped and refused steps, the topics touched).
    - `expectedVersion` (string): The `meta.feedbackVersion` from the read you planned from (or a dry run's `version`); refused when the feedback changed since.
