POST api/v1/User/UpdateProfile

Cập nhật profile user

Request Information

URI Parameters

None.

Body Parameters

UpdateProfileBindModel
NameDescriptionTypeAdditional information
UserName

string

Required

Gender

string

None.

DOB

string

None.

Mobile

string

None.

Position

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserName": "sample string 1",
  "Gender": "sample string 2",
  "DOB": "sample string 3",
  "Mobile": "sample string 4",
  "Position": "sample string 5"
}

application/xml, text/xml

Sample:
<UpdateProfileBindModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PublicAPI.Models">
  <DOB>sample string 3</DOB>
  <Gender>sample string 2</Gender>
  <Mobile>sample string 4</Mobile>
  <Position>sample string 5</Position>
  <UserName>sample string 1</UserName>
</UpdateProfileBindModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ReturnResult
NameDescriptionTypeAdditional information
ErrorCode

integer

None.

ErrorMessage

string

None.

Data

Object

None.

Response Formats

application/json, text/json

Sample:
{
  "ErrorCode": 1,
  "ErrorMessage": "sample string 2",
  "Data": {}
}

application/xml, text/xml

Sample:
<ReturnResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TeamworkClassLibrary">
  <Data />
  <ErrorCode>1</ErrorCode>
  <ErrorMessage>sample string 2</ErrorMessage>
</ReturnResult>