> ## 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 attribute

> Partially updates an attribute: only the fields you send change. `key` and `type` cannot be changed. Attributes synced from a CRM integration only accept `prompt`, `should_prompt_override` and `is_visible`.

<Note>
  **Required scope:** `CRM_WRITE`
</Note>

This endpoint performs a partial update. Only the fields you send are modified. `key` and `type` cannot be changed.

## Body fields

| Field | Type | Description |
| - | - | - |
| `label` | string | New display name |
| `options` | array | Replaces the full option list with `{ label, key? }` objects. `DROPDOWN` attributes only |
| `prompt` | string | Instruction for the AI CRM Manager. A blank value clears it |
| `should_prompt_override` | boolean | Whether the AI may overwrite a value that is already set |
| `is_visible` | boolean | Show or hide the attribute in the Allo apps |

## Renaming options

Option keys stay stable. To rename an option, send its current `key` with the new `label`. An option sent without a matching `key` is treated as new and gets a key derived from its label. Options missing from the list are removed.

## Attributes synced from a CRM

An attribute whose `source` is not `allo` is managed by your CRM integration. Only `prompt`, `should_prompt_override` and `is_visible` can be changed. Sending `label` or `options` returns `409 ATTRIBUTE_MANAGED_BY_INTEGRATION`.

## Response

Returns `200` with the updated attribute, in the same shape as [List company attributes](/en/v2/api-reference/crm/list-company-attributes).

## Errors

| Status | Code | When |
| - | - | - |
| `400` | `ATTRIBUTE_LABEL_INVALID` | `label` is blank, longer than 255 characters, or has no letter or digit |
| `400` | `ATTRIBUTE_OPTION_INVALID` | `options` is empty, or an option label is blank, longer than 255 characters or duplicated |
| `400` | `ATTRIBUTE_OPTIONS_NOT_SUPPORTED` | `options` sent for an attribute that is not `DROPDOWN` |
| `403` | `API_KEY_INSUFFICIENT_SCOPE` | The key does not hold `CRM_WRITE` |
| `404` | `TEAM_NOT_FOUND` | The workspace is not on the new contact model |
| `404` | `ATTRIBUTE_NOT_FOUND` | No attribute with this key |
| `409` | `ATTRIBUTE_MANAGED_BY_INTEGRATION` | `label` or `options` sent for an attribute managed by a CRM integration |
| `409` | `ATTRIBUTE_CONCURRENT_MODIFICATION` | Attributes were modified at the same time. Retry the request |


## OpenAPI

````yaml PATCH /v2/api/crm/companies/attributes/{key}
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.
paths:
  /v2/api/crm/companies/attributes/{key}:
    patch:
      tags:
        - CRM
      summary: Update custom company attribute
      description: >-
        Partially updates an attribute: only the fields you send change. `key`
        and `type` cannot be changed. Attributes synced from a CRM integration
        only accept `prompt`, `should_prompt_override` and `is_visible`.
      operationId: updateCompanyAttribute
      parameters:
        - name: key
          in: path
          required: true
          description: Attribute key, as returned by the list endpoint
          schema:
            type: string
            example: industry_segment
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateCompanyAttributeRequest'
            example:
              label: Segment
              is_visible: false
      responses:
        '200':
          description: The updated attribute
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/CompanyAttribute'
              example:
                data:
                  key: industry_segment
                  label: Industry segment
                  type: DROPDOWN
                  options:
                    - key: smb
                      label: SMB
                    - key: enterprise
                      label: Enterprise
                  is_visible: true
                  prompt: >-
                    Pick the segment that matches the company size mentioned on
                    the call.
                  should_prompt_override: false
                  source: allo
                  created_at: '2026-10-07T14:21:08'
                  updated_at: '2026-10-07T14:21:08'
        '400':
          $ref: '#/components/responses/ApiValidationError'
        '401':
          $ref: '#/components/responses/ApiUnauthorized'
        '403':
          $ref: '#/components/responses/ApiForbidden'
        '404':
          $ref: '#/components/responses/ApiNotFound'
        '409':
          $ref: '#/components/responses/ApiConflict'
        '429':
          $ref: '#/components/responses/ApiRateLimited'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    UpdateCompanyAttributeRequest:
      type: object
      description: All fields are optional
      properties:
        label:
          type: string
          description: New display name
        options:
          type: array
          description: >-
            Replaces the full option list. `DROPDOWN` attributes only. Send an
            option's current `key` to keep it when renaming its label.
          items:
            $ref: '#/components/schemas/CompanyAttributeOptionInput'
        prompt:
          type: string
          nullable: true
          description: >-
            Instruction the AI CRM Manager follows to fill this attribute from
            calls. A blank value clears it.
          example: >-
            Pick the segment that matches the company size mentioned on the
            call.
        should_prompt_override:
          type: boolean
          description: Whether the AI may overwrite a value that is already set
        is_visible:
          type: boolean
          description: Show or hide the attribute in the Allo apps
    CompanyAttribute:
      type: object
      description: A custom attribute on companies
      properties:
        key:
          type: string
          description: Unique key within your team
          example: industry_segment
        label:
          type: string
          nullable: true
          description: Display name
          example: Industry segment
        type:
          type: string
          nullable: true
          enum:
            - TEXT
            - NUMBER
            - DATE
            - BOOLEAN
            - DROPDOWN
          example: DROPDOWN
        options:
          type: array
          nullable: true
          description: Allowed values. Only set for `DROPDOWN` attributes.
          items:
            $ref: '#/components/schemas/CompanyAttributeOption'
        is_visible:
          type: boolean
          description: Whether the attribute is shown in the Allo apps
        prompt:
          type: string
          nullable: true
          description: >-
            Instruction the AI CRM Manager follows to fill this attribute from
            calls. A blank value clears it.
          example: >-
            Pick the segment that matches the company size mentioned on the
            call.
        should_prompt_override:
          type: boolean
          description: Whether the AI may overwrite a value that is already set
          nullable: true
        source:
          type: string
          description: >-
            `allo` for attributes created in Allo or with the API, otherwise the
            lowercase name of the integration that manages it, such as `hubspot`
          example: allo
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
    CompanyAttributeOptionInput:
      type: object
      required:
        - label
      properties:
        label:
          type: string
          description: Display name of the option
          example: Enterprise
        key:
          type: string
          description: >-
            Existing option key. Send it when editing an attribute to keep the
            option's key stable while its label changes. Keys that do not match
            an existing option are ignored and a key is derived from the label.
          example: enterprise
    CompanyAttributeOption:
      type: object
      properties:
        key:
          type: string
          example: enterprise
        label:
          type: string
          example: Enterprise
    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'
    ApiForbidden:
      description: API key lacks the required scope or access to the resource
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    ApiNotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ApiError'
    ApiConflict:
      description: Conflict with existing resource
      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.