Companies
Attach a contact to a company
Attaches a contact (customer) to a company.
Adds the company to the contact's companyIds array and embedded companies array.
This operation is additive - existing company associations are preserved.
Also increments the linkedUsers count on the company.
Path Parameters
id- The Featurebase internal ID of the company (MongoDB ObjectId)
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
contactId | string | Yes | The Featurebase internal ID of the contact to attach (MongoDB ObjectId) |
Example Request
{
"contactId": "507f1f77bcf86cd799439012"
}Response
Returns the updated contact object with the new company association.
Example Response
{
"object": "contact",
"id": "507f1f77bcf86cd799439012",
"userId": "usr_12345",
"email": "john@acme.com",
"name": "John Doe",
"type": "customer",
"companies": [
{
"object": "company",
"id": "507f1f77bcf86cd799439011",
"companyId": "comp_12345",
"name": "Acme Inc"
}
]
}Error Responses
- 404 Not Found - Company or contact does not exist
Version Availability
This endpoint is only available in API version 2026-01-01.nova and newer.