restore_backup
Put a saved NextDNS backup back as a new profile or over an existing profile; confirm overwrites before applying.
Instructions
Put a saved backup back, either as a new profile (new_profile_name, overwrites nothing) or over an existing one (by default the profile it was taken from); take the ID from backups. Overwriting asks twice: the first call changes nothing and gives a code; ask the user, and only after they say yes, call again with confirm_code. Either way it's recorded, so undo can reverse it (undoing a new profile deletes it). Returns what was restored, any parts that didn't come back, and the change ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | No | The profile to overwrite. Empty means the one the backup was taken from. | |
| backup_id | Yes | The backup's ID, from backups. | |
| confirm_code | No | Leave empty on the first call. After the user says yes, pass the code the first call gave you. | |
| new_profile_name | No | Make a new profile with this name from the backup instead, so nothing is overwritten. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |