Replace saved accounts
Replace the entire saved-account list with the supplied array.
Definition: ApiFox POST · Checked on 2026-10-21.
Request
POST /api/updateAccountListUse the base URL and api-key shown on the client API screen. All examples use 9000 only as a placeholder port; see Overview for authentication.
JSON body
Apifox supplies these fields through examples; required fields below are supplemented from the current client.
| Field | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Profile ID |
accounts | object[] | Yes | Complete account object array replaces existing accounts; [] clears them; close and back up first |
cURL example
curl --request POST 'http://127.0.0.1:9000/api/updateAccountList' \
--header 'api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"id": 63,
"accounts": [
{
"origin_url": "https://example.com/",
"username_value": "EXAMPLE_USER_1",
"password_value": "EXAMPLE_PASSWORD",
"display_name": "示例账号1(已更新)"
},
{
"origin_url": "https://example.com/",
"username_value": "EXAMPLE_USER_2",
"password_value": "EXAMPLE_PASSWORD",
"display_name": "管理员账号(最新)"
}
]
}'Response example
{
"success": true
}Current client response fields
| Field | Type | Usage |
|---|---|---|
success | boolean | Request processing succeeded; not a guarantee that every item was written |
Account item fields
| Field | Type | Description |
|---|---|---|
accounts[].origin_url | string | Nonempty site URL, e.g. https://example.com; missing values skip the item |
accounts[].action_url | string | Optional; defaults to origin_url |
accounts[].username_value | string | Nonempty username; missing values skip the item |
accounts[].password_value | string | Password string; optional, defaults to empty; never publish real passwords |
accounts[].display_name | string | Optional display name; defaults to an empty string |
Usage notes
- This replaces the full list, not an incremental update by username. Accounts omitted from the array are not retained. Back up the list and stop the profile first. For appending, use Add saved accounts.
For failed requests, check both HTTP status and the error body. See Errors & troubleshooting.
The account database is rewritten
This operation replaces browser login records and may change creation times or lose unexported fields and password notes. Each entry needs nonempty origin_url and username_value; entries missing either are skipped. action_url defaults to the origin and password_value can be empty. Stop and back up the profile first; do not publish backups or API responses.



