POST api/Vacations/SendRequest
Request Information
URI Parameters
None.
Body Parameters
VacationsDTO| Name | Description | Type | Additional information |
|---|---|---|---|
| VacationID | integer |
None. |
|
| VacationTypeID | integer |
None. |
|
| VacationSettingID | integer |
None. |
|
| VacationTypeEnglish | string |
None. |
|
| VacationTypeArabic | string |
None. |
|
| StatusEnglish | string |
None. |
|
| StatusArabic | string |
None. |
|
| SystemUserID | integer |
None. |
|
| StaffID | integer |
None. |
|
| StaffName | string |
None. |
|
| FromDate | date |
None. |
|
| ToDate | date |
None. |
|
| FromTime | string |
None. |
|
| ToTime | string |
None. |
|
| TotalHours | decimal number |
None. |
|
| IsDeleted | boolean |
None. |
|
| CreationDate | date |
None. |
|
| ModifiedDate | date |
None. |
|
| RequestID | integer |
None. |
|
| RequestTypeID | integer |
None. |
|
| RequestStatusID | integer |
None. |
|
| SentFile | string |
None. |
|
| ReceivedFile | string |
None. |
|
| Note | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"VacationID": 1,
"VacationTypeID": 2,
"VacationSettingID": 3,
"VacationTypeEnglish": "sample string 4",
"VacationTypeArabic": "sample string 5",
"StatusEnglish": "sample string 6",
"StatusArabic": "sample string 7",
"SystemUserID": 8,
"StaffID": 9,
"StaffName": "sample string 10",
"FromDate": "2025-10-27T18:15:27.6168961-04:00",
"ToDate": "2025-10-27T18:15:27.6168961-04:00",
"FromTime": "sample string 13",
"ToTime": "sample string 14",
"TotalHours": 15.1,
"IsDeleted": true,
"CreationDate": "2025-10-27T18:15:27.6168961-04:00",
"ModifiedDate": "2025-10-27T18:15:27.6168961-04:00",
"RequestID": 19,
"RequestTypeID": 20,
"RequestStatusID": 21,
"SentFile": "sample string 22",
"ReceivedFile": "sample string 23",
"Note": "sample string 24"
}
application/xml, text/xml
Sample:
<VacationsDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/HR.Objects.DTOs"> <CreationDate>2025-10-27T18:15:27.6168961-04:00</CreationDate> <FromDate>2025-10-27T18:15:27.6168961-04:00</FromDate> <FromTime>sample string 13</FromTime> <IsDeleted>true</IsDeleted> <ModifiedDate>2025-10-27T18:15:27.6168961-04:00</ModifiedDate> <Note>sample string 24</Note> <ReceivedFile>sample string 23</ReceivedFile> <RequestID>19</RequestID> <RequestStatusID>21</RequestStatusID> <RequestTypeID>20</RequestTypeID> <SentFile>sample string 22</SentFile> <StaffID>9</StaffID> <StaffName>sample string 10</StaffName> <StatusArabic>sample string 7</StatusArabic> <StatusEnglish>sample string 6</StatusEnglish> <SystemUserID>8</SystemUserID> <ToDate>2025-10-27T18:15:27.6168961-04:00</ToDate> <ToTime>sample string 14</ToTime> <TotalHours>15.1</TotalHours> <VacationID>1</VacationID> <VacationSettingID>3</VacationSettingID> <VacationTypeArabic>sample string 5</VacationTypeArabic> <VacationTypeEnglish>sample string 4</VacationTypeEnglish> <VacationTypeID>2</VacationTypeID> </VacationsDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<long xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</long>