Skip to main content

Config_restore

Config_Restore

This call can be used to restore a full backup of the current system configuration, in the same format as would be read from the config file if the server were to do boot cleanly right now.

Config backup/restore are guaranteed to be executed first, before any other API call is evaluated. If both config_backup and (config_restore) are called simultaneously, the backup is executed before the restore. This is to allow for atomically backing up the existing config while overriding it with a complete new config.

It is sent as follows:

{
"config_restore": {
//Object containing the exact same JSON as the config file would contain when written
}
}

There is no response to this call.