这个方法允许更新存在的用户。

    Description

    object user.update(object/array **users**)

    This method allows to update existing users.

    Parameters

    (object/array) 需要更新的用户属性。

    此外, , 该方法接受以下参数。

    (object/array) User properties to be updated.

    The userid property must be defined for each user, all other properties are optional. Only the passed properties will be updated, all others will remain unchanged.

    Additionally to the standard user properties, the method accepts the following parameters.

    ParameterTypeDescription
    passwdstringUser’s password.
    usrgrpsarrayUser groups to replace existing user groups.

    The user groups must have the property defined.
    user_mediasarrayMedias to replace existing medias.

    返回值

    Return values

    (object) Returns an object containing the IDs of the updated users under the userids property.

    Examples

    Renaming a user

    把一个用户重命名为 John Doe.

    Request:

    Response:

    1. {
    2. "userids": [
    3. "1"
    4. ]
    5. },
    6. }

    来源