POST api/user/email-change/confirm

Confirms an email change with the OTP sent to the new address. Returns fresh JWT and refresh token.

Request Information

URI Parameters

None.

Body Parameters

EmailChangeConfirmRequestDTO
NameDescriptionTypeAdditional information
Code

string

Required

Matching regular expression pattern: ^\d{4,10}$

UpdatePreviousBookings

boolean

None.

DeviceIdentifier

string

Required

Max length: 128

LegalWebsiteId

byte

None.

Request Formats

application/json, text/json

Sample:
{
  "code": "sample string 1",
  "updatePreviousBookings": true,
  "deviceIdentifier": "sample string 3",
  "legalWebsiteId": 64
}

application/xml, text/xml

Sample:
<EmailChangeConfirmRequestDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CruiseParking.Website.API.Models">
  <Code>sample string 1</Code>
  <DeviceIdentifier>sample string 3</DeviceIdentifier>
  <LegalWebsiteId>64</LegalWebsiteId>
  <UpdatePreviousBookings>true</UpdatePreviousBookings>
</EmailChangeConfirmRequestDTO>

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 'EmailChangeConfirmRequestDTO'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.