---
title: "Link or unlink leave policies for the employment"
method: PATCH
path: "/v2/providers/employers/employees/employments/{employmentId}/leavepolicies"
tags: ["Leave policy and employment links"]
---

# Link or unlink leave policies for the employment

`PATCH /v2/providers/employers/employees/employments/{employmentId}/leavepolicies`

__Activity name:__ <a href="https://developer.loket.nl/Activities/PatchLeavePoliciesByEmploymentId" target="_blank">PatchLeavePoliciesByEmploymentId</a>

__Metadata :__ Possible options can be acquired (GET) by adding `/metadata` to the POST URL.

This endpoint enables the user to link or unlink multiple 'linkages' with one call.

## Path parameters

- `employmentId` string, uuid, required

## Headers

- `Authorization` string, required
- `Accept` string, required

## Request body

- LinkedLeavePoliciesPatch[]
  - `id` string, uuid, required — The unique identifier (GUID/UUID) of the leave policy
  - `action` 'link' | 'unlink', required — The action to perform.

## Response `200`

OK

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `500` — Internal Server Error

---

[API](https://skmtc.net/loket/apis/loket-api.md) · [All operations](https://skmtc.net/loket/apis/loket-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/loket/loket-api/revisions/32d1693f8db8/schema)
