undo
Revert a NextDNS profile change by change ID. If later edits exist, it stops and reports differences; force restores old state, and reverting creation deletes the profile with double confirmation.
Instructions
Put a profile back the way it was before one change (IDs from changes). Only when the user asked. If the profile was changed again since (in the NextDNS dashboard or by a later change), undo stops and says what differs; force=true puts the old state back anyway, which also drops those later changes. Undoing the creation of a profile deletes it, so it needs a double confirmation like delete_profile: the first call gives a code, and only after the user says yes, call again with confirm_code.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| force | No | true: put the old state back even if the profile changed since, which also drops those later changes. | |
| change_id | Yes | The ID of the change to undo, from changes. | |
| confirm_code | No | Leave empty on the first call. After the user says yes, pass the code the first call gave you. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |