POST api/LeaveRequest

No documentation available.

Request Information

Parameters

NameDescriptionAdditional information
objDat
No documentation available.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "LEAVE_REQ_ID": 1,
  "LEAVE_REQ_CODE": "sample string 2",
  "LEAVE_REQ_DATE": "2025-01-11T12:51:20.8060127+03:00",
  "PREVIOUS_LEAVE_FROM_DATE": "2025-01-11T12:51:20.8060127+03:00",
  "EMP_ID": 1,
  "LINE_MANAGER_FILE_NO": 1,
  "EMP_FILE_NO_NAME": "sample string 3",
  "LINE_MANAGER_FIRST_NAME": "sample string 4",
  "LINE_MANAGER_LAST_NAME": "sample string 5",
  "LINE_MANAGER_FILE_NO_NAME": "sample string 6",
  "REQUESTER_FILE_NO_NAME": "sample string 7",
  "LEAVE_CAT_ID": 1,
  "LEAVE_RULE_ID": 1,
  "REASON": "sample string 8",
  "HR_COMMENTS": "sample string 9",
  "STATUS_ID": 1,
  "STATUS_NAME": "sample string 10",
  "LEAVE_CAT_NAME": "sample string 11",
  "LEAVE_RULE_NAME": "sample string 12",
  "JOB_TITLE": "sample string 13",
  "LEAVE_FROM": "2025-01-11T12:51:20.8060127+03:00",
  "LEAVE_TO": "2025-01-11T12:51:20.8060127+03:00",
  "NO_OF_DAYS": 1.0,
  "NO_OF_PAID_LEAVE": 1.0,
  "NO_OF_UNPAID_LEAVE": 1.0,
  "LEAVE_BAL": 1.0,
  "NEW_LEAVE_BAL": 1.0,
  "NO_OF_LEAVE_TO_DEDUCT": 1.0,
  "FAM_EVENT_BAL": 1.0,
  "FAM_EVENT_BAL_REG": 1.0,
  "WITH_SETTLE": true,
  "FT_REQ_SELF": true,
  "FT_REQ_DEPEND": true,
  "DEST_FIELD": "sample string 14",
  "FAM_EVE_ID": 1,
  "NO_OF_PUB_HOLIDAY": 1.0,
  "NO_OF_WEEKENDS": 1.0,
  "NO_OF_WEEKDAYS": 1.0,
  "FLIGHT_REQ_SELF": "sample string 15",
  "FLIGHT_PREFER": "sample string 16",
  "DOC_UPLOAD": "sample string 17",
  "IS_FT_ELIGIBLE": true,
  "IS_NOT_ELG_DEP": true,
  "IS_REF_APPROVED": true,
  "IS_TICK_BY_COMP": true,
  "IS_TICK_EMP_COST": true,
  "NO_OF_FLIGHT_TICKETS": 1.0,
  "SICK_LEAVE_BAL": 1.0,
  "SICK_LEAVE_HPAY_BAL": 1.0,
  "SICK_LEAVE_NOPAY_BAL": 1.0,
  "NO_SICK_FULL_PAY": 1.0,
  "NO_SICK_HALF_PAY": 1.0,
  "NO_SICK_NO_PAY": 1.0,
  "LAST_DATE_OF_PAID_LEAVE": "2025-01-11T12:51:20.8060127+03:00",
  "DAYS_ENCASHED": 1.0,
  "objDependent": [
    {
      "SL_ID": 1,
      "LEAVE_REQ_ID": 1,
      "DEPENDENT_ID": 1,
      "TICKET_ELIGIBILITY": true,
      "DEPENDENT_NAME": "sample string 2"
    },
    {
      "SL_ID": 1,
      "LEAVE_REQ_ID": 1,
      "DEPENDENT_ID": 1,
      "TICKET_ELIGIBILITY": true,
      "DEPENDENT_NAME": "sample string 2"
    },
    {
      "SL_ID": 1,
      "LEAVE_REQ_ID": 1,
      "DEPENDENT_ID": 1,
      "TICKET_ELIGIBILITY": true,
      "DEPENDENT_NAME": "sample string 2"
    }
  ],
  "objFamilyEvents": [
    {
      "FAM_EVE_ID": 1,
      "FAM_EVE_DATE": "2025-01-11T12:51:20.8060127+03:00",
      "EMP_ID": 1,
      "IS_USED": true,
      "NO_OF_DAYS": 1,
      "STATUS_ID": 1,
      "FAM_EVE_CAT_ID": 1,
      "FAM_EVE_CAT_NAME": "sample string 2",
      "FIRST_NAME": "sample string 3",
      "LAST_NAME": "sample string 4",
      "STATUS_NAME": "sample string 5",
      "FILE_NO": 1,
      "EXP_DATE": "2025-01-11T12:51:20.8060127+03:00",
      "NO_OF_DAYS_USED": 1,
      "NO_OF_REG_DAYS": 1,
      "NO_OF_REG_DAYS_USED": 1,
      "USED_BY_LREQ": 1,
      "REG_BY_LREQ": 1,
      "REG_USED_BY_LREQ": 1,
      "IS_REG_ONLY": true
    },
    {
      "FAM_EVE_ID": 1,
      "FAM_EVE_DATE": "2025-01-11T12:51:20.8060127+03:00",
      "EMP_ID": 1,
      "IS_USED": true,
      "NO_OF_DAYS": 1,
      "STATUS_ID": 1,
      "FAM_EVE_CAT_ID": 1,
      "FAM_EVE_CAT_NAME": "sample string 2",
      "FIRST_NAME": "sample string 3",
      "LAST_NAME": "sample string 4",
      "STATUS_NAME": "sample string 5",
      "FILE_NO": 1,
      "EXP_DATE": "2025-01-11T12:51:20.8060127+03:00",
      "NO_OF_DAYS_USED": 1,
      "NO_OF_REG_DAYS": 1,
      "NO_OF_REG_DAYS_USED": 1,
      "USED_BY_LREQ": 1,
      "REG_BY_LREQ": 1,
      "REG_USED_BY_LREQ": 1,
      "IS_REG_ONLY": true
    },
    {
      "FAM_EVE_ID": 1,
      "FAM_EVE_DATE": "2025-01-11T12:51:20.8060127+03:00",
      "EMP_ID": 1,
      "IS_USED": true,
      "NO_OF_DAYS": 1,
      "STATUS_ID": 1,
      "FAM_EVE_CAT_ID": 1,
      "FAM_EVE_CAT_NAME": "sample string 2",
      "FIRST_NAME": "sample string 3",
      "LAST_NAME": "sample string 4",
      "STATUS_NAME": "sample string 5",
      "FILE_NO": 1,
      "EXP_DATE": "2025-01-11T12:51:20.8060127+03:00",
      "NO_OF_DAYS_USED": 1,
      "NO_OF_REG_DAYS": 1,
      "NO_OF_REG_DAYS_USED": 1,
      "USED_BY_LREQ": 1,
      "REG_BY_LREQ": 1,
      "REG_USED_BY_LREQ": 1,
      "IS_REG_ONLY": true
    }
  ],
  "APPROVER_ID": 1,
  "APPROVER_COMMENTS": "sample string 18",
  "APPROVER_STATUS_ID": 1,
  "WORK_FLOW_ID": 1,
  "APPROVER_TYPE": "sample string 19",
  "APPROVER_IS_SUPER_POWER": true,
  "FIRST_NAME": "sample string 20",
  "LAST_NAME": "sample string 21",
  "FILE_NO": 1,
  "IS_EXCEED_SICK_BAL": true,
  "IS_FT_REQ": true,
  "SICK_RELATES_WORK": true,
  "FLIGHT_FREQ": 1.0,
  "TRAVEL_DATE": "2025-01-11T12:51:20.8060127+03:00",
  "COMMENTS": "sample string 22",
  "IS_EMPLOYEE_IN_PROBATION": true,
  "IS_LEAVE_EXTENDED": true
}

application/xml, text/xml

Sample:
<LeaveRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ComsipApi.Models.MyRequest">
  <APPROVER_COMMENTS>sample string 18</APPROVER_COMMENTS>
  <APPROVER_ID>1</APPROVER_ID>
  <APPROVER_IS_SUPER_POWER>true</APPROVER_IS_SUPER_POWER>
  <APPROVER_STATUS_ID>1</APPROVER_STATUS_ID>
  <APPROVER_TYPE>sample string 19</APPROVER_TYPE>
  <COMMENTS>sample string 22</COMMENTS>
  <DAYS_ENCASHED>1</DAYS_ENCASHED>
  <DEST_FIELD>sample string 14</DEST_FIELD>
  <DOC_UPLOAD>sample string 17</DOC_UPLOAD>
  <EMP_FILE_NO_NAME>sample string 3</EMP_FILE_NO_NAME>
  <EMP_ID>1</EMP_ID>
  <FAM_EVENT_BAL>1</FAM_EVENT_BAL>
  <FAM_EVENT_BAL_REG>1</FAM_EVENT_BAL_REG>
  <FAM_EVE_ID>1</FAM_EVE_ID>
  <FILE_NO>1</FILE_NO>
  <FIRST_NAME>sample string 20</FIRST_NAME>
  <FLIGHT_FREQ>1</FLIGHT_FREQ>
  <FLIGHT_PREFER>sample string 16</FLIGHT_PREFER>
  <FLIGHT_REQ_SELF>sample string 15</FLIGHT_REQ_SELF>
  <FT_REQ_DEPEND>true</FT_REQ_DEPEND>
  <FT_REQ_SELF>true</FT_REQ_SELF>
  <HR_COMMENTS>sample string 9</HR_COMMENTS>
  <IS_EMPLOYEE_IN_PROBATION>true</IS_EMPLOYEE_IN_PROBATION>
  <IS_EXCEED_SICK_BAL>true</IS_EXCEED_SICK_BAL>
  <IS_FT_ELIGIBLE>true</IS_FT_ELIGIBLE>
  <IS_FT_REQ>true</IS_FT_REQ>
  <IS_LEAVE_EXTENDED>true</IS_LEAVE_EXTENDED>
  <IS_NOT_ELG_DEP>true</IS_NOT_ELG_DEP>
  <IS_REF_APPROVED>true</IS_REF_APPROVED>
  <IS_TICK_BY_COMP>true</IS_TICK_BY_COMP>
  <IS_TICK_EMP_COST>true</IS_TICK_EMP_COST>
  <JOB_TITLE>sample string 13</JOB_TITLE>
  <LAST_DATE_OF_PAID_LEAVE>2025-01-11T12:51:20.8060127+03:00</LAST_DATE_OF_PAID_LEAVE>
  <LAST_NAME>sample string 21</LAST_NAME>
  <LEAVE_BAL>1</LEAVE_BAL>
  <LEAVE_CAT_ID>1</LEAVE_CAT_ID>
  <LEAVE_CAT_NAME>sample string 11</LEAVE_CAT_NAME>
  <LEAVE_FROM>2025-01-11T12:51:20.8060127+03:00</LEAVE_FROM>
  <LEAVE_REQ_CODE>sample string 2</LEAVE_REQ_CODE>
  <LEAVE_REQ_DATE>2025-01-11T12:51:20.8060127+03:00</LEAVE_REQ_DATE>
  <LEAVE_REQ_ID>1</LEAVE_REQ_ID>
  <LEAVE_RULE_ID>1</LEAVE_RULE_ID>
  <LEAVE_RULE_NAME>sample string 12</LEAVE_RULE_NAME>
  <LEAVE_TO>2025-01-11T12:51:20.8060127+03:00</LEAVE_TO>
  <LINE_MANAGER_FILE_NO>1</LINE_MANAGER_FILE_NO>
  <LINE_MANAGER_FILE_NO_NAME>sample string 6</LINE_MANAGER_FILE_NO_NAME>
  <LINE_MANAGER_FIRST_NAME>sample string 4</LINE_MANAGER_FIRST_NAME>
  <LINE_MANAGER_LAST_NAME>sample string 5</LINE_MANAGER_LAST_NAME>
  <NEW_LEAVE_BAL>1</NEW_LEAVE_BAL>
  <NO_OF_DAYS>1</NO_OF_DAYS>
  <NO_OF_FLIGHT_TICKETS>1</NO_OF_FLIGHT_TICKETS>
  <NO_OF_LEAVE_TO_DEDUCT>1</NO_OF_LEAVE_TO_DEDUCT>
  <NO_OF_PAID_LEAVE>1</NO_OF_PAID_LEAVE>
  <NO_OF_PUB_HOLIDAY>1</NO_OF_PUB_HOLIDAY>
  <NO_OF_UNPAID_LEAVE>1</NO_OF_UNPAID_LEAVE>
  <NO_OF_WEEKDAYS>1</NO_OF_WEEKDAYS>
  <NO_OF_WEEKENDS>1</NO_OF_WEEKENDS>
  <NO_SICK_FULL_PAY>1</NO_SICK_FULL_PAY>
  <NO_SICK_HALF_PAY>1</NO_SICK_HALF_PAY>
  <NO_SICK_NO_PAY>1</NO_SICK_NO_PAY>
  <PREVIOUS_LEAVE_FROM_DATE>2025-01-11T12:51:20.8060127+03:00</PREVIOUS_LEAVE_FROM_DATE>
  <REASON>sample string 8</REASON>
  <REQUESTER_FILE_NO_NAME>sample string 7</REQUESTER_FILE_NO_NAME>
  <SICK_LEAVE_BAL>1</SICK_LEAVE_BAL>
  <SICK_LEAVE_HPAY_BAL>1</SICK_LEAVE_HPAY_BAL>
  <SICK_LEAVE_NOPAY_BAL>1</SICK_LEAVE_NOPAY_BAL>
  <SICK_RELATES_WORK>true</SICK_RELATES_WORK>
  <STATUS_ID>1</STATUS_ID>
  <STATUS_NAME>sample string 10</STATUS_NAME>
  <TRAVEL_DATE>2025-01-11T12:51:20.8060127+03:00</TRAVEL_DATE>
  <WITH_SETTLE>true</WITH_SETTLE>
  <WORK_FLOW_ID>1</WORK_FLOW_ID>
  <objDependent>
    <LeaveDependent>
      <DEPENDENT_ID>1</DEPENDENT_ID>
      <DEPENDENT_NAME>sample string 2</DEPENDENT_NAME>
      <LEAVE_REQ_ID>1</LEAVE_REQ_ID>
      <SL_ID>1</SL_ID>
      <TICKET_ELIGIBILITY>true</TICKET_ELIGIBILITY>
    </LeaveDependent>
    <LeaveDependent>
      <DEPENDENT_ID>1</DEPENDENT_ID>
      <DEPENDENT_NAME>sample string 2</DEPENDENT_NAME>
      <LEAVE_REQ_ID>1</LEAVE_REQ_ID>
      <SL_ID>1</SL_ID>
      <TICKET_ELIGIBILITY>true</TICKET_ELIGIBILITY>
    </LeaveDependent>
    <LeaveDependent>
      <DEPENDENT_ID>1</DEPENDENT_ID>
      <DEPENDENT_NAME>sample string 2</DEPENDENT_NAME>
      <LEAVE_REQ_ID>1</LEAVE_REQ_ID>
      <SL_ID>1</SL_ID>
      <TICKET_ELIGIBILITY>true</TICKET_ELIGIBILITY>
    </LeaveDependent>
  </objDependent>
  <objFamilyEvents>
    <FamilyEvent>
      <EMP_ID>1</EMP_ID>
      <EXP_DATE>2025-01-11T12:51:20.8060127+03:00</EXP_DATE>
      <FAM_EVE_CAT_ID>1</FAM_EVE_CAT_ID>
      <FAM_EVE_CAT_NAME>sample string 2</FAM_EVE_CAT_NAME>
      <FAM_EVE_DATE>2025-01-11T12:51:20.8060127+03:00</FAM_EVE_DATE>
      <FAM_EVE_ID>1</FAM_EVE_ID>
      <FILE_NO>1</FILE_NO>
      <FIRST_NAME>sample string 3</FIRST_NAME>
      <IS_REG_ONLY>true</IS_REG_ONLY>
      <IS_USED>true</IS_USED>
      <LAST_NAME>sample string 4</LAST_NAME>
      <NO_OF_DAYS>1</NO_OF_DAYS>
      <NO_OF_DAYS_USED>1</NO_OF_DAYS_USED>
      <NO_OF_REG_DAYS>1</NO_OF_REG_DAYS>
      <NO_OF_REG_DAYS_USED>1</NO_OF_REG_DAYS_USED>
      <REG_BY_LREQ>1</REG_BY_LREQ>
      <REG_USED_BY_LREQ>1</REG_USED_BY_LREQ>
      <STATUS_ID>1</STATUS_ID>
      <STATUS_NAME>sample string 5</STATUS_NAME>
      <USED_BY_LREQ>1</USED_BY_LREQ>
    </FamilyEvent>
    <FamilyEvent>
      <EMP_ID>1</EMP_ID>
      <EXP_DATE>2025-01-11T12:51:20.8060127+03:00</EXP_DATE>
      <FAM_EVE_CAT_ID>1</FAM_EVE_CAT_ID>
      <FAM_EVE_CAT_NAME>sample string 2</FAM_EVE_CAT_NAME>
      <FAM_EVE_DATE>2025-01-11T12:51:20.8060127+03:00</FAM_EVE_DATE>
      <FAM_EVE_ID>1</FAM_EVE_ID>
      <FILE_NO>1</FILE_NO>
      <FIRST_NAME>sample string 3</FIRST_NAME>
      <IS_REG_ONLY>true</IS_REG_ONLY>
      <IS_USED>true</IS_USED>
      <LAST_NAME>sample string 4</LAST_NAME>
      <NO_OF_DAYS>1</NO_OF_DAYS>
      <NO_OF_DAYS_USED>1</NO_OF_DAYS_USED>
      <NO_OF_REG_DAYS>1</NO_OF_REG_DAYS>
      <NO_OF_REG_DAYS_USED>1</NO_OF_REG_DAYS_USED>
      <REG_BY_LREQ>1</REG_BY_LREQ>
      <REG_USED_BY_LREQ>1</REG_USED_BY_LREQ>
      <STATUS_ID>1</STATUS_ID>
      <STATUS_NAME>sample string 5</STATUS_NAME>
      <USED_BY_LREQ>1</USED_BY_LREQ>
    </FamilyEvent>
    <FamilyEvent>
      <EMP_ID>1</EMP_ID>
      <EXP_DATE>2025-01-11T12:51:20.8060127+03:00</EXP_DATE>
      <FAM_EVE_CAT_ID>1</FAM_EVE_CAT_ID>
      <FAM_EVE_CAT_NAME>sample string 2</FAM_EVE_CAT_NAME>
      <FAM_EVE_DATE>2025-01-11T12:51:20.8060127+03:00</FAM_EVE_DATE>
      <FAM_EVE_ID>1</FAM_EVE_ID>
      <FILE_NO>1</FILE_NO>
      <FIRST_NAME>sample string 3</FIRST_NAME>
      <IS_REG_ONLY>true</IS_REG_ONLY>
      <IS_USED>true</IS_USED>
      <LAST_NAME>sample string 4</LAST_NAME>
      <NO_OF_DAYS>1</NO_OF_DAYS>
      <NO_OF_DAYS_USED>1</NO_OF_DAYS_USED>
      <NO_OF_REG_DAYS>1</NO_OF_REG_DAYS>
      <NO_OF_REG_DAYS_USED>1</NO_OF_REG_DAYS_USED>
      <REG_BY_LREQ>1</REG_BY_LREQ>
      <REG_USED_BY_LREQ>1</REG_USED_BY_LREQ>
      <STATUS_ID>1</STATUS_ID>
      <STATUS_NAME>sample string 5</STATUS_NAME>
      <USED_BY_LREQ>1</USED_BY_LREQ>
    </FamilyEvent>
  </objFamilyEvents>
</LeaveRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'LeaveRequest'.