PUT api/user/profile

Updates the current authenticated user's profile information. Email cannot be changed.

Request Information

URI Parameters

None.

Body Parameters

UserProfileDTO
NameDescriptionTypeAdditional information
UserId

string

None.

Email

string

None.

FirstName

string

None.

LastName

string

None.

IsEmailVerified

boolean

None.

LegalDocumentTypeIdsRequiringReacceptance

Collection of integer

None.

Request Formats

application/json, text/json

Sample:
{
  "userId": "sample string 1",
  "email": "sample string 2",
  "firstName": "sample string 3",
  "lastName": "sample string 4",
  "isEmailVerified": true,
  "legalDocumentTypeIdsRequiringReacceptance": [
    1,
    2
  ]
}

application/xml, text/xml

Sample:
<UserProfileDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CruiseParking.Website.API.Models">
  <Email>sample string 2</Email>
  <FirstName>sample string 3</FirstName>
  <IsEmailVerified>true</IsEmailVerified>
  <LastName>sample string 4</LastName>
  <LegalDocumentTypeIdsRequiringReacceptance xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </LegalDocumentTypeIdsRequiringReacceptance>
  <UserId>sample string 1</UserId>
</UserProfileDTO>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.