# RegisterUser

Type: RegisterUser

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

- `username` (required)
  Type: username
  
  immutable name of the user, used to find or mention its actor
  
  allOf:
    Reference: [username](https://sourcey-peertube.pages.dev/api-rest-reference/models/username.md); Type: username
    
    immutable name of the user, used to find or mention its actor
    
    minLength: 1
    
    maxLength: 50
    
    pattern: "/^[a-z0-9._]+$/"
    
    Example:
    
    ```json
    "chocobozzz"
    ```

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

- `email` (required)
  Type: string, email
  
  email of the user, used for login or service communications

- `displayName` (optional)
  Type: string
  
  editable name of the user, displayed in its representations
  
  minLength: 1
  
  maxLength: 120

- `channel` (optional)
  Type: object
  
  channel base information used to create the first channel of the user
  
  - `name` (optional)
    Reference: [usernameChannel](https://sourcey-peertube.pages.dev/api-rest-reference/models/usernamechannel.md); Type: usernameChannel
    
    immutable name of the channel, used to interact with its actor
    
    minLength: 1
    
    maxLength: 50
    
    pattern: "/^[a-zA-Z0-9\\\\-_.:]+$/"
    
    Example:
    
    ```json
    "framasoft_videos"
    ```
  
  - `displayName` (optional)
    Type: string

- `signupClient` (optional)
  Type: string
  
  **PeerTube >= 9.0** Client used to sign up. If set, links of the verification and registration accepted emails
  make the web client propose to open this client
  
  
  enum: ["peertube-app"]