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 converts a buffer from one encoding language to another.
Important:
When you disable the File Storage role, the system disables this function.
Whether to discard any characters that do not transcode correctly.
1- Discard invalid characters.0- Transcode invalid characters in the default character set encoding.
Whether to transcode invalid characters to valid characters in the new character set encoding.
1- Transcode invalid characters in the new character set encoding.0- Return an error message.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Fileman/transcode
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Fileman/transcode
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
uapi --output=jsonpretty \
--user=username \
Fileman \
transcode \
content='hi'{ "apiversion": 3, "func": "transcode", "module": "Fileman", "result": { "data": { … }, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }
Request
This function uploads files.
Note:
For more information about how to use this function in your custom code, read our Use UAPI's Fileman::upload_files Function in Custom Code tutorial.
Important:
When you disable the File Storage role, the system disables this function.
You cannot call this function through WHM API 1's uapi_cpanel function.
- Mock server
https://api.docs.cpanel.net/_mock/specifications/cpanel.openapi/Fileman/upload_files
- A server running cPanel.
https://cpanel-server.tld:2083/execute/Fileman/upload_files
- CLI
- URL
- curl
- JavaScript
- Node.js
- Python
- Java
- Java8+Apache
- C#
- C#+Newtonsoft
- PHP
- Go
- Ruby
- R
To implement Fileman::upload_files, read our Use UAPI's `Fileman::upload_files` Function in Custom Code tutorial.{ "apiversion": 3, "func": "upload_files", "module": "Fileman", "result": { "data": { … }, "errors": null, "messages": null, "metadata": {}, "status": 1, "warnings": null } }