---
title: "Link and Unlink company with contacts and deals"
method: PATCH
path: "/companies/link-unlink/{id}"
tags: ["Companies"]
---

# Link and Unlink company with contacts and deals

`PATCH /companies/link-unlink/{id}`

## Path parameters

- `id` string, required

## Request body

- Body7
  - `linkContactIds` integer[] — Contact ids for contacts to be linked with company
  - `unlinkContactIds` integer[] — Contact ids for contacts to be unlinked from company
  - `linkDealsIds` string[] — Deals ids for deals to be linked with company
  - `unlinkDealsIds` string[] — Deals ids for deals to be unlinked from company

## Response `204`

Returns list of company attributes

## Other responses

- `400` — Returned when query params are invalid

---

[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/revisions/2aec3cf66501/schema)
