restore_deleted_elements
mutationSince v1.0Bring deleted elements back with their original ids: same UUID, same auto-ID, same relationships and diagram placements. A restored type returns with every instance its delete took. Take the op_ids from list_deleted_elements or get_element_history. Everything is checked first, and if anything is in the way the whole call is refused with the reason. Options:
- allow_partial restores what it can and reports the rest.
- renumber_on_conflict takes the next free auto-ID if the old number is now taken.
- allow_duplicate_name restores a type next to a newer one with the same name.
- dry_run shows what would come back without changing anything.
Simulation agents and links removed by the delete are not restored yet. Undoable.
Example Request
{"op_ids": [122809], "dry_run": true}This content was written collaboratively with AI.