批量更新账户
curl --request POST \
--url https://api.aisa.one/apis/v1/apollo/accounts/bulk_update \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.aisa.one/apis/v1/apollo/accounts/bulk_update"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.aisa.one/apis/v1/apollo/accounts/bulk_update', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/apollo/accounts/bulk_update",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/apollo/accounts/bulk_update"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/apollo/accounts/bulk_update")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/apollo/accounts/bulk_update")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body{
"accounts": "<string>",
"accounts[].account_stage_id": "<string>",
"accounts[].id": "<string>"
}账户
批量更新账户
批量更新账户。
POST
https://api.aisa.one
/
apis
/
v1
/
apollo
/
accounts
/
bulk_update
批量更新账户
curl --request POST \
--url https://api.aisa.one/apis/v1/apollo/accounts/bulk_update \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'import requests
url = "https://api.aisa.one/apis/v1/apollo/accounts/bulk_update"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.aisa.one/apis/v1/apollo/accounts/bulk_update', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/apollo/accounts/bulk_update",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/apollo/accounts/bulk_update"
payload := strings.NewReader("{}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/apollo/accounts/bulk_update")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/apollo/accounts/bulk_update")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{}"
response = http.request(request)
puts response.read_body{
"accounts": "<string>",
"accounts[].account_stage_id": "<string>",
"accounts[].id": "<string>"
}第一次用? 把任意 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 连接;实时工具列表和
每次调用的价格见 aisa.one/zh-cn/mcp。请求规范
- 方法与路径: POST /apis/v1/apollo/accounts/bulk_update
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/apollo/accounts/bulk_update
{
"operationId": "post_apollo_accounts_bulk_update",
"method": "POST",
"path": "/apis/v1/apollo/accounts/bulk_update",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"properties": {
"account_attributes": {
"description": "Array of account objects with individual updates. Use this for applying different updates to each account.",
"items": {
"properties": {
"account_stage_id": {
"description": "The Apollo account stage ID",
"example": "6095a710bd01d100a506d4b7",
"type": "string"
},
"id": {
"description": "The account ID to update",
"example": "66e9abf95ac32901b20d1a0d",
"type": "string"
},
"name": {
"description": "The account name",
"example": "Acme Corporation",
"type": "string"
},
"owner_id": {
"description": "The Apollo user ID to assign as owner",
"example": "66302798d03b9601c7934ebf",
"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"
},
"account_ids": {
"description": "Array of account IDs to update with the same values. Use this for applying the same updates to multiple accounts.",
"example": [
"66e9abf95ac32901b20d1a0d",
"66e9a4db056fe802d331fb8a"
],
"items": {
"type": "string"
},
"type": "array"
},
"account_stage_id": {
"description": "When using account_ids, apply this account stage to all accounts",
"example": "6095a710bd01d100a506d4b7",
"type": "string"
},
"async": {
"description": "Set to true to process updates asynchronously. Only available when using account_ids. Not supported with account_attributes.",
"example": false,
"type": "boolean"
},
"name": {
"description": "When using account_ids, apply this name to all accounts",
"example": "Updated Account Name",
"type": "string"
},
"owner_id": {
"description": "When using account_ids, apply this owner to all accounts",
"example": "66302798d03b9601c7934ebf",
"type": "string"
}
},
"type": "object"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
费用与请求规则
公开参考价格:每次成功请求 $0.012 USD。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。授权
请求体
application/json