Constructor: updateUserName
Changes the user’s first name, last name and username.
Attributes:
Name | Type | Required | Description |
---|---|---|---|
user_id | long | Yes | User identifier |
first_name | string | Yes | New first name. Corresponds to the new value of real_first_name field of the userFull constructor. |
last_name | string | Yes | New last name. Corresponds to the new value of real_last_name field of the userFull constructor. |
username | string | Yes | New username. Parameter added in Layer 18. |
Type: Update
Example:
$updateUserName = ['_' => 'updateUserName', 'user_id' => long, 'first_name' => 'string', 'last_name' => 'string', 'username' => 'string'];