POST api/User/Profile/Update

Request Information

URI Parameters

None.

Body Parameters

UpdateProfileBindingModel
NameDescriptionTypeAdditional information
FirstName

string

Required

LastName

string

Required

Email

string

Required

Gender

integer

None.

BirthDate

string

None.

RefreshToken

string

Required

ProfilePicture

UserImage

None.

PostedProfilePictureFile

Collection of byte

Max length: 204800

Request Formats

application/json, text/json

Sample:
{
  "FirstName": "sample string 1",
  "LastName": "sample string 2",
  "Email": "sample string 3",
  "Gender": 4,
  "BirthDate": "sample string 5",
  "RefreshToken": "sample string 6",
  "ProfilePicture": null,
  "PostedProfilePictureFile": "QEA="
}

application/xml, text/xml

Sample:
<UpdateProfileBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParkJet.Models.BindingModels">
  <PostedProfilePictureFile>QEA=</PostedProfilePictureFile>
  <ProfilePicture xmlns:d2p1="http://schemas.datacontract.org/2004/07/ParkJet.Models" i:nil="true" />
  <BirthDate>sample string 5</BirthDate>
  <Email>sample string 3</Email>
  <FirstName>sample string 1</FirstName>
  <Gender>4</Gender>
  <LastName>sample string 2</LastName>
  <RefreshToken>sample string 6</RefreshToken>
</UpdateProfileBindingModel>

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

multipart/form-data

Sample:

Failed to generate the sample for media type 'multipart/form-data'. Cannot use formatter 'MultiPartMediaTypeFormatter`1' to write type 'UpdateProfileBindingModel'.

Response Information

Resource Description

ServiceResponse
NameDescriptionTypeAdditional information
Success

boolean

None.

MessageId

integer

None.

Message

string

None.

Data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "MessageId": 899,
  "Message": "\r\n",
  "Data": {}
}

application/xml, text/xml

Sample:
<ServiceResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParkJet.Services.Response">
  <MessageLog xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string></d2p1:string>
    <d2p1:string></d2p1:string>
  </MessageLog>
</ServiceResponse>