> ## Documentation Index
> Fetch the complete documentation index at: https://docs.enginy.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Update companies

> Update existing companies in your CRM

<Card title="Your Implementation Required" icon="triangle-exclamation" color="#f59e0b">
  This endpoint must be implemented on **your server**
</Card>

Enginy calls this endpoint to update companies that were previously synced. This includes regular field updates and engagement field updates.

## Request

<ParamField body="companies" type="array" required>
  Array of company objects to update
</ParamField>

### Company Object

<ParamField body="crmId" type="string" required>
  Your CRM's ID for this company (from previous sync)
</ParamField>

<ParamField body="name" type="string">
  Updated company name
</ParamField>

<ParamField body="employeeCount" type="number">
  Updated employee count
</ParamField>

<ParamField body="[engagement fields]" type="string">
  Campaign engagement fields (user-configurable names)
</ParamField>

<RequestExample>
  ```json theme={null}
  {
    "companies": [
      {
        "crmId": "account_4k8j2m",
        "name": "Acme Corporation (Rebranded)",
        "employeeCount": 750,
        "genesy_engagement_status": "Message Replied",
        "genesy_last_activity": "2024-12-31T10:00:00Z"
      }
    ]
  }
  ```
</RequestExample>

## Response

<ResponseField name="results" type="array" required>
  Array of update results
</ResponseField>

<ResponseField name="results[].crmId" type="string" required>
  The company's CRM ID
</ResponseField>

<ResponseField name="results[].success" type="boolean" required>
  Whether the update succeeded
</ResponseField>

<ResponseExample>
  ```json theme={null}
  {
    "results": [
      {
        "crmId": "account_4k8j2m",
        "success": true
      }
    ]
  }
  ```
</ResponseExample>

<Info>Field names are user-configurable. Your CRM should store **any** field, not just known ones.</Info>
