AuthRegister
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
name
value must not contain punctuation symbols apart from underscore (_
). - The
email
value must be a validstud.noroff.no
email address. - The
password
value must be at least 8 characters. - If set, the
bio
value must be less than 160 characters. - If set, the
avatar.url
value must be a valid and accessible URL. - If set, the
avatar.alt
value must be less than 120 characters. Defaults to empty string (""
). Requiresavatar.url
to be set. - If set, the
banner.url
value must be a valid and accessible URL. - If set, the
banner.alt
value must be less than 120 characters. Defaults to empty string (""
). Requiresbanner.url
to be set.
Types
Prop | Type | Default |
---|---|---|
name | string | - |
email | string | - |
password | string | - |
bio | string? | - |
avatar | object? | - |
banner | object? | - |
venueManager | boolean | - |