POST api/EmployeeLeave/AddEmployeeLeave
Request Information
URI Parameters
None.
Body Parameters
EmployeeLeavesName | Description | Type | Additional information |
---|---|---|---|
EmployeeLeave | Collection of EmployeeLeave |
None. |
Request Formats
application/xml, text/xml
Sample:
<EmployeeLeaves xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <EmployeeLeave> <EmployeeID>sample string 1</EmployeeID> <Year>2</Year> <ID>3</ID> <Locked>64</Locked> <Source>sample string 4</Source> <Class>sample string 5</Class> <Description>sample string 6</Description> <NumHours>1</NumHours> <NumDays>1</NumDays> <Month>1</Month> <AbsenceFrom>2024-11-21T15:32:04.7276035+01:00</AbsenceFrom> <AbsenceTo>2024-11-21T15:32:04.7276035+01:00</AbsenceTo> <AdditionalLeaveID>sample string 7</AdditionalLeaveID> <Group>1</Group> <PrepID>1</PrepID> </EmployeeLeave> <EmployeeLeave> <EmployeeID>sample string 1</EmployeeID> <Year>2</Year> <ID>3</ID> <Locked>64</Locked> <Source>sample string 4</Source> <Class>sample string 5</Class> <Description>sample string 6</Description> <NumHours>1</NumHours> <NumDays>1</NumDays> <Month>1</Month> <AbsenceFrom>2024-11-21T15:32:04.7276035+01:00</AbsenceFrom> <AbsenceTo>2024-11-21T15:32:04.7276035+01:00</AbsenceTo> <AdditionalLeaveID>sample string 7</AdditionalLeaveID> <Group>1</Group> <PrepID>1</PrepID> </EmployeeLeave> </EmployeeLeaves>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CreateResultWithDocumentsKeysName | Description | Type | Additional information |
---|---|---|---|
Rows | Collection of DocumentKeys |
None. |
|
ResultCode | ExternalResultCode |
None. |
|
Errors | Collection of ErrorWithKeys |
None. |
Response Formats
application/xml, text/xml
Sample:
<CreateResult xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Rows> <DocumentKeys> <Keys> <Key> <Name>sample string 1</Name> <Value>sample string 2</Value> </Key> <Key> <Name>sample string 1</Name> <Value>sample string 2</Value> </Key> </Keys> </DocumentKeys> <DocumentKeys> <Keys> <Key> <Name>sample string 1</Name> <Value>sample string 2</Value> </Key> <Key> <Name>sample string 1</Name> <Value>sample string 2</Value> </Key> </Keys> </DocumentKeys> </Rows> <ResultCode>None</ResultCode> <Errors> <Error> <Level>Warning</Level> <Message>sample string 1</Message> <Keys> <Key> <Name>sample string 1</Name> <Value>sample string 2</Value> </Key> <Key> <Name>sample string 1</Name> <Value>sample string 2</Value> </Key> </Keys> </Error> <Error> <Level>Warning</Level> <Message>sample string 1</Message> <Keys> <Key> <Name>sample string 1</Name> <Value>sample string 2</Value> </Key> <Key> <Name>sample string 1</Name> <Value>sample string 2</Value> </Key> </Keys> </Error> </Errors> </CreateResult>