POST api/hrmPolicyHeader/Save

Request Information

URI Parameters

None.

Body Parameters

hrmPolicyHeader
NameDescriptionTypeAdditional information
AlteredOn

date

None.

CreatedOn

date

None.

DateFrom

date

None.

DateTo

date

None.

ActionType

integer

None.

AlteredBy

integer

None.

BranchesId

integer

None.

CompanyId

integer

None.

CreatedBy

integer

None.

OrganizationId

integer

None.

PolicyHeaderId

integer

None.

HrmPolicyDetailList

Collection of hrmPolicyDetail

None.

Request Formats

application/json, text/json

Sample:
{
  "AlteredOn": "2025-10-29T13:10:58.6302021+05:00",
  "CreatedOn": "2025-10-29T13:10:58.6302021+05:00",
  "DateFrom": "2025-10-29T13:10:58.6302021+05:00",
  "DateTo": "2025-10-29T13:10:58.6302021+05:00",
  "ActionType": 5,
  "AlteredBy": 6,
  "BranchesId": 7,
  "CompanyId": 8,
  "CreatedBy": 9,
  "OrganizationId": 10,
  "PolicyHeaderId": 11,
  "HrmPolicyDetailList": [
    {
      "AdvanceAfterDay": 1,
      "AllowMultiShiftToEmployeeOnDay": true,
      "CPLApplyMinHours": 3,
      "FoodEqually": true,
      "FoodOnSalary": true,
      "IsMonthEndPayroll": true,
      "IsSeparteOTPayroll": true,
      "LateArrivalWithGraceTime": true,
      "LateNoOfDay": 9,
      "NoOfHalfDay": 10,
      "NoOfShortHoursInDay": 11,
      "NoOfShortLeave": 12,
      "NoOfShortLeaveInMonth": 13,
      "OTApplyAfterMin": 14,
      "PayrollCutOffDay": 15,
      "ShortNoOfHours": 16,
      "AdvanceLimitPercent": 17.0,
      "FoodShareAmount": 18.0,
      "FoodSharePercent": 19.0,
      "OTFactorRate": 20.0,
      "HeaderId": 21,
      "PolicyId": 22,
      "EmployeeDutyHour": 23,
      "Description": "sample string 24"
    },
    {
      "AdvanceAfterDay": 1,
      "AllowMultiShiftToEmployeeOnDay": true,
      "CPLApplyMinHours": 3,
      "FoodEqually": true,
      "FoodOnSalary": true,
      "IsMonthEndPayroll": true,
      "IsSeparteOTPayroll": true,
      "LateArrivalWithGraceTime": true,
      "LateNoOfDay": 9,
      "NoOfHalfDay": 10,
      "NoOfShortHoursInDay": 11,
      "NoOfShortLeave": 12,
      "NoOfShortLeaveInMonth": 13,
      "OTApplyAfterMin": 14,
      "PayrollCutOffDay": 15,
      "ShortNoOfHours": 16,
      "AdvanceLimitPercent": 17.0,
      "FoodShareAmount": 18.0,
      "FoodSharePercent": 19.0,
      "OTFactorRate": 20.0,
      "HeaderId": 21,
      "PolicyId": 22,
      "EmployeeDutyHour": 23,
      "Description": "sample string 24"
    }
  ]
}

application/xml, text/xml

Sample:
<hrmPolicyHeader xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Architecture.Model.HRM.PolicyManagment">
  <ActionType>5</ActionType>
  <AlteredBy>6</AlteredBy>
  <AlteredOn>2025-10-29T13:10:58.6302021+05:00</AlteredOn>
  <BranchesId>7</BranchesId>
  <CompanyId>8</CompanyId>
  <CreatedBy>9</CreatedBy>
  <CreatedOn>2025-10-29T13:10:58.6302021+05:00</CreatedOn>
  <DateFrom>2025-10-29T13:10:58.6302021+05:00</DateFrom>
  <DateTo>2025-10-29T13:10:58.6302021+05:00</DateTo>
  <HrmPolicyDetailList>
    <hrmPolicyDetail>
      <AdvanceAfterDay>1</AdvanceAfterDay>
      <AdvanceLimitPercent>17</AdvanceLimitPercent>
      <AllowMultiShiftToEmployeeOnDay>true</AllowMultiShiftToEmployeeOnDay>
      <CPLApplyMinHours>3</CPLApplyMinHours>
      <Description>sample string 24</Description>
      <EmployeeDutyHour>23</EmployeeDutyHour>
      <FoodEqually>true</FoodEqually>
      <FoodOnSalary>true</FoodOnSalary>
      <FoodShareAmount>18</FoodShareAmount>
      <FoodSharePercent>19</FoodSharePercent>
      <HeaderId>21</HeaderId>
      <IsMonthEndPayroll>true</IsMonthEndPayroll>
      <IsSeparteOTPayroll>true</IsSeparteOTPayroll>
      <LateArrivalWithGraceTime>true</LateArrivalWithGraceTime>
      <LateNoOfDay>9</LateNoOfDay>
      <NoOfHalfDay>10</NoOfHalfDay>
      <NoOfShortHoursInDay>11</NoOfShortHoursInDay>
      <NoOfShortLeave>12</NoOfShortLeave>
      <NoOfShortLeaveInMonth>13</NoOfShortLeaveInMonth>
      <OTApplyAfterMin>14</OTApplyAfterMin>
      <OTFactorRate>20</OTFactorRate>
      <PayrollCutOffDay>15</PayrollCutOffDay>
      <PolicyId>22</PolicyId>
      <ShortNoOfHours>16</ShortNoOfHours>
    </hrmPolicyDetail>
    <hrmPolicyDetail>
      <AdvanceAfterDay>1</AdvanceAfterDay>
      <AdvanceLimitPercent>17</AdvanceLimitPercent>
      <AllowMultiShiftToEmployeeOnDay>true</AllowMultiShiftToEmployeeOnDay>
      <CPLApplyMinHours>3</CPLApplyMinHours>
      <Description>sample string 24</Description>
      <EmployeeDutyHour>23</EmployeeDutyHour>
      <FoodEqually>true</FoodEqually>
      <FoodOnSalary>true</FoodOnSalary>
      <FoodShareAmount>18</FoodShareAmount>
      <FoodSharePercent>19</FoodSharePercent>
      <HeaderId>21</HeaderId>
      <IsMonthEndPayroll>true</IsMonthEndPayroll>
      <IsSeparteOTPayroll>true</IsSeparteOTPayroll>
      <LateArrivalWithGraceTime>true</LateArrivalWithGraceTime>
      <LateNoOfDay>9</LateNoOfDay>
      <NoOfHalfDay>10</NoOfHalfDay>
      <NoOfShortHoursInDay>11</NoOfShortHoursInDay>
      <NoOfShortLeave>12</NoOfShortLeave>
      <NoOfShortLeaveInMonth>13</NoOfShortLeaveInMonth>
      <OTApplyAfterMin>14</OTApplyAfterMin>
      <OTFactorRate>20</OTFactorRate>
      <PayrollCutOffDay>15</PayrollCutOffDay>
      <PolicyId>22</PolicyId>
      <ShortNoOfHours>16</ShortNoOfHours>
    </hrmPolicyDetail>
  </HrmPolicyDetailList>
  <OrganizationId>10</OrganizationId>
  <PolicyHeaderId>11</PolicyHeaderId>
</hrmPolicyHeader>

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 'hrmPolicyHeader'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.