v52

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-037389158.9 KB
UserService

UpdateUser updates a user.

patch/api/v1/users/{user}

Path parameters

userstring required

The user id.

Query parameters

updateMaskstring field-mask

Required. The list of fields to update.

allowMissingboolean

Optional. If set to true, allows updating sensitive fields.

Request body

namestring

The resource name of the user. Format: users/{user}

role'ROLE_UNSPECIFIED' | 'ADMIN' | 'USER' enum required

The role of the user.

usernamestring required

Required. The unique username for login.

emailstring

Optional. The email address of the user.

displayNamestring

Optional. The display name of the user.

avatarUrlstring

Optional. The avatar URL of the user.

descriptionstring

Optional. The description of the user.

passwordstring

Input only. The password for the user.

state'STATE_UNSPECIFIED' | 'NORMAL' | 'ARCHIVED' enum required

The state of the user.

createTimestring date-time

Output only. The creation timestamp.

updateTimestring date-time

Output only. The last update timestamp.

Response

OK

namestring

The resource name of the user. Format: users/{user}

role'ROLE_UNSPECIFIED' | 'ADMIN' | 'USER' enum required

The role of the user.

usernamestring required

Required. The unique username for login.

emailstring

Optional. The email address of the user.

displayNamestring

Optional. The display name of the user.

avatarUrlstring

Optional. The avatar URL of the user.

descriptionstring

Optional. The description of the user.

passwordstring

Input only. The password for the user.

state'STATE_UNSPECIFIED' | 'NORMAL' | 'ARCHIVED' enum required

The state of the user.

createTimestring date-time

Output only. The creation timestamp.

updateTimestring date-time

Output only. The last update timestamp.