# UpdateUser

Type: UpdateUser

Schema: [UpdateUser](https://sourcey-peertube.pages.dev/api-rest-reference/models/updateuser.md)

- `email` (optional)
  Type: email
  
  The updated email of the user
  
  allOf:
    Type: email, email
    
    The user email

- `emailVerified` (optional)
  Type: boolean
  
  Set the email as verified

- `videoQuota` (optional)
  Type: integer
  
  The updated video quota of the user in bytes

- `videoQuotaDaily` (optional)
  Type: integer
  
  The updated daily video quota of the user in bytes

- `pluginAuth` (optional)
  Type: string; nullable
  
  The auth plugin to use to authenticate the user
  
  Example:
  
  ```json
  "peertube-plugin-auth-saml2"
  ```

- `role` (optional)
  Reference: [UserRole](https://sourcey-peertube.pages.dev/api-rest-reference/models/userrole.md); Type: UserRole
  
  The user role (Admin = `0`, Moderator = `1`, User = `2`)
  
  enum: [0,1,2]
  
  Example:
  
  ```json
  2
  ```

- `adminFlags` (optional)
  Reference: [UserAdminFlags](https://sourcey-peertube.pages.dev/api-rest-reference/models/useradminflags.md); Type: UserAdminFlags
  
  Admin flags for the user (None = `0`, Bypass video blocklist = `1`)
  
  enum: [0,1]
  
  Example:
  
  ```json
  1
  ```

- `password` (optional)
  Reference: [password](https://sourcey-peertube.pages.dev/api-rest-reference/models/password.md); Type: password, password
  
  minLength: 6
  
  maxLength: 50

- `currentPassword` (optional)
  Type: currentPassword
  
  Required to give the administrator role, or to change the password, email or auth plugin of an administrator, see [password confirmation](#section/Password-confirmation)
  
  
  allOf:
    Reference: [currentPassword](https://sourcey-peertube.pages.dev/api-rest-reference/models/currentpassword.md); Type: currentPassword, password
    
    Password of the authenticated user, required if [password confirmation](#section/Password-confirmation) is enabled