---
title: "Link and Unlink a deal with contacts and companies"
method: PATCH
path: "/crm/deals/link-unlink/{id}"
tags: ["Deals"]
---

# Link and Unlink a deal with contacts and companies

`PATCH /crm/deals/link-unlink/{id}`

## Path parameters

- `id` string, required

## Request body

- Body10
  - `linkContactIds` integer[] — Contact ids for contacts to be linked with deal
  - `unlinkContactIds` integer[] — Contact ids for contacts to be unlinked from deal
  - `linkCompanyIds` string[] — Company ids to be linked with deal
  - `unlinkCompanyIds` string[] — Company ids to be unlinked from deal

## Response `204`

Successfully linked/unlinked contacts/companies with the deal.

## Other responses

- `400` — Returned when query params are invalid or invalid data provided in request.

---

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