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

# 更新联系人

> 更新现有联系人的字段。



## OpenAPI

````yaml openapi/zh/apollo.json PATCH /apollo/contacts/{contact_id}
openapi: 3.0.3
info:
  title: Apollo API
  version: 1.0.0
  description: 通过 AIsa 统一网关公开的 Apollo API 端点。
servers:
  - url: https://api.aisa.one/apis/v1
security:
  - BearerAuth: []
paths:
  /apollo/contacts/{contact_id}:
    patch:
      summary: 更新联系人
      description: 更新现有联系人的字段。需要主 API 密钥。
      operationId: patch_apollo_contacts_contact_id
      parameters:
        - name: contact_id
          in: path
          required: true
          schema:
            type: string
          description: 联系人 ID
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                first_name:
                  type: string
                  description: 名字
                last_name:
                  type: string
                  description: 姓氏
                organization_name:
                  type: string
                  description: 组织名称
                title:
                  type: string
                  description: 标题
                account_id:
                  type: string
                  description: 账户 ID
                email:
                  type: string
                  description: 电子邮件
                website_url:
                  type: string
                  description: 网站 URL
                label_names:
                  type: string
                  description: 要为联系人设置的标签
                contact_stage_id:
                  type: string
                  description: 联系人阶段 ID
                present_raw_address:
                  type: string
                  description: 原始地址
                direct_phone:
                  type: string
                  description: 直拨电话
                corporate_phone:
                  type: string
                  description: 公司电话
                mobile_phone:
                  type: string
                  description: 手机号码
                home_phone:
                  type: string
                  description: 家庭电话
                other_phone:
                  type: string
                  description: 其他电话
                typed_custom_fields:
                  type: object
                  description: 类型化自定义字段对象
      responses:
        '200':
          description: 成功响应
          content:
            application/json:
              schema:
                type: object
                properties:
                  contact:
                    type: object
                    description: 已更新的联系人
                  contact.id:
                    type: string
                    description: 联系人 ID
                  contact.first_name:
                    type: string
                    description: 名字
                  contact.last_name:
                    type: string
                    description: 姓氏
                  contact.email:
                    type: string
                    description: 电子邮件
                  contact.title:
                    type: string
                    description: 标题
                  contact.organization_name:
                    type: string
                    description: 组织名称
                  contact.owner_id:
                    type: string
                    description: 所有者 ID
                  contact.account_id:
                    type: string
                    description: 账户 ID
                  contact.present_raw_address:
                    type: string
                    description: 原始地址
        '400':
          description: 错误请求
        '401':
          description: 未授权
        '429':
          description: 超出速率限制
        '500':
          description: 内部服务器错误
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````