POST api/V3/Employee/AddEmployeeLeaves
Add or Update Employee Leaves
Request Information
URI Parameters
None.
Body Parameters
Employee Leaves to be Added or Updated(If Data Already Exist) (Max 500)
Collection of V3.EmployeeLeavesName | Description | Type | Additional information |
---|---|---|---|
Year |
Year of Leave Report |
integer |
Required Range: inclusive between 2000 and 9999 |
EmployeeERPId |
ERP Id of the user |
string |
Required String length: inclusive between 0 and 200 |
AllotedCL |
Alloted CL |
integer |
None. |
AllotedPL |
Alloted PL |
integer |
None. |
AllotedSL |
Alloted SL |
integer |
None. |
ConsumedCL |
Consumed CL |
integer |
None. |
ConsumedPL |
Consumed PL |
integer |
None. |
ConsumedSL |
Consumed SL |
integer |
None. |
Request Formats
application/json, text/json
Sample:
[ { "AllotedCL": 1, "AllotedPL": 2, "AllotedSL": 3, "ConsumedCL": 4, "ConsumedPL": 5, "ConsumedSL": 6, "Year": 1, "EmployeeERPId": "sample string 2" }, { "AllotedCL": 1, "AllotedPL": 2, "AllotedSL": 3, "ConsumedCL": 4, "ConsumedPL": 5, "ConsumedSL": 6, "Year": 1, "EmployeeERPId": "sample string 2" } ]
application/xml, text/xml
Sample:
<ArrayOfEmployeeLeaves xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalApis.Models.V3"> <EmployeeLeaves> <AllotedCL>1</AllotedCL> <AllotedPL>2</AllotedPL> <AllotedSL>3</AllotedSL> <ConsumedCL>4</ConsumedCL> <ConsumedPL>5</ConsumedPL> <ConsumedSL>6</ConsumedSL> <EmployeeERPId>sample string 2</EmployeeERPId> <Year>1</Year> </EmployeeLeaves> <EmployeeLeaves> <AllotedCL>1</AllotedCL> <AllotedPL>2</AllotedPL> <AllotedSL>3</AllotedSL> <ConsumedCL>4</ConsumedCL> <ConsumedPL>5</ConsumedPL> <ConsumedSL>6</ConsumedSL> <EmployeeERPId>sample string 2</EmployeeERPId> <Year>1</Year> </EmployeeLeaves> </ArrayOfEmployeeLeaves>
Response Information
Resource Description
ApiResponseName | Description | Type | Additional information |
---|---|---|---|
Message |
Message Indicating the Overall Response Summary of the Requested API |
string |
None. |
ResponseList |
List of Errors |
Collection of ApiResponseMessage |
None. |
Response |
Enum Indicating the Response status |
ResponseStatus |
None. |
ResponseStatusCount |
Summary containing Number of SuccessFull And Failed Tasks |
ResponseStatusCount |
None. |
Response Formats
application/json, text/json
Sample:
{ "Message": "sample string 1", "ResponseList": [ { "ERPId": "sample string 1", "Message": "sample string 2", "ResponseStatus": "Failure", "GUID": "sample string 3" }, { "ERPId": "sample string 1", "Message": "sample string 2", "ResponseStatus": "Failure", "GUID": "sample string 3" } ], "Response": "Failure", "ResponseStatusCount": { "Updated": 1, "Failed": 2, "Ignored": 3, "Name": "sample string 1", "Total": 6, "StatusMessage": "sample string 1: Total-6, Updated-1, Failed-2, Ignored-3", "ResponseStatus": "PartialSuccess" } }
application/xml, text/xml
Sample:
<ApiResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ExternalApis.Models.Common"> <Message>sample string 1</Message> <Response>Failure</Response> <ResponseList> <ApiResponseMessage> <ERPId>sample string 1</ERPId> <GUID>sample string 3</GUID> <Message>sample string 2</Message> <ResponseStatus>Failure</ResponseStatus> </ApiResponseMessage> <ApiResponseMessage> <ERPId>sample string 1</ERPId> <GUID>sample string 3</GUID> <Message>sample string 2</Message> <ResponseStatus>Failure</ResponseStatus> </ApiResponseMessage> </ResponseList> <ResponseStatusCount> <Failed>2</Failed> <Ignored>3</Ignored> <Name>sample string 1</Name> <Updated>1</Updated> </ResponseStatusCount> </ApiResponse>