POST api/User/InsertUpdateUserProfile

Request Information

URI Parameters

None.

Body Parameters

W_User_Profile
NameDescriptionTypeAdditional information
AddressID

integer

Required

Matching regular expression pattern: ^[0-9]{1,11}$

FirstName

string

Required

String length: inclusive between 2 and 45

LastName

string

Required

String length: inclusive between 2 and 60

DateOfBirth

date

Required

Data type: DateTime

Gender

Gender

Required

PrimaryPhone

string

Required

PrimaryScreen

CustomerRole

Required

Request Formats

application/json, text/json

Sample:
{
  "addressID": 1,
  "firstName": "sample string 2",
  "lastName": "sample string 3",
  "dateOfBirth": "2019-05-21T14:28:39.8889272-07:00",
  "gender": "MALE",
  "primaryPhone": "sample string 5",
  "primaryScreen": "USER"
}

application/xml, text/xml

Sample:
<W_User_Profile xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures">
  <AddressID>1</AddressID>
  <DateOfBirth>2019-05-21T14:28:39.8889272-07:00</DateOfBirth>
  <FirstName>sample string 2</FirstName>
  <Gender>MALE</Gender>
  <LastName>sample string 3</LastName>
  <PrimaryPhone>sample string 5</PrimaryPhone>
  <PrimaryScreen>USER</PrimaryScreen>
</W_User_Profile>

multipart/form-data

Sample:
<W_User_Profile xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures"><AddressID>1</AddressID><DateOfBirth>2019-05-21T14:28:39.8889272-07:00</DateOfBirth><FirstName>sample string 2</FirstName><Gender>MALE</Gender><LastName>sample string 3</LastName><PrimaryPhone>sample string 5</PrimaryPhone><PrimaryScreen>USER</PrimaryScreen></W_User_Profile>

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

Response Information

Resource Description

DBStatus
NameDescriptionTypeAdditional information
Type

DBOperation

None.

Message

Collection of DBMessageType

None.

InnerException

Collection of string

None.

Response Formats

application/json, text/json

Sample:
{
  "type": "ERROR",
  "message": [
    "SUCCESSFULLY_DATA_INSERTED",
    "SUCCESSFULLY_DATA_INSERTED"
  ],
  "innerException": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<DBStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures">
  <InnerException xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </InnerException>
  <Message xmlns:d2p1="http://schemas.datacontract.org/2004/07/DBEnumStructure">
    <d2p1:DBMessageType>SUCCESSFULLY_DATA_INSERTED</d2p1:DBMessageType>
    <d2p1:DBMessageType>SUCCESSFULLY_DATA_INSERTED</d2p1:DBMessageType>
  </Message>
  <Type>ERROR</Type>
</DBStatus>

multipart/form-data

Sample:
<DBStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PGDataStructures"><InnerException xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><d2p1:string>sample string 1</d2p1:string><d2p1:string>sample string 2</d2p1:string></InnerException><Message xmlns:d2p1="http://schemas.datacontract.org/2004/07/DBEnumStructure"><d2p1:DBMessageType>SUCCESSFULLY_DATA_INSERTED</d2p1:DBMessageType><d2p1:DBMessageType>SUCCESSFULLY_DATA_INSERTED</d2p1:DBMessageType></Message><Type>ERROR</Type></DBStatus>