UAPI accesses the cPanel interface's features. Use this API to access and modify cPanel account data and settings.
Download OpenAPI description
Overview
URL
WebPros International, LLC
License
Languages
Servers
Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/
A server running cPanel.
https://{host}:{port}/execute/
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/UserManager/change_password
- A server running cPanel.
https://cpanel-server.tld:2083/execute/UserManager/change_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/UserManager/change_password?newpass=MyNewPassw0rd%21&oldpass=ThisWasMyPassword%21&enablemysql=0'Response
application/json
{ "apiversion": 3, "func": "change_password", "module": "UserManager", "result": { "data": null, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }
Query
Whether to use Digest Authentication.
1- Use Digest Auth.0- Do not use Digest Auth.
Note:
- Windows® Vista, Windows® 7, Windows® 8, and Windows® 10 require that you use Digest Authentication in order to access your Web Disk over a clear text, unencrypted connection.
Default "The previously-set value or 0"
Enum01
Example: enabledigest=0
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Users/change_password
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Users/change_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/Users/change_password?newpass=MyNewPassw0rd%21&oldpass=ThisWasMyPassword%21&enabledigest=0&enablemysql=0'Response
application/json
{ "apiversion": 3, "func": "change_password", "module": "Users", "result": { "data": null, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }