Update Web Disk home directory permissions

This function changes the Web Disk home directory's permissions.

Important:

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

SecurityBasicAuth
Request
query Parameters
perms
required
string

The Web Disk account's home directory file permissions.

  • ro — Read-only permissions.
  • rw — Read and write permissions.
Enum: "ro" "rw"
Example: perms=rw
user
required
string <email>

The Web Disk account's username.

Example: user=example1@example.com
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_permissions
Request samples
uapi --output=jsonpretty \
  --user=username \
  WebDisk \
  set_permissions \
  user='example1@example.com' \
  perms='rw'
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "set_permissions",
  • "module": "WebDisk",
  • "result": {
    • "data": null,
    • "errors": null,
    • "messages": null,
    • "metadata": { },
    • "status": 1,
    • "warnings": null
    }
}