Link Search Menu Expand Document

Constructor: updateUserName

Back to constructors index

Changes the user’s first name, last name and username.

Attributes:

NameTypeRequiredDescription
user_idlongYesUser identifier
first_namestringYesNew first name. Corresponds to the new value of real_first_name field of the userFull constructor.
last_namestringYesNew last name. Corresponds to the new value of real_last_name field of the userFull constructor.
usernamesArray of UsernameYesUsernames.

Type: Update

Example:

$updateUserName = ['_' => 'updateUserName', 'user_id' => long, 'first_name' => 'string', 'last_name' => 'string', 'usernames' => [Username, Username]];