Auth
Register
Register a new user profile
Register a new user profile
POST/auth/register
You will need to send all of the required values in your POST request body.
A successful response will return a 201 Created status code and the newly created user profile.
Restrictions
- The
namevalue must not contain punctuation symbols apart from underscore (_). - The
emailvalue must be a validstud.noroff.noemail address. - The
passwordvalue must be at least 8 characters. - If set, the
biovalue must be less than 160 characters. - If set, the
avatar.urlvalue must be a valid and accessible URL. - If set, the
avatar.altvalue must be less than 120 characters. Defaults to empty string (""). Requiresavatar.urlto be set. - If set, the
banner.urlvalue must be a valid and accessible URL. - If set, the
banner.altvalue must be less than 120 characters. Defaults to empty string (""). Requiresbanner.urlto be set.
Types
| Prop | Type | Default |
|---|---|---|
name | string | - |
email | string | - |
password | string | - |
bio | string? | - |
avatar | object? | - |
banner | object? | - |
venueManager | boolean | - |