This function restores a configuration backup file via HTTP POST method. If the backup file does not contain any changes, the system does not write to the configuration file.
Note:
The format for this command line example differs from our standard format because the function only accepts an HTTP POST request. For more information about how to call this request method, read Mozilla's POST documentation.
file required | string <binary> The configuration file data, in Note: When you call this function on the command line, you must provide the configuration file's filepath. For example, you would use the 'file=@/var/cpanel/cpanel.config' parameter structure to call this function. |
module required | string The configuration module's name.
Important: This parameter is case-sensitive. You must enter the parameter in the correct case format; otherwise, the function will fail. |
HTTP Request was successful.
object |
whmapi1 --input=json --output=jsonpretty \ restore_config_from_upload
{- "metadata": {
- "command": "restore_config_from_upload",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}