更新平台账号列表
描述
用给定列表整体替换指定浏览器环境中的平台账号(非增量追加)。
请求格式
请求方法
POST
请求 URL
/api/updateAccountList请求参数
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| id | int | 是 | 浏览器环境 ID |
| accounts | array | 是 | 完整账号列表 |
请求示例
bash
curl --location --request POST 'http://localhost:9000/api/updateAccountList' \
--header 'Content-Type: application/json' \
--header 'api-key: YOUR_API_KEY' \
--data '{
"id": 1,
"accounts": [
{
"origin_url": "https://example.com",
"username_value": "user@example.com",
"password_value": "your-password",
"display_name": "主账号"
}
]
}'响应示例
json
{
"success": true
}WARNING
此接口会覆盖原有全部账号,请谨慎使用。若仅需追加,请使用 添加平台账号。
