PUT api/Employee/Update

Request Information

URI Parameters

None.

Body Parameters

EmployeeUpdateVM
NameDescriptionTypeAdditional information
EmployeeId

integer

None.

BookId

integer

Required

EmployeeName

string

Required

String length: inclusive between 0 and 100

EmployeeSortName

string

Required

String length: inclusive between 0 and 100

Code

string

String length: inclusive between 0 and 10

ClergyFlag

string

Required

Clergy

ClergyLookupVM

None.

Prefix

PrefixLookupVM

Required

Dob

string

Required

Gender

string

Required

PhoneNumber

string

String length: inclusive between 0 and 50

MobileNumber

string

String length: inclusive between 0 and 50

Email

string

String length: inclusive between 0 and 100

BloodGroup

BloodGroupLookupVM

None.

Nationality

NationalityLookupVM

None.

PassportNumber

string

String length: inclusive between 0 and 100

PassportExpiry

string

None.

PresentHouseName

string

String length: inclusive between 0 and 100

PresentPincode

string

String length: inclusive between 0 and 50

PresentPlace

string

None.

PresentLandMark

string

String length: inclusive between 0 and 200

PresentPostOffice

PlaceLookupVM

None.

PresentDistrict

PlaceLookupVM

None.

PresentState

PlaceLookupVM

None.

PresentCountry

PlaceLookupVM

None.

PermenantHouseName

string

String length: inclusive between 0 and 100

PermenantPincode

string

String length: inclusive between 0 and 50

PermenantPlace

string

None.

PermenantLandMark

string

String length: inclusive between 0 and 200

PermenantPostOffice

PlaceLookupVM

None.

PermenantDistrict

PlaceLookupVM

None.

PermenantState

PlaceLookupVM

None.

PermenantCountry

PlaceLookupVM

None.

MaritalStatus

MaritalStatusLookupVM

None.

MarriageDate

string

None.

HomeParish

EstablishmentLookupVM

None.

AssociateParish

EstablishmentLookupVM

None.

CurrentEstablishment

EstablishmentLookupVM

Required

CurrentDesignation

DesignationLookupVM

Required

CurrentDepartment

DepartmentLookupVM

Required

JoinDate

string

None.

RetirementDate

string

None.

EmployeeStatus

EmployeeStatusLookupVM

Required

EmpServiceFromDate

string

Required

Status

string

Required

Matching regular expression pattern: A|I

ConfirmStatus

string

Required

Matching regular expression pattern: Y|N

UpdateUser

integer

Required

UpdateIp

string

Required

String length: inclusive between 0 and 20

Request Formats

application/json, text/json

Sample:
{
  "EmployeeId": 1,
  "BookId": 2,
  "EmployeeName": "sample string 3",
  "EmployeeSortName": "sample string 4",
  "Code": "sample string 5",
  "ClergyFlag": "sample string 6",
  "Clergy": {
    "ClergyId": 1,
    "ClergyName": "sample string 2",
    "Prefix": {
      "PrefixId": 1,
      "PrefixName": "sample string 2"
    },
    "Address": "sample string 3",
    "ClergyStatusName": "sample string 4",
    "DOB": "sample string 5",
    "DeaconDate": "sample string 6",
    "ClergyCategoryId": 7,
    "ClergyTypeId": 8
  },
  "Prefix": {
    "PrefixId": 1,
    "PrefixName": "sample string 2"
  },
  "Dob": "sample string 7",
  "Gender": "sample string 8",
  "PhoneNumber": "sample string 9",
  "MobileNumber": "sample string 10",
  "Email": "sample string 11",
  "BloodGroup": {
    "BloodGroupId": 1,
    "BloodGroupName": "sample string 2"
  },
  "Nationality": {
    "PlaceId": 1,
    "Nationality": "sample string 2"
  },
  "PassportNumber": "sample string 12",
  "PassportExpiry": "sample string 13",
  "PresentHouseName": "sample string 14",
  "PresentPincode": "sample string 15",
  "PresentPlace": "sample string 16",
  "PresentLandMark": "sample string 17",
  "PresentPostOffice": {
    "PlaceId": 1,
    "PlaceName": "sample string 2"
  },
  "PresentDistrict": {
    "PlaceId": 1,
    "PlaceName": "sample string 2"
  },
  "PresentState": {
    "PlaceId": 1,
    "PlaceName": "sample string 2"
  },
  "PresentCountry": {
    "PlaceId": 1,
    "PlaceName": "sample string 2"
  },
  "PermenantHouseName": "sample string 18",
  "PermenantPincode": "sample string 19",
  "PermenantPlace": "sample string 20",
  "PermenantLandMark": "sample string 21",
  "PermenantPostOffice": {
    "PlaceId": 1,
    "PlaceName": "sample string 2"
  },
  "PermenantDistrict": {
    "PlaceId": 1,
    "PlaceName": "sample string 2"
  },
  "PermenantState": {
    "PlaceId": 1,
    "PlaceName": "sample string 2"
  },
  "PermenantCountry": {
    "PlaceId": 1,
    "PlaceName": "sample string 2"
  },
  "MaritalStatus": {
    "MaritalStatusId": 1,
    "MaritalStatusName": "sample string 2"
  },
  "MarriageDate": "sample string 22",
  "HomeParish": {
    "EstablishId": 1,
    "EstablishName": "sample string 2",
    "EstablishType": {
      "EstablishTypeId": 1,
      "EstablishTypeName": "sample string 2"
    },
    "EstablishCategory": {
      "EstablishCategoryId": 1,
      "EstablishCategoryName": "sample string 2"
    },
    "TotalMembers": 3,
    "TotalHouses": 4
  },
  "AssociateParish": {
    "EstablishId": 1,
    "EstablishName": "sample string 2",
    "EstablishType": {
      "EstablishTypeId": 1,
      "EstablishTypeName": "sample string 2"
    },
    "EstablishCategory": {
      "EstablishCategoryId": 1,
      "EstablishCategoryName": "sample string 2"
    },
    "TotalMembers": 3,
    "TotalHouses": 4
  },
  "CurrentEstablishment": {
    "EstablishId": 1,
    "EstablishName": "sample string 2",
    "EstablishType": {
      "EstablishTypeId": 1,
      "EstablishTypeName": "sample string 2"
    },
    "EstablishCategory": {
      "EstablishCategoryId": 1,
      "EstablishCategoryName": "sample string 2"
    },
    "TotalMembers": 3,
    "TotalHouses": 4
  },
  "CurrentDesignation": {
    "DesignationId": 1,
    "DesignationName": "sample string 2"
  },
  "CurrentDepartment": {
    "DepartmentId": 1,
    "DepartmentName": "sample string 2"
  },
  "JoinDate": "sample string 23",
  "RetirementDate": "sample string 24",
  "EmployeeStatus": {
    "EmployeeStatusId": 1,
    "EmployeeStatusName": "sample string 2"
  },
  "EmpServiceFromDate": "sample string 25",
  "Status": "sample string 26",
  "ConfirmStatus": "sample string 27",
  "UpdateUser": 28,
  "UpdateIp": "sample string 29"
}

application/xml, text/xml

Sample:
<EmployeeUpdateVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
  <AssociateParish>
    <EstablishCategory>
      <EstablishCategoryId>1</EstablishCategoryId>
      <EstablishCategoryName>sample string 2</EstablishCategoryName>
    </EstablishCategory>
    <EstablishId>1</EstablishId>
    <EstablishName>sample string 2</EstablishName>
    <EstablishType>
      <EstablishTypeId>1</EstablishTypeId>
      <EstablishTypeName>sample string 2</EstablishTypeName>
    </EstablishType>
    <TotalHouses>4</TotalHouses>
    <TotalMembers>3</TotalMembers>
  </AssociateParish>
  <BloodGroup>
    <BloodGroupId>1</BloodGroupId>
    <BloodGroupName>sample string 2</BloodGroupName>
  </BloodGroup>
  <BookId>2</BookId>
  <Clergy>
    <Address>sample string 3</Address>
    <ClergyCategoryId>7</ClergyCategoryId>
    <ClergyId>1</ClergyId>
    <ClergyName>sample string 2</ClergyName>
    <ClergyStatusName>sample string 4</ClergyStatusName>
    <ClergyTypeId>8</ClergyTypeId>
    <DOB>sample string 5</DOB>
    <DeaconDate>sample string 6</DeaconDate>
    <Prefix>
      <PrefixId>1</PrefixId>
      <PrefixName>sample string 2</PrefixName>
    </Prefix>
  </Clergy>
  <ClergyFlag>sample string 6</ClergyFlag>
  <Code>sample string 5</Code>
  <ConfirmStatus>sample string 27</ConfirmStatus>
  <CurrentDepartment>
    <DepartmentId>1</DepartmentId>
    <DepartmentName>sample string 2</DepartmentName>
  </CurrentDepartment>
  <CurrentDesignation>
    <DesignationId>1</DesignationId>
    <DesignationName>sample string 2</DesignationName>
  </CurrentDesignation>
  <CurrentEstablishment>
    <EstablishCategory>
      <EstablishCategoryId>1</EstablishCategoryId>
      <EstablishCategoryName>sample string 2</EstablishCategoryName>
    </EstablishCategory>
    <EstablishId>1</EstablishId>
    <EstablishName>sample string 2</EstablishName>
    <EstablishType>
      <EstablishTypeId>1</EstablishTypeId>
      <EstablishTypeName>sample string 2</EstablishTypeName>
    </EstablishType>
    <TotalHouses>4</TotalHouses>
    <TotalMembers>3</TotalMembers>
  </CurrentEstablishment>
  <Dob>sample string 7</Dob>
  <Email>sample string 11</Email>
  <EmpServiceFromDate>sample string 25</EmpServiceFromDate>
  <EmployeeId>1</EmployeeId>
  <EmployeeName>sample string 3</EmployeeName>
  <EmployeeSortName>sample string 4</EmployeeSortName>
  <EmployeeStatus>
    <EmployeeStatusId>1</EmployeeStatusId>
    <EmployeeStatusName>sample string 2</EmployeeStatusName>
  </EmployeeStatus>
  <Gender>sample string 8</Gender>
  <HomeParish>
    <EstablishCategory>
      <EstablishCategoryId>1</EstablishCategoryId>
      <EstablishCategoryName>sample string 2</EstablishCategoryName>
    </EstablishCategory>
    <EstablishId>1</EstablishId>
    <EstablishName>sample string 2</EstablishName>
    <EstablishType>
      <EstablishTypeId>1</EstablishTypeId>
      <EstablishTypeName>sample string 2</EstablishTypeName>
    </EstablishType>
    <TotalHouses>4</TotalHouses>
    <TotalMembers>3</TotalMembers>
  </HomeParish>
  <JoinDate>sample string 23</JoinDate>
  <MaritalStatus>
    <MaritalStatusId>1</MaritalStatusId>
    <MaritalStatusName>sample string 2</MaritalStatusName>
  </MaritalStatus>
  <MarriageDate>sample string 22</MarriageDate>
  <MobileNumber>sample string 10</MobileNumber>
  <Nationality>
    <Nationality>sample string 2</Nationality>
    <PlaceId>1</PlaceId>
  </Nationality>
  <PassportExpiry>sample string 13</PassportExpiry>
  <PassportNumber>sample string 12</PassportNumber>
  <PermenantCountry>
    <PlaceId>1</PlaceId>
    <PlaceName>sample string 2</PlaceName>
  </PermenantCountry>
  <PermenantDistrict>
    <PlaceId>1</PlaceId>
    <PlaceName>sample string 2</PlaceName>
  </PermenantDistrict>
  <PermenantHouseName>sample string 18</PermenantHouseName>
  <PermenantLandMark>sample string 21</PermenantLandMark>
  <PermenantPincode>sample string 19</PermenantPincode>
  <PermenantPlace>sample string 20</PermenantPlace>
  <PermenantPostOffice>
    <PlaceId>1</PlaceId>
    <PlaceName>sample string 2</PlaceName>
  </PermenantPostOffice>
  <PermenantState>
    <PlaceId>1</PlaceId>
    <PlaceName>sample string 2</PlaceName>
  </PermenantState>
  <PhoneNumber>sample string 9</PhoneNumber>
  <Prefix>
    <PrefixId>1</PrefixId>
    <PrefixName>sample string 2</PrefixName>
  </Prefix>
  <PresentCountry>
    <PlaceId>1</PlaceId>
    <PlaceName>sample string 2</PlaceName>
  </PresentCountry>
  <PresentDistrict>
    <PlaceId>1</PlaceId>
    <PlaceName>sample string 2</PlaceName>
  </PresentDistrict>
  <PresentHouseName>sample string 14</PresentHouseName>
  <PresentLandMark>sample string 17</PresentLandMark>
  <PresentPincode>sample string 15</PresentPincode>
  <PresentPlace>sample string 16</PresentPlace>
  <PresentPostOffice>
    <PlaceId>1</PlaceId>
    <PlaceName>sample string 2</PlaceName>
  </PresentPostOffice>
  <PresentState>
    <PlaceId>1</PlaceId>
    <PlaceName>sample string 2</PlaceName>
  </PresentState>
  <RetirementDate>sample string 24</RetirementDate>
  <Status>sample string 26</Status>
  <UpdateIp>sample string 29</UpdateIp>
  <UpdateUser>28</UpdateUser>
</EmployeeUpdateVM>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.