POST api/SaveHolidayRules

Request Information

URI Parameters

None.

Body Parameters

HolidayRules
NameDescriptionTypeAdditional information
HolidayRulesId

integer

None.

MaxTotalPeopleOff

integer

None.

MaxPeopleOff

integer

None.

HolidayYearStart

date

None.

StandardHolidayAllowance

decimal number

None.

AllowedHolidayCarryOver

decimal number

None.

HolidayNoticePeriod

integer

None.

MaximumRequestPeriod

decimal number

None.

IncludeWeekends

boolean

None.

BankHolidaysIncluded

boolean

None.

Status

integer

None.

CreatedBy

integer

None.

ModifiedBy

integer

None.

DateCreated

date

None.

DateModified

date

None.

Request Formats

application/json, text/json

Sample:
{
  "HolidayRulesId": 1,
  "MaxTotalPeopleOff": 1,
  "MaxPeopleOff": 1,
  "HolidayYearStart": "2026-11-27T11:19:18.6152242+00:00",
  "StandardHolidayAllowance": 1.0,
  "AllowedHolidayCarryOver": 1.0,
  "HolidayNoticePeriod": 1,
  "MaximumRequestPeriod": 1.0,
  "IncludeWeekends": true,
  "BankHolidaysIncluded": true,
  "Status": 5,
  "CreatedBy": 6,
  "ModifiedBy": 7,
  "DateCreated": "2026-11-27T11:19:18.6152242+00:00",
  "DateModified": "2026-11-27T11:19:18.6152242+00:00"
}

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.