{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/peoplehr/main/json-schema/peoplehr-post-holidayentitlements-request-schema.json",
  "title": "PostHolidayentitlementsRequest",
  "x-generated": "2026-10-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/peoplehr-openapi-generated.yml#/components/schemas/PostHolidayentitlementsRequest",
  "type": "object",
  "properties": {
    "APIKey": {
      "type": "string",
      "description": "API key for the HolidayEntitlements schema"
    },
    "Action": {
      "type": "string",
      "description": "One of the documented actions (e.g., GetHolidayEntitlement, GetAllHolidayEntitlement, GetNextYearHolidayEntitlement, UpdateHolidayEntitlement, UpdateNextYearHolidayEntitlement)"
    },
    "EmployeeId": {
      "type": "string",
      "description": "Employee identifier (required for actions that need it)"
    },
    "StartDate": {
      "type": "string",
      "description": "Start date filter (used by GetHolidayEntitlement and GetAllHolidayEntitlement)"
    },
    "EndDate": {
      "type": "string",
      "description": "End date filter (used by GetHolidayEntitlement and GetAllHolidayEntitlement)"
    },
    "EntitlementThisYear": {
      "type": "string",
      "description": "New entitlement value for the current year (used by UpdateHolidayEntitlement)"
    },
    "EntitlementNextYear": {
      "type": "string",
      "description": "New entitlement value for next year (used by UpdateNextYearHolidayEntitlement)"
    },
    "ReasonForChange": {
      "type": "string",
      "description": "Reason for the entitlement change (required for update actions)"
    }
  },
  "required": [
    "APIKey",
    "Action"
  ]
}