Skip to Content
Heuristic documentation

undo_change

Changes data

Undo one change of a product's history, all of it or none (Product Owners and Admins, once per change). It restores every value the change set, origins included, and answers the undo, itself a change. Refused (conflict, rule in details.rule) when a value it set changed since, the result would break a rule, or it was already undone. To undo what you just did, take the newest change in list_changes with app set to your app.clientId whose createdBy.id is your person's id (both from get_me): others may use the same app.

Set area to one of these:

  • hierarchy (needs productId, changeId; optional expectedVersion): Positions come back too. Undoing an undo is a redo: it does the change again, and can itself be undone.
  • feedback (needs productId, changeId; optional expectedVersion): Also refused when a topic it would bring back was merged away. An undo can't be undone.

Actions (set area)

hierarchy

Who can use it
Admins and the product's Owners
Hints
Changes data
Runs
undo_hierarchy_change
Inputs
  • productId string, required

    From read_product with action list or get_me.

  • changeId string, required

    The change's id, from list_changes with the same area.

  • expectedVersion string

    Optional: the version you planned from, refused (conflict) when it changed since: for hierarchy the version from get_hierarchy, for feedback the meta.feedbackVersion from a feedback read.

feedback

Who can use it
Admins and the product's Owners
Hints
Changes data
Runs
undo_feedback_change
Inputs
  • productId string, required

    From read_product with action list or get_me.

  • changeId string, required

    The change's id, from list_changes with the same area.

  • expectedVersion string

    Optional: the version you planned from, refused (conflict) when it changed since: for hierarchy the version from get_hierarchy, for feedback the meta.feedbackVersion from a feedback read.