POST api/auth/register

Registers a new user account with email OTP verification.

Request Information

URI Parameters

None.

Body Parameters

RegisterRequestDTO
NameDescriptionTypeAdditional information
Email

string

Required

FirstName

string

None.

LastName

string

None.

LegalWebsiteId

byte

None.

AcceptedApplicationTermsVersionId

integer

Range: inclusive between 1 and 2147483647

AcceptedPrivacyPolicyVersionId

integer

Range: inclusive between 1 and 2147483647

DeviceIdentifier

string

Max length: 128

Request Formats

application/json, text/json

Sample:
{
  "email": "sample string 1",
  "firstName": "sample string 2",
  "lastName": "sample string 3",
  "legalWebsiteId": 64,
  "acceptedApplicationTermsVersionId": 5,
  "acceptedPrivacyPolicyVersionId": 6,
  "deviceIdentifier": "sample string 7"
}

application/xml, text/xml

Sample:
<RegisterRequestDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CruiseParking.Website.API.Models">
  <AcceptedApplicationTermsVersionId>5</AcceptedApplicationTermsVersionId>
  <AcceptedPrivacyPolicyVersionId>6</AcceptedPrivacyPolicyVersionId>
  <DeviceIdentifier>sample string 7</DeviceIdentifier>
  <Email>sample string 1</Email>
  <FirstName>sample string 2</FirstName>
  <LastName>sample string 3</LastName>
  <LegalWebsiteId>64</LegalWebsiteId>
</RegisterRequestDTO>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'RegisterRequestDTO'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.