POST api/User/AddUpdateExternalEmployee

AddUpdateExternalEmployee

Request Information

URI Parameters

None.

Body Parameters

ExternalEmployeeRequestModel
NameDescriptionTypeAdditional information
EmployeeID

integer

None.

EmployeeCode

string

None.

Designation

string

None.

DepartmentName

string

None.

EmployeeName

string

None.

Email

string

None.

StateName

string

None.

StateCode

string

None.

BranchName

string

None.

ApiToken

string

None.

PhoneAreaCode

string

None.

PhoneNo

string

None.

employeeDeploymentLocation

Collection of EmployeeDeploymentLocationDataModel

None.

Request Formats

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

Sample:
{
  "employeeID": 1,
  "employeeCode": "sample string 2",
  "designation": "sample string 3",
  "departmentName": "sample string 4",
  "employeeName": "sample string 5",
  "email": "sample string 6",
  "stateName": "sample string 7",
  "stateCode": "sample string 8",
  "branchName": "sample string 9",
  "apiToken": "sample string 10",
  "phoneAreaCode": "sample string 11",
  "phoneNo": "sample string 12",
  "employeeDeploymentLocation": [
    {
      "employeeID": 1,
      "employeeCode": "sample string 2",
      "clientName": "sample string 3",
      "clientCode": "sample string 4",
      "locationTitle": "sample string 5",
      "duty": 6.1,
      "fullAddress": "sample string 7",
      "stateName": "sample string 8",
      "stateCode": "sample string 9",
      "salesOrderNumber": "sample string 10",
      "salesOrderTitle": "sample string 11",
      "uniformCharge": 12.1,
      "designation": "sample string 13"
    },
    {
      "employeeID": 1,
      "employeeCode": "sample string 2",
      "clientName": "sample string 3",
      "clientCode": "sample string 4",
      "locationTitle": "sample string 5",
      "duty": 6.1,
      "fullAddress": "sample string 7",
      "stateName": "sample string 8",
      "stateCode": "sample string 9",
      "salesOrderNumber": "sample string 10",
      "salesOrderTitle": "sample string 11",
      "uniformCharge": 12.1,
      "designation": "sample string 13"
    }
  ]
}

application/xml, text/xml

Sample:
<ExternalEmployeeRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.RequestModel">
  <ApiToken>sample string 10</ApiToken>
  <BranchName>sample string 9</BranchName>
  <DepartmentName>sample string 4</DepartmentName>
  <Designation>sample string 3</Designation>
  <Email>sample string 6</Email>
  <EmployeeCode>sample string 2</EmployeeCode>
  <EmployeeID>1</EmployeeID>
  <EmployeeName>sample string 5</EmployeeName>
  <PhoneAreaCode>sample string 11</PhoneAreaCode>
  <PhoneNo>sample string 12</PhoneNo>
  <StateCode>sample string 8</StateCode>
  <StateName>sample string 7</StateName>
  <employeeDeploymentLocation>
    <EmployeeDeploymentLocationDataModel>
      <clientCode>sample string 4</clientCode>
      <clientName>sample string 3</clientName>
      <designation>sample string 13</designation>
      <duty>6.1</duty>
      <employeeCode>sample string 2</employeeCode>
      <employeeID>1</employeeID>
      <fullAddress>sample string 7</fullAddress>
      <locationTitle>sample string 5</locationTitle>
      <salesOrderNumber>sample string 10</salesOrderNumber>
      <salesOrderTitle>sample string 11</salesOrderTitle>
      <stateCode>sample string 9</stateCode>
      <stateName>sample string 8</stateName>
      <uniformCharge>12.1</uniformCharge>
    </EmployeeDeploymentLocationDataModel>
    <EmployeeDeploymentLocationDataModel>
      <clientCode>sample string 4</clientCode>
      <clientName>sample string 3</clientName>
      <designation>sample string 13</designation>
      <duty>6.1</duty>
      <employeeCode>sample string 2</employeeCode>
      <employeeID>1</employeeID>
      <fullAddress>sample string 7</fullAddress>
      <locationTitle>sample string 5</locationTitle>
      <salesOrderNumber>sample string 10</salesOrderNumber>
      <salesOrderTitle>sample string 11</salesOrderTitle>
      <stateCode>sample string 9</stateCode>
      <stateName>sample string 8</stateName>
      <uniformCharge>12.1</uniformCharge>
    </EmployeeDeploymentLocationDataModel>
  </employeeDeploymentLocation>
</ExternalEmployeeRequestModel>

multipart/form-data

Sample:
<ExternalEmployeeRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.RequestModel"><ApiToken>sample string 10</ApiToken><BranchName>sample string 9</BranchName><DepartmentName>sample string 4</DepartmentName><Designation>sample string 3</Designation><Email>sample string 6</Email><EmployeeCode>sample string 2</EmployeeCode><EmployeeID>1</EmployeeID><EmployeeName>sample string 5</EmployeeName><PhoneAreaCode>sample string 11</PhoneAreaCode><PhoneNo>sample string 12</PhoneNo><StateCode>sample string 8</StateCode><StateName>sample string 7</StateName><employeeDeploymentLocation><EmployeeDeploymentLocationDataModel><clientCode>sample string 4</clientCode><clientName>sample string 3</clientName><designation>sample string 13</designation><duty>6.1</duty><employeeCode>sample string 2</employeeCode><employeeID>1</employeeID><fullAddress>sample string 7</fullAddress><locationTitle>sample string 5</locationTitle><salesOrderNumber>sample string 10</salesOrderNumber><salesOrderTitle>sample string 11</salesOrderTitle><stateCode>sample string 9</stateCode><stateName>sample string 8</stateName><uniformCharge>12.1</uniformCharge></EmployeeDeploymentLocationDataModel><EmployeeDeploymentLocationDataModel><clientCode>sample string 4</clientCode><clientName>sample string 3</clientName><designation>sample string 13</designation><duty>6.1</duty><employeeCode>sample string 2</employeeCode><employeeID>1</employeeID><fullAddress>sample string 7</fullAddress><locationTitle>sample string 5</locationTitle><salesOrderNumber>sample string 10</salesOrderNumber><salesOrderTitle>sample string 11</salesOrderTitle><stateCode>sample string 9</stateCode><stateName>sample string 8</stateName><uniformCharge>12.1</uniformCharge></EmployeeDeploymentLocationDataModel></employeeDeploymentLocation></ExternalEmployeeRequestModel>

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>