POST api/Leave/Add
新增明細
Request Information
URI Parameters
None.
Body Parameters
新增資料
LeaveDto| Name | Description | Type | Additional information |
|---|---|---|---|
| LEAVE_ID | integer |
None. |
|
| FORM_GUID | string |
None. |
|
| COMPANY_SNO | string |
None. |
|
| EMPLOYEE_NO | string |
None. |
|
| AGENT_NO | string |
None. |
|
| LEAVE_START_DATE | date |
None. |
|
| LEAVE_START_TIME | date |
None. |
|
| LEAVE_END_DATE | date |
None. |
|
| LEAVE_END_TIME | date |
None. |
|
| LEAVE_SETUP_REFERENCE_ID | integer |
None. |
|
| LEAVE_SETUP_CLASS | string |
None. |
|
| EVENT_DATE | date |
None. |
|
| LEAVE_REASON | string |
None. |
|
| EmpId | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"LEAVE_ID": 1,
"FORM_GUID": "sample string 2",
"COMPANY_SNO": "sample string 3",
"EMPLOYEE_NO": "sample string 4",
"AGENT_NO": "sample string 5",
"LEAVE_START_DATE": "2025-12-27T14:35:32.3357828+08:00",
"LEAVE_START_TIME": "2025-12-27T14:35:32.3357828+08:00",
"LEAVE_END_DATE": "2025-12-27T14:35:32.3357828+08:00",
"LEAVE_END_TIME": "2025-12-27T14:35:32.3357828+08:00",
"LEAVE_SETUP_REFERENCE_ID": 10,
"LEAVE_SETUP_CLASS": "sample string 11",
"EVENT_DATE": "2025-12-27T14:35:32.3357828+08:00",
"LEAVE_REASON": "sample string 12",
"EmpId": "sample string 13"
}
application/xml, text/xml
Sample:
<LeaveDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/QuestComposite._104WorkFlow.Application.Dtos"> <AGENT_NO>sample string 5</AGENT_NO> <COMPANY_SNO>sample string 3</COMPANY_SNO> <EMPLOYEE_NO>sample string 4</EMPLOYEE_NO> <EVENT_DATE>2025-12-27T14:35:32.3357828+08:00</EVENT_DATE> <EmpId>sample string 13</EmpId> <FORM_GUID>sample string 2</FORM_GUID> <LEAVE_END_DATE>2025-12-27T14:35:32.3357828+08:00</LEAVE_END_DATE> <LEAVE_END_TIME>2025-12-27T14:35:32.3357828+08:00</LEAVE_END_TIME> <LEAVE_ID>1</LEAVE_ID> <LEAVE_REASON>sample string 12</LEAVE_REASON> <LEAVE_SETUP_CLASS>sample string 11</LEAVE_SETUP_CLASS> <LEAVE_SETUP_REFERENCE_ID>10</LEAVE_SETUP_REFERENCE_ID> <LEAVE_START_DATE>2025-12-27T14:35:32.3357828+08:00</LEAVE_START_DATE> <LEAVE_START_TIME>2025-12-27T14:35:32.3357828+08:00</LEAVE_START_TIME> </LeaveDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
stringResponse Formats
application/json, text/json
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>