> ## 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 POST /apollo/accounts/bulk_update
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/accounts/bulk_update:
    post:
      summary: 批量更新账户
      description: 批量更新账户。需要主 API 密钥。
      operationId: post_apollo_accounts_bulk_update
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                account_ids:
                  type: string
                  description: 要更新的账户 ID
                account_attributes:
                  type: string
                  description: 账户属性更新对象列表
                account_attributes[].name:
                  type: string
                  description: 账户名称
                account_attributes[].owner_id:
                  type: string
                  description: 所有者 ID
                account_attributes[].account_stage_id:
                  type: string
                  description: 账户阶段 ID
                async:
                  type: boolean
                  description: 异步运行。默认为 false。
              required:
                - account_ids
                - account_attributes
      responses:
        '200':
          description: 成功响应
          content:
            application/json:
              schema:
                type: object
                properties:
                  accounts:
                    type: string
                    description: 已更新的账户
                  accounts[].id:
                    type: string
                    description: 账户 ID
                  accounts[].account_stage_id:
                    type: string
                    description: 账户阶段 ID
        '400':
          description: 错误请求
        '401':
          description: 未授权
        '429':
          description: 超出速率限制
        '500':
          description: 内部服务器错误
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer

````