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 creates a Dynamic DNS (DDNS) domain.
Important:
When you disable the DNS role, the system disables this function.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/DynamicDNS/create
- A server running cPanel.
https://cpanel-server.tld:2083/execute/DynamicDNS/create
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
uapi --output=jsonpretty \
--user=username \
DynamicDNS \
create \
domain='home.example.com'{ "apiversion": 3, "func": "create", "module": "DynamicDNS", "result": { "data": { … }, "errors": null, "messages": null, "metadata": { … }, "status": 1, "warnings": null } }
Request
This function deletes an existing Dynamic DNS (DDNS) domain.
Important:
When you disable the DNS role, the system disables this function.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/DynamicDNS/delete
- A server running cPanel.
https://cpanel-server.tld:2083/execute/DynamicDNS/delete
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
uapi --output=jsonpretty \
--user=username \
DynamicDNS \
delete \
id='ggiugyxxjwnkmqtwysgmvrurplmafxpq'{ "apiversion": 3, "func": "delete", "module": "DynamicDNS", "result": { "data": { … }, "errors": null, "messages": null, "metadata": { … }, "status": 1, "warnings": null } }
Request
This function lists the user’s Dynamic DNS (DDNS) domains.
Important:
When you disable the DNS role, the system disables this function.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/DynamicDNS/list
- A server running cPanel.
https://cpanel-server.tld:2083/execute/DynamicDNS/list
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
uapi --output=jsonpretty \
--user=username \
DynamicDNS \
list{ "apiversion": 3, "func": "list", "module": "DynamicDNS", "result": { "data": [ … ], "errors": null, "messages": null, "metadata": { … }, "status": 1, "warnings": null } }