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

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# 批量更新联系人

> 批量更新联系人。

> [!NOTE]
>
> **第一次用？** 把任意 MCP 客户端指向 `https://mcp.aisa.one/mcp` —— Claude Code、
> Codex、Cursor、VS Code 都可以。鉴权走 OAuth：客户端打开浏览器，你点一次
> Allow，不需要粘贴任何 key。之后智能体通过几个元工具调用所有端点：
> `search`、`list_categories`、`get_details` 和 `batch_quote` 免费，`batch_use`
> 按次计费。各客户端的接入步骤见[通过 MCP 连接](https://aisa.one/docs/zh/agent-quickstart.md)；实时工具列表和
> 每次调用的价格见 [aisa.one/zh-cn/mcp](https://aisa.one/zh-cn/mcp#connect)。

[在你的 agent 里把这个端点跑起来 →](https://aisa.one/mcp?from=/zh/api-reference/apollo/post_apollo-contacts-bulk-update)

## 请求规范

* **方法与路径:** POST /apis/v1/apollo/contacts/bulk\_update
* **可用状态:** enabled
* **请求 URL 模板:** `https://api.aisa.one/apis/v1/apollo/contacts/bulk_update`

[完整 OpenAPI 定义](https://aisa.one/docs/openapi/zh/apollo.json)

有效请求声明（包括认证和引用的 schema）：

```json theme={null}
{
  "operationId": "post_apollo_contacts_bulk_update",
  "method": "POST",
  "path": "/apis/v1/apollo/contacts/bulk_update",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "schema": {
          "anyOf": [
            {
              "required": [
                "contact_ids"
              ]
            },
            {
              "required": [
                "contact_attributes"
              ]
            }
          ],
          "properties": {
            "account_id": {
              "description": "When using contact_ids, apply this account ID to all contacts",
              "example": "63f53afe4ceeca00016bdd2f",
              "type": "string"
            },
            "async": {
              "description": "Force asynchronous processing. Automatically enabled for >100 contacts.",
              "example": false,
              "type": "boolean"
            },
            "contact_attributes": {
              "description": "Array of contact objects with individual updates. Use this for applying different updates to each contact.",
              "items": {
                "properties": {
                  "account_id": {
                    "description": "The Apollo account ID to associate with the contact",
                    "example": "63f53afe4ceeca00016bdd2f",
                    "type": "string"
                  },
                  "email": {
                    "description": "The contact's email address",
                    "example": "john.doe@example.com",
                    "type": "string"
                  },
                  "first_name": {
                    "description": "The contact's first name",
                    "example": "John",
                    "type": "string"
                  },
                  "id": {
                    "description": "The contact ID to update",
                    "example": "66e34b81740c50074e3d1bd4",
                    "type": "string"
                  },
                  "last_name": {
                    "description": "The contact's last name",
                    "example": "Doe",
                    "type": "string"
                  },
                  "linkedin_url": {
                    "description": "The contact's LinkedIn profile URL",
                    "example": "https://www.linkedin.com/in/john-doe-3f9a7c21",
                    "type": "string"
                  },
                  "organization_name": {
                    "description": "The contact's organization name",
                    "example": "Example Corp",
                    "type": "string"
                  },
                  "owner_id": {
                    "description": "The Apollo user ID to assign as owner",
                    "example": "66302798d03b9601c7934ebf",
                    "type": "string"
                  },
                  "present_raw_address": {
                    "description": "The contact's location",
                    "example": "San Francisco, CA",
                    "type": "string"
                  },
                  "title": {
                    "description": "The contact's job title",
                    "example": "Senior Manager",
                    "type": "string"
                  },
                  "typed_custom_fields": {
                    "additionalProperties": {
                      "type": "string"
                    },
                    "description": "Custom field values as key-value pairs",
                    "example": {
                      "60c39ed82bd02f01154c470a": "2025-08-07"
                    },
                    "type": "object"
                  }
                },
                "required": [
                  "id"
                ],
                "type": "object"
              },
              "type": "array"
            },
            "contact_ids": {
              "description": "Array of contact IDs to update with the same values. Use this for applying the same updates to multiple contacts.",
              "example": [
                "66e34b81740c50074e3d1bd4",
                "66e370fbf5f5c003f0e1d0cf"
              ],
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "email": {
              "description": "When using contact_ids, apply this email to all contacts",
              "example": "updated@example.com",
              "type": "string"
            },
            "first_name": {
              "description": "When using contact_ids, apply this first name to all contacts",
              "example": "Updated",
              "type": "string"
            },
            "last_name": {
              "description": "When using contact_ids, apply this last name to all contacts",
              "example": "Name",
              "type": "string"
            },
            "linkedin_url": {
              "description": "When using contact_ids, apply this LinkedIn URL to all contacts",
              "example": "https://www.linkedin.com/in/updated",
              "type": "string"
            },
            "organization_name": {
              "description": "When using contact_ids, apply this organization name to all contacts",
              "example": "Updated Corp",
              "type": "string"
            },
            "owner_id": {
              "description": "When using contact_ids, apply this owner to all contacts",
              "example": "66302798d03b9601c7934ebf",
              "type": "string"
            },
            "present_raw_address": {
              "description": "When using contact_ids, apply this address to all contacts",
              "example": "New York, NY",
              "type": "string"
            },
            "title": {
              "description": "When using contact_ids, apply this title to all contacts",
              "example": "Updated Title",
              "type": "string"
            },
            "typed_custom_fields": {
              "additionalProperties": {
                "type": "string"
              },
              "description": "When using contact_ids, apply these custom fields to all contacts",
              "example": {
                "60c39ed82bd02f01154c470a": "2025-08-07"
              },
              "type": "object"
            },
            "visible_entity_ids": {
              "description": "Specific contact IDs to return in the response (for performance)",
              "example": [
                "66e34b81740c50074e3d1bd4"
              ],
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          "type": "object"
        }
      }
    },
    "required": true
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## 费用与请求规则

公开参考价格：每次成功请求 \$0.012 USD。 账户适用价格可能不同；支持报价的接口可按实际请求获取报价。


## OpenAPI

````yaml openapi/zh/apollo.json POST /apis/v1/apollo/contacts/bulk_update
openapi: 3.1.0
info:
  description: ''
  title: Apollo
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    apollo:
      description: ''
      title: Apollo
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 9ab7612cf2d53be794cbf1d65d4a257f986ac6783e53c7c3a5d868e4593061c3
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/apollo/account_stages
    - /apis/v1/apollo/accounts
    - /apis/v1/apollo/accounts/bulk_create
    - /apis/v1/apollo/accounts/bulk_update
    - /apis/v1/apollo/accounts/search
    - /apis/v1/apollo/accounts/update_owners
    - /apis/v1/apollo/accounts/{account_id}
    - /apis/v1/apollo/accounts/{id}
    - /apis/v1/apollo/contact_stages
    - /apis/v1/apollo/contacts
    - /apis/v1/apollo/contacts/bulk_create
    - /apis/v1/apollo/contacts/bulk_update
    - /apis/v1/apollo/contacts/search
    - /apis/v1/apollo/contacts/update_owners
    - /apis/v1/apollo/contacts/update_stages
    - /apis/v1/apollo/contacts/{contact_id}
    - /apis/v1/apollo/email_accounts
    - /apis/v1/apollo/emailer_campaigns/remove_or_stop_contact_ids
    - /apis/v1/apollo/emailer_campaigns/search
    - /apis/v1/apollo/emailer_campaigns/{sequence_id}/abort
    - /apis/v1/apollo/emailer_campaigns/{sequence_id}/add_contact_ids
    - /apis/v1/apollo/emailer_campaigns/{sequence_id}/approve
    - /apis/v1/apollo/emailer_campaigns/{sequence_id}/archive
    - /apis/v1/apollo/emailer_messages/search
    - /apis/v1/apollo/emailer_messages/{id}/activities
    - /apis/v1/apollo/fields
    - /apis/v1/apollo/labels
    - /apis/v1/apollo/mixed_companies/search
    - /apis/v1/apollo/mixed_people/api_search
    - /apis/v1/apollo/news_articles/search
    - /apis/v1/apollo/notes
    - /apis/v1/apollo/opportunities
    - /apis/v1/apollo/opportunities/search
    - /apis/v1/apollo/opportunities/{opportunity_id}
    - /apis/v1/apollo/opportunity_stages
    - /apis/v1/apollo/organizations/bulk_enrich
    - /apis/v1/apollo/organizations/enrich
    - /apis/v1/apollo/organizations/{id}
    - /apis/v1/apollo/organizations/{organization_id}/job_postings
    - /apis/v1/apollo/people/bulk_match
    - /apis/v1/apollo/people/match
    - /apis/v1/apollo/phone_calls
    - /apis/v1/apollo/phone_calls/search
    - /apis/v1/apollo/phone_calls/{id}
    - /apis/v1/apollo/reports/sync_report
    - /apis/v1/apollo/tasks
    - /apis/v1/apollo/tasks/bulk_create
    - /apis/v1/apollo/tasks/search
    - /apis/v1/apollo/typed_custom_fields
    - /apis/v1/apollo/usage_stats/api_usage_stats
    - /apis/v1/apollo/users/search
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:cadc6c94ad9ee45934c75643991b1373378c2edbf1eb13bebd3f0f5019762f72
    facts_hash: 9ab7612cf2d53be794cbf1d65d4a257f986ac6783e53c7c3a5d868e4593061c3
    generator_version: '3'
    identity_base_document_hash: sha256:25cc6bf335978cfe70694f2688fff160a70228967dd3c543257ec629bcb08bcc
    identity_compatibility_hash: sha256:3bc28cb12b6a6f37411c3d96a19e68e7ef629e36d32c2e39fa51f0c423aa0fa2
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: apollo
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/apollo/contacts/bulk_update:
    post:
      tags:
        - default
      summary: 批量更新联系人
      description: >-
        Update several contacts in one call, each identified by its Apollo id.
        Partial success is normal. Writes land in the AIsa workspace, which
        every caller shares: the record becomes visible and editable by others,
        and there is no per-caller isolation.


        Bulk update contacts. Requires a master API key.
      operationId: post_apollo_contacts_bulk_update
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
                - required:
                    - contact_ids
                - required:
                    - contact_attributes
              properties:
                account_id:
                  description: >-
                    When using contact_ids, apply this account ID to all
                    contacts
                  example: 63f53afe4ceeca00016bdd2f
                  type: string
                async:
                  description: >-
                    Force asynchronous processing. Automatically enabled for
                    >100 contacts.
                  example: false
                  type: boolean
                contact_attributes:
                  description: >-
                    Array of contact objects with individual updates. Use this
                    for applying different updates to each contact.
                  items:
                    properties:
                      account_id:
                        description: The Apollo account ID to associate with the contact
                        example: 63f53afe4ceeca00016bdd2f
                        type: string
                      email:
                        description: The contact's email address
                        example: john.doe@example.com
                        type: string
                      first_name:
                        description: The contact's first name
                        example: John
                        type: string
                      id:
                        description: The contact ID to update
                        example: 66e34b81740c50074e3d1bd4
                        type: string
                      last_name:
                        description: The contact's last name
                        example: Doe
                        type: string
                      linkedin_url:
                        description: The contact's LinkedIn profile URL
                        example: https://www.linkedin.com/in/john-doe-3f9a7c21
                        type: string
                      organization_name:
                        description: The contact's organization name
                        example: Example Corp
                        type: string
                      owner_id:
                        description: The Apollo user ID to assign as owner
                        example: 66302798d03b9601c7934ebf
                        type: string
                      present_raw_address:
                        description: The contact's location
                        example: San Francisco, CA
                        type: string
                      title:
                        description: The contact's job title
                        example: Senior Manager
                        type: string
                      typed_custom_fields:
                        additionalProperties:
                          type: string
                        description: Custom field values as key-value pairs
                        example:
                          60c39ed82bd02f01154c470a: '2025-08-07'
                        type: object
                    required:
                      - id
                    type: object
                  type: array
                contact_ids:
                  description: >-
                    Array of contact IDs to update with the same values. Use
                    this for applying the same updates to multiple contacts.
                  example:
                    - 66e34b81740c50074e3d1bd4
                    - 66e370fbf5f5c003f0e1d0cf
                  items:
                    type: string
                  type: array
                email:
                  description: When using contact_ids, apply this email to all contacts
                  example: updated@example.com
                  type: string
                first_name:
                  description: >-
                    When using contact_ids, apply this first name to all
                    contacts
                  example: Updated
                  type: string
                last_name:
                  description: When using contact_ids, apply this last name to all contacts
                  example: Name
                  type: string
                linkedin_url:
                  description: >-
                    When using contact_ids, apply this LinkedIn URL to all
                    contacts
                  example: https://www.linkedin.com/in/updated
                  type: string
                organization_name:
                  description: >-
                    When using contact_ids, apply this organization name to all
                    contacts
                  example: Updated Corp
                  type: string
                owner_id:
                  description: When using contact_ids, apply this owner to all contacts
                  example: 66302798d03b9601c7934ebf
                  type: string
                present_raw_address:
                  description: When using contact_ids, apply this address to all contacts
                  example: New York, NY
                  type: string
                title:
                  description: When using contact_ids, apply this title to all contacts
                  example: Updated Title
                  type: string
                typed_custom_fields:
                  additionalProperties:
                    type: string
                  description: >-
                    When using contact_ids, apply these custom fields to all
                    contacts
                  example:
                    60c39ed82bd02f01154c470a: '2025-08-07'
                  type: object
                visible_entity_ids:
                  description: >-
                    Specific contact IDs to return in the response (for
                    performance)
                  example:
                    - 66e34b81740c50074e3d1bd4
                  items:
                    type: string
                  type: array
              type: object
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                properties:
                  contacts:
                    description: 已更新的联系人
                    type: string
                  contacts[].account_id:
                    description: 账户 ID
                    type: string
                  contacts[].email:
                    description: 电子邮件
                    type: string
                  contacts[].first_name:
                    description: 名字
                    type: string
                  contacts[].id:
                    description: 联系人 ID
                    type: string
                  contacts[].last_name:
                    description: 姓氏
                    type: string
                  contacts[].linkedin_url:
                    description: LinkedIn URL
                    type: string
                  contacts[].organization_name:
                    description: 组织名称
                    type: string
                  contacts[].owner_id:
                    description: 所有者 ID
                    type: string
                  contacts[].present_raw_address:
                    description: 原始地址
                    type: string
                  contacts[].title:
                    description: 标题
                    type: string
                  contacts[].updated_at:
                    description: 更新时间戳
                    type: string
                type: object
          description: 成功响应
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

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