PUT api/Employee

Request Information

URI Parameters

None.

Body Parameters

EmployeeInsertUpdateRequestModel
NameDescriptionTypeAdditional information
EmployeeID

integer

None.

FirstName

string

None.

LastName

string

None.

EmailID

string

Required

Address

string

None.

ZIPCode

string

None.

CountryID

integer

None.

State

string

None.

City

string

None.

PhoneNo

string

None.

Request Formats

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

Sample:
{
  "employeeID": 1,
  "firstName": "sample string 1",
  "lastName": "sample string 2",
  "emailID": "sample string 3",
  "address": "sample string 4",
  "zipCode": "sample string 5",
  "countryID": 1,
  "state": "sample string 6",
  "city": "sample string 7",
  "phoneNo": "sample string 8"
}

application/xml, text/xml

Sample:
<EmployeeInsertUpdateRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NFTWardsV2.Core.RequestModel">
  <Address>sample string 4</Address>
  <City>sample string 7</City>
  <CountryID>1</CountryID>
  <EmailID>sample string 3</EmailID>
  <EmployeeID>1</EmployeeID>
  <FirstName>sample string 1</FirstName>
  <LastName>sample string 2</LastName>
  <PhoneNo>sample string 8</PhoneNo>
  <State>sample string 6</State>
  <ZIPCode>sample string 5</ZIPCode>
</EmployeeInsertUpdateRequestModel>

multipart/form-data

Sample:
<EmployeeInsertUpdateRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NFTWardsV2.Core.RequestModel"><Address>sample string 4</Address><City>sample string 7</City><CountryID>1</CountryID><EmailID>sample string 3</EmailID><EmployeeID>1</EmployeeID><FirstName>sample string 1</FirstName><LastName>sample string 2</LastName><PhoneNo>sample string 8</PhoneNo><State>sample string 6</State><ZIPCode>sample string 5</ZIPCode></EmployeeInsertUpdateRequestModel>

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

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/NFTWards.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/NFTWards.Core.DataModel"><Code>4</Code><Message>sample string 2</Message><ReturnID>1</ReturnID><Successful>true</Successful><TotalRecord>5</TotalRecord></CommonResponseDataModel>