Update Web Disk home directory location

This function changes the home directory for a Web Disk account.

Important:

When you disable the Web Disk role, the system disables this function.

SecurityBasicAuth
Request
query Parameters
homedir
required
string <path>

The Web Disk account's home directory.

Example: homedir=example1/
user
required
string <email>

The Web Disk account username.

Example: user=example1@example.com
private
integer
Default: 0

Whether to set the Web Disk directory's permissions to public or private.

  • 1 - Private (0700)
  • 0 - Public (0755)
Enum: 0 1
Example: private=0
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/WebDisk/set_homedir
Request samples
uapi --output=jsonpretty \
  --user=username \
  WebDisk \
  set_homedir \
  user='example1@example.com' \
  homedir='example1/'
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "set_homedir",
  • "module": "WebDisk",
  • "result": {
    • "data": null,
    • "errors": null,
    • "messages": null,
    • "metadata": { },
    • "status": 1,
    • "warnings": null
    }
}