PUT api/Profile

Update Profile

Request Information

URI Parameters

None.

Body Parameters

UserProfileUpdateRequestModel
NameDescriptionTypeAdditional information
UserID

integer

Required

UserFirstName

string

Required

UserLastname

string

Required

Email

string

None.

PhoneNo

string

None.

Gender

string

None.

ModifiedBy

integer

Required

Request Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "userID": 1,
  "userFirstName": "sample string 2",
  "userLastname": "sample string 3",
  "email": "sample string 4",
  "phoneNo": "sample string 5",
  "gender": "sample string 6",
  "modifiedBy": 7
}

application/xml, text/xml

Sample:
<UserProfileUpdateRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.RequestModel">
  <Email>sample string 4</Email>
  <Gender>sample string 6</Gender>
  <ModifiedBy>7</ModifiedBy>
  <PhoneNo>sample string 5</PhoneNo>
  <UserFirstName>sample string 2</UserFirstName>
  <UserID>1</UserID>
  <UserLastname>sample string 3</UserLastname>
</UserProfileUpdateRequestModel>

multipart/form-data

Sample:
<UserProfileUpdateRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.RequestModel"><Email>sample string 4</Email><Gender>sample string 6</Gender><ModifiedBy>7</ModifiedBy><PhoneNo>sample string 5</PhoneNo><UserFirstName>sample string 2</UserFirstName><UserID>1</UserID><UserLastname>sample string 3</UserLastname></UserProfileUpdateRequestModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CommonResponseDataModel
NameDescriptionTypeAdditional information
ReturnID

integer

Required

Message

string

Required

Successful

boolean

Required

Code

integer

None.

TotalRecord

integer

None.

Response Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "returnID": 1,
  "message": "sample string 2",
  "successful": true,
  "code": 4,
  "totalRecord": 5
}

application/xml, text/xml

Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel">
  <Code>4</Code>
  <Message>sample string 2</Message>
  <ReturnID>1</ReturnID>
  <Successful>true</Successful>
  <TotalRecord>5</TotalRecord>
</CommonResponseDataModel>

multipart/form-data

Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel"><Code>4</Code><Message>sample string 2</Message><ReturnID>1</ReturnID><Successful>true</Successful><TotalRecord>5</TotalRecord></CommonResponseDataModel>