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 changes the home directory for a Web Disk account.
Important:
When you disable the Web Disk role, the system disables this function.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/WebDisk/set_homedir
- A server running cPanel.
https://cpanel-server.tld:2083/execute/WebDisk/set_homedir
- 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/WebDisk/set_homedir?homedir=example1%2F&user=example1%40example.com&private=0'{ "apiversion": 3, "func": "set_homedir", "module": "WebDisk", "result": { "data": null, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }
Request
This function changes the Web Disk account's password.
Important:
When you disable the Web Disk role, the system disables this function.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/WebDisk/set_password
- A server running cPanel.
https://cpanel-server.tld:2083/execute/WebDisk/set_password
- 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/WebDisk/set_password?password=123456luggage&user=example1%40example.com&enabledigest=0'{ "apiversion": 3, "func": "set_password", "module": "WebDisk", "result": { "data": null, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }
Request
This function changes the Web Disk home directory's permissions.
Important:
When you disable the Web Disk role, the system disables this function.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/WebDisk/set_permissions
- A server running cPanel.
https://cpanel-server.tld:2083/execute/WebDisk/set_permissions
- 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/WebDisk/set_permissions?perms=rw&user=example1%40example.com'{ "apiversion": 3, "func": "set_permissions", "module": "WebDisk", "result": { "data": null, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }