---
title: "Create or delete multiple linked employments for the leave policy"
method: PATCH
path: "/v2/providers/employers/leavepolicies/{leavePolicyId}/employments"
tags: ["Leave policy and employment links"]
---

# Create or delete multiple linked employments for the leave policy

`PATCH /v2/providers/employers/leavepolicies/{leavePolicyId}/employments`

__Activity name:__ <a href="https://developer.loket.nl/Activities/PatchEmploymentsByLeavePolicyId" target="_blank">PatchEmploymentsByLeavePolicyId</a>
This endpoint enables the user to create or delete multiple 'linkages' with one call. This is mostly useful updating a larger number of employments for the given leave policy.

## Path parameters

- `leavePolicyId` string, uuid, required

## Headers

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

## Request body

- LinkedEmploymentsPatch[]
  - `id` string, uuid, required — The unique identifier (GUID/UUID) of the employment
  - `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-acc/apis/loket-api.md) · [All operations](https://skmtc.net/loket-acc/apis/loket-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/loket-acc/loket-api/revisions/b32a42be97f7/schema)
