Description
This function changes the home directory for FTP accounts.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
user |
string |
Required The FTP account username. |
The username of an FTP account on the cPanel account. |
example1 |
domain |
string |
The user's associated domain. This parameter defaults to the cPanel account's primary domain. |
A domain that the cPanel account owns. |
example.com |
homedir |
string |
The FTP account's home directory. This parameter defaults to the user@domain subdirectory in the cPanel account's home directory with the name, where user and domain represent the user and domain parameters. |
A relative path from the cPanel account's home directory. |
example1/ |
Returns
This function returns only metadata.