Leave policy

Edit the details of a leave policy

Activity name : <a href="https://developer.loket.nl/Activities/PutLeavePolicyByLeavePolicyId" target="_blank">PutLeavePolicyByLeavePolicyId</a>

Edit the details of a leave policy

put/v2/providers/employers/leavePolicies/{leavePolicyId}

Request

  • Base URL
    https://api.loket.nl
  • URL
    https://api.loket.nl/v2/providers/employers/leavePolicies/{leavePolicyId}
  • Auth
    none required

Path parameters

leavePolicyIdstring uuid required

The unique identifier of the leave policy

Headers

Authorizationstring required
Example:Bearer <TOKEN>

A valid Bearer token for authorizing the request.

Acceptstring required
Example:application/json;version=2018-01-01

The accept header is used to influence what type of output is returned and in most cases the version of the output

Request body

idstring uuid

The unique identifier of an object (GUID/UUID)

namestring

The name of the leave policy

dayOfTheMonthToPerformAutomaticLeaveCalculationOninteger nullable

They day of the month on which the automatic accrual of (yearly or monthly) leave is performed. The yearly calculation is repeated every month to encompase any changes made that have affect on the past. If for example 31 is chosen and a specific month does not have that day the logic will pick the first available date of said month.

payoutLeaveImmediatelyboolean

If leave accrualType is set to based on hours worked (uren) then this field allows for the leave hours to be paid out directly instead of being accrued.

Example request

{
  "id": "b14acd0d-75d7-4fc8-8b22-4a3924585cab",
  "name": "Normal leave",
  "leaveUnitType": {
    "key": 1,
    "value": "Uren"
  },
  "roundTo": {
    "key": 1,
    "value": "0.01"
  },
  "roundingMethod": {
    "key": 1,
    "value": "Logical"
  },
  "accrualType": {
    "key": 1,
    "value": "Jaar"
  },
  "dayOfTheMonthToPerformAutomaticLeaveCalculationOn": 12,
  "leaveEntitlement": {
    "statutory": 160,
    "excessLeaveToStatutory": 40,
    "wtr": 40
  },
  "leaveRequest": {
    "leavePattern": {
      "oddWeeks": {
        "monday": 8,
        "tuesday": 8,
        "wednesday": 4,
        "thursday": 7.5,
        "friday": 4
      },
      "evenWeeks": {
        "tuesday": 8,
        "wednesday": 8,
        "thursday": 8,
        "friday": 2
      }
    }
  },
  "additionalLeave": {
    "allocationType": {
      "key": 1,
      "value": "Boek alleen hoogste waarde"
    },
    "referenceDate1": {
      "month": {
        "key": 1,
        "value": "Januari"
      },
      "day": 40
    },
    "referenceDate2": {
      "month": {
        "key": 1,
        "value": "Januari"
      },
      "day": 40
    }
  }
}

Response

OK

Example response

{
  "version": {
    "resourceVersion": "2018-12-31"
  },
  "messages": [
    {
      "type": "Warning",
      "description": "<some warning>",
      "id": "904d6856-6034-4624-bcbc-886188c115c5",
      "code": 12
    }
  ],
  "content": {
    "id": "b14acd0d-75d7-4fc8-8b22-4a3924585cab",
    "name": "Normal leave",
    "leaveUnitType": {
      "key": 1,
      "value": "Uren"
    },
    "roundTo": {
      "key": 1,
      "value": "0.01"
    },
    "roundingMethod": {
      "key": 1,
      "value": "Logical"
    },
    "accrualType": {
      "key": 1,
      "value": "Jaar"
    },
    "dayOfTheMonthToPerformAutomaticLeaveCalculationOn": 12,
    "leaveEntitlement": {
      "statutory": 160,
      "excessLeaveToStatutory": 40,
      "wtr": 40
    },
    "leaveRequest": {
      "leavePattern": {
        "oddWeeks": {
          "monday": 8,
          "tuesday": 8,
          "wednesday": 4,
          "thursday": 7.5,
          "friday": 4
        },
        "evenWeeks": {
          "tuesday": 8,
          "wednesday": 8,
          "thursday": 8,
          "friday": 2
        }
      }
    },
    "additionalLeave": {
      "allocationType": {
        "key": 1,
        "value": "Boek alleen hoogste waarde"
      },
      "referenceDate1": {
        "month": {
          "key": 1,
          "value": "Januari"
        },
        "day": 40
      },
      "referenceDate2": {
        "month": {
          "key": 1,
          "value": "Januari"
        },
        "day": 40
      }
    }
  }
}

Changes

No recorded changes to this operation across all 6 revisions of this API.