This method allows to update the currently logged in user.

    This method is deprecated and will be removed in the future. Please use instead.

    Parameters

    The property must not be defined. Only the passed properties will be updated, all others will remain unchanged.

    Additionally to the , the method accepts the following parameters.

    Examples

    Renaming the current user

    Rename the current user to John Doe.

    Request:

    1. {
    2. "jsonrpc": "2.0",
    3. "result": {
    4. "userids": [
    5. ]
    6. },
    7. "id": 1
    8. }

    Source

    CUser::update() in frontends/php/include/classes/api/services/CUser.php.