POST api/Holiday/UpdateHoliday

Request Information

URI Parameters

None.

Body Parameters

RequestAddHoliday
NameDescriptionTypeAdditional information
id

integer

None.

name

string

None.

nameAr

string

None.

code

string

None.

type

string

None.

unit

string

None.

fromdate

string

None.

todate

string

None.

affectiveafterdateofjoin

string

None.

accurate

boolean

None.

AccuralYearly

string

None.

accurateday

string

None.

accuratemonth

string

None.

AccrualType

string

None.

CreditType

string

None.

CreditDays

integer

None.

RequiredWorkedDays

integer

None.

CreditFrom

integer

None.

CreditTo

integer

None.

creditAccrdaysrangeleavecredit

integer

None.

ResetYearly

string

None.

reset

boolean

None.

resetday

string

None.

resetmonth

string

None.

CarryForwardCheck

boolean

None.

carryforward

string

None.

carryforwardMaxLimit

string

None.

EncashmentCheck

boolean

None.

encashement

string

None.

encashementMaxLimit

string

None.

religion

integer

None.

department

integer

None.

nationality

integer

None.

position

integer

None.

affectiveafteryear

integer

None.

restrictionyear

integer

None.

restricationdays

integer

None.

description

string

None.

userid

string

None.

Gender

string

None.

MaxLimit

integer

None.

Leavebalance

string

None.

Hours

string

None.

LeaveTime

string

None.

chkallowleaveexceed

boolean

None.

allowleaveexceeddays

integer

None.

allowedleaveexceedvalue

string

None.

chkmarklop

boolean

None.

chkallowdocument

boolean

None.

chkallowadministrator

boolean

None.

chkallowminimumleave

boolean

None.

chkallowmaximumleave

boolean

None.

chkallowmaximumconsectiveleave

boolean

None.

chkallowminimumgapleave

boolean

None.

documentdays

integer

None.

minimumleaveperrequest

integer

None.

maximumleaveperrequest

integer

None.

maximumconsectiveleave

integer

None.

mingapleave

integer

None.

sandwich

boolean

None.

sandwichdayscount

integer

None.

clubbingleaves

Collection of string

None.

employee

Collection of string

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "name": "sample string 2",
  "nameAr": "sample string 3",
  "code": "sample string 4",
  "type": "sample string 5",
  "unit": "sample string 6",
  "fromdate": "sample string 7",
  "todate": "sample string 8",
  "affectiveafterdateofjoin": "sample string 9",
  "accurate": true,
  "AccuralYearly": "sample string 11",
  "accurateday": "sample string 12",
  "accuratemonth": "sample string 13",
  "AccrualType": "sample string 14",
  "CreditType": "sample string 15",
  "CreditDays": 16,
  "RequiredWorkedDays": 17,
  "CreditFrom": 18,
  "CreditTo": 19,
  "creditAccrdaysrangeleavecredit": 20,
  "ResetYearly": "sample string 21",
  "reset": true,
  "resetday": "sample string 23",
  "resetmonth": "sample string 24",
  "CarryForwardCheck": true,
  "carryforward": "sample string 26",
  "carryforwardMaxLimit": "sample string 27",
  "EncashmentCheck": true,
  "encashement": "sample string 29",
  "encashementMaxLimit": "sample string 30",
  "religion": 31,
  "department": 32,
  "nationality": 33,
  "position": 34,
  "affectiveafteryear": 35,
  "restrictionyear": 36,
  "restricationdays": 37,
  "description": "sample string 38",
  "userid": "sample string 39",
  "Gender": "sample string 40",
  "MaxLimit": 1,
  "Leavebalance": "sample string 41",
  "Hours": "sample string 42",
  "LeaveTime": "sample string 43",
  "chkallowleaveexceed": true,
  "allowleaveexceeddays": 44,
  "allowedleaveexceedvalue": "sample string 45",
  "chkmarklop": true,
  "chkallowdocument": true,
  "chkallowadministrator": true,
  "chkallowminimumleave": true,
  "chkallowmaximumleave": true,
  "chkallowmaximumconsectiveleave": true,
  "chkallowminimumgapleave": true,
  "documentdays": 1,
  "minimumleaveperrequest": 1,
  "maximumleaveperrequest": 1,
  "maximumconsectiveleave": 1,
  "mingapleave": 1,
  "sandwich": true,
  "sandwichdayscount": 1,
  "clubbingleaves": [
    "sample string 1",
    "sample string 2"
  ],
  "employee": [
    "sample string 1",
    "sample string 2"
  ]
}

application/xml, text/xml

Sample:
<RequestAddHoliday xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RRCDR_Attendance_API.Helpers.Custom">
  <AccrualType>sample string 14</AccrualType>
  <AccuralYearly>sample string 11</AccuralYearly>
  <CarryForwardCheck>true</CarryForwardCheck>
  <CreditDays>16</CreditDays>
  <CreditFrom>18</CreditFrom>
  <CreditTo>19</CreditTo>
  <CreditType>sample string 15</CreditType>
  <EncashmentCheck>true</EncashmentCheck>
  <Gender>sample string 40</Gender>
  <Hours>sample string 42</Hours>
  <LeaveTime>sample string 43</LeaveTime>
  <Leavebalance>sample string 41</Leavebalance>
  <MaxLimit>1</MaxLimit>
  <RequiredWorkedDays>17</RequiredWorkedDays>
  <ResetYearly>sample string 21</ResetYearly>
  <accurate>true</accurate>
  <accurateday>sample string 12</accurateday>
  <accuratemonth>sample string 13</accuratemonth>
  <affectiveafterdateofjoin>sample string 9</affectiveafterdateofjoin>
  <affectiveafteryear>35</affectiveafteryear>
  <allowedleaveexceedvalue>sample string 45</allowedleaveexceedvalue>
  <allowleaveexceeddays>44</allowleaveexceeddays>
  <carryforward>sample string 26</carryforward>
  <carryforwardMaxLimit>sample string 27</carryforwardMaxLimit>
  <chkallowadministrator>true</chkallowadministrator>
  <chkallowdocument>true</chkallowdocument>
  <chkallowleaveexceed>true</chkallowleaveexceed>
  <chkallowmaximumconsectiveleave>true</chkallowmaximumconsectiveleave>
  <chkallowmaximumleave>true</chkallowmaximumleave>
  <chkallowminimumgapleave>true</chkallowminimumgapleave>
  <chkallowminimumleave>true</chkallowminimumleave>
  <chkmarklop>true</chkmarklop>
  <clubbingleaves xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </clubbingleaves>
  <code>sample string 4</code>
  <creditAccrdaysrangeleavecredit>20</creditAccrdaysrangeleavecredit>
  <department>32</department>
  <description>sample string 38</description>
  <documentdays>1</documentdays>
  <employee xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </employee>
  <encashement>sample string 29</encashement>
  <encashementMaxLimit>sample string 30</encashementMaxLimit>
  <fromdate>sample string 7</fromdate>
  <id>1</id>
  <maximumconsectiveleave>1</maximumconsectiveleave>
  <maximumleaveperrequest>1</maximumleaveperrequest>
  <mingapleave>1</mingapleave>
  <minimumleaveperrequest>1</minimumleaveperrequest>
  <name>sample string 2</name>
  <nameAr>sample string 3</nameAr>
  <nationality>33</nationality>
  <position>34</position>
  <religion>31</religion>
  <reset>true</reset>
  <resetday>sample string 23</resetday>
  <resetmonth>sample string 24</resetmonth>
  <restricationdays>37</restricationdays>
  <restrictionyear>36</restrictionyear>
  <sandwich>true</sandwich>
  <sandwichdayscount>1</sandwichdayscount>
  <todate>sample string 8</todate>
  <type>sample string 5</type>
  <unit>sample string 6</unit>
  <userid>sample string 39</userid>
</RequestAddHoliday>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Object

None.

Response Formats

application/json, text/json

Sample:
{}

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />