Description
This function creates a Web Disk account.
Warning:
We strongly recommend that you use UAPI instead of cPanel API 2. However, no equivalent UAPI function exists.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameters |
Type |
Description |
Possible values |
Example |
domain |
string |
Required The account's domain name. |
A valid domain name. |
example.com |
user |
string |
Required The account's username. |
A valid username. |
user |
password |
string |
The account's password. Important: You must use either thepassword parameter or thepassword_hash parameter, but you cannot use both. |
A valid password. |
12345luggage |
perms |
string |
Required Whether to grant a user write permissions to the user. |
|
ro |
homedir |
string |
The path to account's directory. |
A valid directory path, relative to the cPanel account's home directory. |
public_html/webdav/ |
private |
Boolean |
Whether to set the directory's permissions to public or private. This value defaults to 0. |
|
1 |
enabledigest |
Boolean |
Whether to enable Digest Authentication. This value defaults to 0. |
|
1 |
password_hash |
string |
The account's password hash. Important: You must use either thepassword parameter or thepassword_hash parameter, but you cannot use both.
Note: We introduced this parameter in cPanel & WHM version 54.
|
A valid password hash that utilizes your server's cryptographic hash function. Note: You can find your server's hash type in the/etc/sysconfig/authconfigfile. |
|
digest_auth_hash |
string |
The account's digest authentication hash. Important: You must use this parameter if you use thepassword_hash parameter.
Note: We introduced this parameter in cPanel & WHM version 54.
|
A valid digest authentication hash that uses the MD5 cryptographic hash function.
|
|