latestOpenAPI 3.0.2cPanel License2026-08-106251554.3 MB

3da41671c02c

Server Administration
Configuration Clusters

Update configuration file from backup via POST

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.

post/restore_config_from_upload

Response

HTTP Request was successful.

Example response

{
  "metadata": {
    "command": "restore_config_from_upload",
    "reason": "OK",
    "result": 1,
    "version": 1
  }
}