Skip to main content
POST
/
companies
/
{id}
/
merge
Merge a company into another
curl --request POST \
  --url https://productlane.com/api/v2/companies/{id}/merge \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "source_id": "<string>"
}
'
{
  "company": {
    "id": "<string>",
    "name": "<string>",
    "logo_url": "<string>",
    "domains": [
      "<string>"
    ],
    "size": 123,
    "revenue": 123,
    "status_id": "<string>",
    "status_name": "<string>",
    "tier_id": "<string>",
    "tier_name": "<string>",
    "owner": {
      "id": "<string>",
      "name": "<string>",
      "avatar_url": "<string>"
    },
    "external_ids": [
      "<string>"
    ],
    "created_at": "<string>",
    "updated_at": "<string>"
  },
  "moved_threads": 123,
  "moved_contacts": 123,
  "merged_linear_customer": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json
source_id
string
required

Company merged into the path company and then deleted. Its threads, contacts, and upvotes move to the survivor; the survivor's own values win on conflicts.

Response

Successful response

company
object
required
moved_threads
number
required
moved_contacts
number
required
merged_linear_customer
boolean
required

True when both companies were linked to distinct Linear customers and Linear merged them.