---
title: "Link or unlink Employee from an user."
method: PATCH
path: "/v2/providers/employers/{employerId}/users/{userId}/employee"
tags: ["Linked employee"]
---

# Link or unlink Employee from an user.

`PATCH /v2/providers/employers/{employerId}/users/{userId}/employee`

__Activity name:__ PatchEmployerUserLinkedEmployeeByEmployerIdAndUserId

This endpoint enables the user to link or unlink an employee. Leave the employeeId empty to unlink the employee from the user.

## Path parameters

- `employerId` string, uuid, required
- `userId` string, uuid, required

## Headers

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

## 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)
