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 URLhttps://api.loket.nl
- URLhttps://api.loket.nl/v2/providers/employers/leavePolicies/{leavePolicyId}
- Authnone 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
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.