POST Account/Register

Registers a new user. To ensure username is unique, you can call IsUserAvailable prior to calling this function Preference for username is to use an email address for username,

Request Information

URI Parameters

None.

Body Parameters

RegisterBindingModel
NameDescriptionTypeAdditional information
Username

Required: Use Email as username (iow fill email in here as well as in email field). Ability to have different username than email should only be used from the admin application, not from mobile app

string

None.

Email

Required: See note on username

string

None.

PhoneNumber

optional

string

Data type: PhoneNumber

Password

Required

string

Required

Data type: Password

String length: inclusive between 4 and 100

ConfirmPassword

Required

string

Data type: Password

Name

string

None.

Surname

string

None.

PartnerID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Username": "sample string 1",
  "Email": "sample string 2",
  "PhoneNumber": "sample string 3",
  "Password": "sample string 4",
  "ConfirmPassword": "sample string 5",
  "Name": "sample string 6",
  "Surname": "sample string 7",
  "PartnerID": 8
}

application/xml, text/xml

Sample:
<RegisterBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Hub.Server.Models">
  <ConfirmPassword>sample string 5</ConfirmPassword>
  <Email>sample string 2</Email>
  <Name>sample string 6</Name>
  <PartnerID>8</PartnerID>
  <Password>sample string 4</Password>
  <PhoneNumber>sample string 3</PhoneNumber>
  <Surname>sample string 7</Surname>
  <Username>sample string 1</Username>
</RegisterBindingModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

UserDetail
NameDescriptionTypeAdditional information
ID

integer

None.

UserName

string

None.

Email

string

None.

Name

string

None.

Surname

string

None.

Description

string

None.

PartnerID

integer

None.

PhoneNumber

string

None.

IsSuperUser

boolean

None.

IsStravaLinked

boolean

None.

ImageURL

string

None.

GenderID

integer

None.

Gender

string

None.

DateOfBirth

date

None.

UnitsOfMeasureID

integer

None.

TechnicianID

integer

None.

Locale

string

None.

TwoFactorEnabled

boolean

None.

GDPRMarketingConsent

boolean

None.

GDPRMarketingConsentDate

date

None.

UserRoles

Collection of UserPartnerRoles

None.

Response Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "UserName": "sample string 2",
  "Email": "sample string 3",
  "Name": "sample string 4",
  "Surname": "sample string 5",
  "Description": "sample string 6",
  "PartnerID": 7,
  "PhoneNumber": "sample string 8",
  "IsSuperUser": true,
  "IsStravaLinked": true,
  "ImageURL": "sample string 11",
  "GenderID": 12,
  "Gender": "sample string 13",
  "DateOfBirth": "2026-03-21T11:24:12.9163967+00:00",
  "UnitsOfMeasureID": 14,
  "TechnicianID": 15,
  "Locale": "sample string 16",
  "TwoFactorEnabled": true,
  "GDPRMarketingConsent": true,
  "GDPRMarketingConsentDate": "2026-03-21T11:24:12.9163967+00:00",
  "UserRoles": [
    {
      "RoleID": 1,
      "PartnerID": 2
    },
    {
      "RoleID": 1,
      "PartnerID": 2
    }
  ]
}

application/xml, text/xml

Sample:
<UserDetail xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Hub.Server.Models">
  <DateOfBirth>2026-03-21T11:24:12.9163967+00:00</DateOfBirth>
  <Description>sample string 6</Description>
  <Email>sample string 3</Email>
  <GDPRMarketingConsent>true</GDPRMarketingConsent>
  <GDPRMarketingConsentDate>2026-03-21T11:24:12.9163967+00:00</GDPRMarketingConsentDate>
  <Gender>sample string 13</Gender>
  <GenderID>12</GenderID>
  <ID>1</ID>
  <ImageURL>sample string 11</ImageURL>
  <IsStravaLinked>true</IsStravaLinked>
  <IsSuperUser>true</IsSuperUser>
  <Locale>sample string 16</Locale>
  <Name>sample string 4</Name>
  <PartnerID>7</PartnerID>
  <PhoneNumber>sample string 8</PhoneNumber>
  <Surname>sample string 5</Surname>
  <TechnicianID>15</TechnicianID>
  <TwoFactorEnabled>true</TwoFactorEnabled>
  <UnitsOfMeasureID>14</UnitsOfMeasureID>
  <UserName>sample string 2</UserName>
  <UserRoles xmlns:d2p1="http://schemas.datacontract.org/2004/07/Hub.Server.Entities.Users">
    <d2p1:UserPartnerRoles>
      <d2p1:PartnerID>2</d2p1:PartnerID>
      <d2p1:RoleID>1</d2p1:RoleID>
    </d2p1:UserPartnerRoles>
    <d2p1:UserPartnerRoles>
      <d2p1:PartnerID>2</d2p1:PartnerID>
      <d2p1:RoleID>1</d2p1:RoleID>
    </d2p1:UserPartnerRoles>
  </UserRoles>
</UserDetail>