---
title: "Unlinking entities"
method: POST
path: "/api/v4/{entity}/{entity_id}/unlink"
---

# Unlinking entities

`POST /api/v4/{entity}/{entity_id}/unlink`

This method allows unlinking entities from a lead, contact or company.

## Path parameters

- `entity` 'leads' | 'contacts' | 'companies', required
- `entity_id` integer, required

## Headers

- `Content-Type` string

## Request body

- object
  - `RAW_BODY` object[]
    - `to_entity_type` string — Type of entity to be unlinked (leads, contacts, companies, catalog_elements)
    - `to_entity_id` integer — ID of entity to be unlinked
    - `metadata` object
      - `catalog_id` integer — List ID
      - `updated_by` integer — The ID of the user performing the unlinking

## Response `204`

204

- object

## Other responses

- `400` — 400
- `401` — 401
- `403` — 403

---

[API](https://skmtc.net/kommo/apis/kommo-api-references.md) · [All operations](https://skmtc.net/kommo/apis/kommo-api-references/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/kommo/kommo-api-references/versions/f17af4d23c7c/schema)
