update_hosts_mask

To set or update the user host mask, use the following method:

Copied!
svc=user/update_hosts_mask&params={"userId":<long>,
				   "hostsMask":"<text>"}

Parameters

The required parameters are marked with an asterisk (*).

Name Description
userId* User ID.
hostsMask* Host mask.

Response

Copied!
{
	"hm":"<text>"	/* host mask */
}

Error codes

Error code Description
7 Failed to fetch the user with ACL (ADF_ACL_USER_EDIT_FLAGS).
6 Failed to update the host mask.

If you find a mistake in the text, please select it and press Ctrl+Enter.