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

# Update company

> Updates an existing company. Only provided fields will be updated. Set custom attribute values with `custom_attributes`. A key that is not an active company attribute returns `400 CUSTOM_ATTRIBUTE_KEY_UNKNOWN`, and a value of the wrong type returns `400 CUSTOM_ATTRIBUTE_VALUE_INVALID`.

> [!NOTE]
>
> **Required scope:** `CRM_WRITE`

## Partial update

This endpoint performs a partial update -- only the fields you include in the request body are modified. Omitted fields are left unchanged.

All fields from the create endpoint are accepted and optional.

`custom_attributes` is accepted too. Only the keys you send change.

## Custom attributes

`custom_attributes` sets the values of your [company attributes](https://help.withallo.com/en/v2/api-reference/crm/create-company-attribute.md). Create the attribute first, then use its `key` here.

| Attribute type | Accepted value |
| - | - |
| `TEXT` | A string |
| `NUMBER` | A finite JSON number. Strings are rejected. Read back as a decimal, so `180` is returned as `180.0` |
| `BOOLEAN` | A JSON boolean |
| `DATE` | `YYYY-MM-DD` or an ISO datetime. Stored as a date and returned as `YYYY-MM-DD` |
| `DROPDOWN` | An option key or label, case-insensitive. Always returned as the option key |

* Send `null` for a key to clear its value.
* Keys you leave out are not changed. `{}`, or leaving out `custom_attributes`, changes nothing.
* An unknown or archived key returns `400 CUSTOM_ATTRIBUTE_KEY_UNKNOWN`. A value of the wrong type returns `400 CUSTOM_ATTRIBUTE_VALUE_INVALID`. In both cases `param` is `custom_attributes.<key>`.
* The whole request is validated before anything is written, so a rejected request changes nothing.
* The response always includes `custom_attributes`, `{}` when the company has none. Archived attributes and empty values are left out.
* Values are also synced to your connected HubSpot and Attio. A value on an attribute that is synced from a CRM can be overwritten by the next CRM sync.
* Teams on the legacy contact model get `404 TEAM_NOT_FOUND`.

### Example

This sets `ping_pong_level` and clears `renewal_date`. Any other custom attribute is untouched.

```json theme={null}
{
  "custom_attributes": {
    "ping_pong_level": "Advanced",
    "renewal_date": null
  }
}
```

```json theme={null}
{
  "data": {
    "id": "com-xyz789",
    "name": "Acme Corp",
    "custom_attributes": {
      "ping_pong_level": "advanced"
    }
  }
}
```


## OpenAPI

````yaml PUT /v2/api/crm/companies/{id}
openapi: 3.0.3
info:
  title: Allo API
  description: >-
    Allo API provides programmatic access to your Allo account, allowing you to
    manage webhooks, retrieve calls and contacts, and send SMS messages.


    All requests to `/v1/api/**` endpoints automatically go through quota
    checking and scope validation.
  version: 1.0.0
  contact:
    name: Allo Support
servers:
  - url: https://api.withallo.com
    description: Production server
security: []
tags:
  - name: Summary Templates
    description: >-
      Manage call summary templates that control how AI-generated call summaries
      are structured for your team.
  - name: Webhooks
    description: >-
      Manage webhook endpoints to receive real-time notifications about events
      in your Allo account. Each endpoint subscribes to one or more event topics
      and is verified with a signing secret.
  - name: Calls
    description: >-
      Retrieve and search call records with filtering and pagination. Filter
      calls by your Allo phone number.
  - name: Contacts
    description: >-
      Search and retrieve contact information with sorting and pagination.
      Includes engagement level tracking.
  - name: SMS
    description: Send SMS messages to phone numbers using your Allo numbers.
  - name: Phone Numbers
    description: Retrieve information about your Allo phone numbers.
  - name: Analytics
    description: Pre-computed call metrics, team performance, and outbound dial funnel
  - name: CRM
    description: Manage people, companies, and deals in your CRM.
  - name: Notes
    description: >-
      Internal team notes on conversations and CRM people, with @mention
      support. Notes are never visible to the contact.
  - name: Threads
    description: >-
      Team discussion threads attached to a conversation item (call, SMS, or
      conversation note). One thread per item.
  - name: AI Receptionist
    description: >-
      Read and write the AI receptionist configuration of a phone line: business
      details, voice, prompt, capabilities, business hours, transfer rules,
      scheduling calendars and knowledge sources.
  - name: Inboxes
    description: >-
      Personal inboxes: saved views of one or more lines, optionally narrowed to
      phone-menu options, with their own filters and notification setting.
paths:
  /v2/api/crm/companies/{id}:
    put:
      tags:
        - CRM
      summary: Update company
      description: >-
        Updates an existing company. Only provided fields will be updated. Set
        custom attribute values with `custom_attributes`. A key that is not an
        active company attribute returns `400 CUSTOM_ATTRIBUTE_KEY_UNKNOWN`, and
        a value of the wrong type returns `400 CUSTOM_ATTRIBUTE_VALUE_INVALID`.
      operationId: updateCompany
      parameters:
        - name: id
          in: path
          required: true
          description: Company ID (e.g., "com-xyz789")
          schema:
            type: string
            example: com-xyz789
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateCompanyRequest'
            example:
              industry: SaaS
              custom_attributes:
                ping_pong_level: Advanced
      responses:
        '200':
          description: Company updated
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/CrmCompany'
        '400':
          $ref: '#/components/responses/ApiValidationError'
        '401':
          $ref: '#/components/responses/ApiUnauthorized'
        '404':
          $ref: '#/components/responses/ApiNotFound'
        '422':
          $ref: '#/components/responses/ApiValidationError'
        '429':
          $ref: '#/components/responses/ApiRateLimited'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    UpdateCompanyRequest:
      type: object
      description: >-
        Request body for updating a company. Only provided fields will be
        updated.
      properties:
        name:
          type: string
          nullable: true
          description: Company name
        website:
          type: string
          nullable: true
          description: Company website URL
        industry:
          type: string
          nullable: true
          description: Industry sector
        custom_attributes:
          type: object
          additionalProperties: true
          nullable: true
          description: >-
            Values for the company's custom attributes, keyed by attribute key.
            `TEXT` takes a string, `NUMBER` a finite JSON number (numeric
            strings are rejected), `BOOLEAN` a JSON boolean, `DATE` a
            `YYYY-MM-DD` string or ISO datetime, and `DROPDOWN` an option key or
            label (case-insensitive). Send `null` to clear a value; keys you
            omit are left untouched, and `{}` or omitting the field changes
            nothing. An unknown or archived key, or a value of the wrong type,
            rejects the whole request with `CUSTOM_ATTRIBUTE_KEY_UNKNOWN` or
            `CUSTOM_ATTRIBUTE_VALUE_INVALID`.
          example:
            ping_pong_level: Advanced
            renewal_date: '2026-12-01'
    CrmCompany:
      type: object
      description: A company in the CRM
      properties:
        id:
          type: string
          description: Unique company identifier
          example: com-xyz789
        name:
          type: string
          description: Company name
          example: Acme Corp
        website:
          type: string
          nullable: true
          description: Company website URL
          example: https://acme.com
        industry:
          type: string
          nullable: true
          description: Industry sector
          example: Technology
        person_count:
          type: integer
          description: Number of people linked to this company
          example: 3
        interactions:
          type: integer
          description: Total number of interactions across all people in this company
          example: 12
        last_activity_at:
          type: string
          format: date-time
          nullable: true
          description: Timestamp of the last activity
          example: '2026-04-28T10:30:00'
        created_at:
          type: string
          format: date-time
          description: When the company was created
          example: '2026-04-01T09:00:00'
        updated_at:
          type: string
          format: date-time
          description: When the company was last updated
          example: '2026-04-28T10:30:00'
        custom_attributes:
          type: object
          additionalProperties: true
          description: >-
            Values of the company's custom attributes, keyed by attribute key.
            Always present, `{}` when there are none. Archived attributes and
            empty values are omitted. `NUMBER` values are decimals (`180` is
            returned as `180.0`), `DATE` values are `YYYY-MM-DD` and `DROPDOWN`
            values are the option key. Create the attributes first with `POST
            /v2/api/crm/companies/attributes`.
          example:
            ping_pong_level: advanced
            renewal_date: '2026-12-01'
    ApiError:
      type: object
      properties:
        error:
          type: object
          properties:
            type:
              type: string
            code:
              type: string
            message:
              type: string
            retryable:
              type: boolean
            request_id:
              type: string
            retry_after_seconds:
              type: integer
              nullable: true
  responses:
    ApiValidationError:
      description: Invalid request parameters
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    ApiUnauthorized:
      description: Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    ApiNotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    ApiRateLimited:
      description: Rate limit exceeded
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.