APICompanies
Merge a company into another
Merge source_id into the path company. Moves the source's threads, contacts, and upvotes to the survivor, fills the survivor's empty properties, then deletes the source. Merges the linked Linear customers when both exist. Requires the companies:write scope.
POST
/companies/{id}/mergecurl -X POST "https://productlane.com/api/v2/companies/{id}/merge" \
-H "Authorization: Bearer $PRODUCTLANE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"source_id": "string"
}'Authorization
AuthorizationstringheaderrequiredBearer authentication header of the form
Bearer <token>, where<token>is your auth token.
Parameters
idstringpathrequired
Body
application/json
source_idstringrequiredCompany 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
application/json
Successful response
companyobjectrequiredmoved_threadsnumberrequiredmoved_contactsnumberrequiredmerged_linear_customerbooleanrequiredTrue when both companies were linked to distinct Linear customers and Linear merged them.
{
"company": {
"id": "string",
"name": "string",
"logo_url": "string",
"domains": [
"string"
],
"size": 0,
"revenue": 0,
"status_id": "string",
"status_name": "string",
"tier_id": "string",
"tier_name": "string",
"owner": {
"id": "string",
"name": "string",
"avatar_url": "string"
},
"external_ids": [
"string"
],
"integration_ids": {
"intercom": "string",
"front": "string",
"zendesk": "string",
"hubspot": "string",
"plain": "string",
"productboard": "string",
"slack_channel": "string"
},
"created_at": "string",
"updated_at": "string"
},
"moved_threads": 0,
"moved_contacts": 0,
"merged_linear_customer": true
}