UAPI accesses the cPanel interface's features. Use this API to access and modify cPanel account data and settings.
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/
https://{host}:{port}/execute/
Request
This function returns whether a WordPress® site backup restoration is in progress.
Note:
- You must install the WordPress Manager cPanel plugin to access this API function.
- The output of this function changes, depending on the state of the backup restoration.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/WordPressRestore/any_running
- A server running cPanel.
https://cpanel-server.tld:2083/execute/WordPressRestore/any_running
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/WordPressRestore/any_running{ "data": { "any_running": 1, "sites": [ … ] }, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null }
Request
This function cleans up any temporary system resources after a WordPress® site backup restoration.
Note:
You must install the WordPress Manager cPanel plugin to access this API function.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/WordPressRestore/cleanup
- A server running cPanel.
https://cpanel-server.tld:2083/execute/WordPressRestore/cleanup
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/WordPressRestore/cleanup?site=string'{ "apiversion": 3, "func": "cleanup", "module": "WordPressRestore", "result": { "data": 1, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }
Request
This function starts a single WordPress® site backup restoration.
Note:
You must install the WordPress Manager cPanel plugin to access this API function.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/WordPressRestore/start
- A server running cPanel.
https://cpanel-server.tld:2083/execute/WordPressRestore/start
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
-u <username>:<password> \
'https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/WordPressRestore/start?backup_path=%2Fhome%2Fexample%2Fwordpress-backups%2Fexample.com__2018-11-13T11%3A11%3A31-0600.tar.gz&site=string'{ "apiversion": 3, "func": "start", "module": "WordPressRestore", "result": { "data": { … }, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }