Update a profile
Update the name or proxy settings of a profile by ID.
Definition: ApiFox POST · ApiFox checked on 2026-10-21; client source checked on 2026-11-04.
Request
POST /api/updateBrowserUse 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
The table lists fields accepted by the current client. Create generates id; update requires an existing numeric id (marked *). Other fields are optional; a supplied nested object replaces the entire object, so retain needed subfields.
Types below are recommended formats; the HTTP layer does not validate every nested field, and effective behavior depends on the client and core version.
| Field | Type | Required | Description |
|---|---|---|---|
id | integer | * | Generated by the client on create; required as an existing numeric ID on update |
name | string | No | Profile name; omitted or empty names are generated on create |
group | string / string[] | No | Group name(s); a string array is recommended |
remark | string | No | Profile remark |
os | string | No | UI values: Win 7, Win 8, Win 10, Win 11, macOS, Linux; filtered by host platform |
chrome_version | integer / string | No | Chromium major version; create uses the generated configuration when omitted |
core_version | string / integer | No | auto, an installed full version or major; aliases coreVersion, kernel_version, kernelVersion; a major selects the highest installed match |
proxy | object | No | Proxy object; update replaces the whole object |
proxy.mode | integer | No | 0: default, 1: no proxy, 2: custom |
proxy.value | string | No | Legacy proxy string; UI attempts to parse it when mode=2 and host is empty; prefer protocol, host and port for new profiles |
proxy.protocol | string | No | Uppercase protocol: HTTP, HTTPS, SOCKS5 or SSH |
proxy.host | string | No | For a custom proxy, use hostname or IP, e.g. proxy.example.com; omit scheme and port |
proxy.port | string / number | No | Standard port range 1–65535; numeric strings such as "8080" recommended; not enforced by API |
proxy.user | string | No | Proxy username; empty if unused; do not publish |
proxy.pass | string | No | Proxy password; empty if unused; do not publish |
proxy.API | string | No | Dynamic proxy extraction URL; it may contain secrets |
proxy.url | string | No | UI generates this from protocol, host, port and authentication when saving a custom proxy; HTTP does not run UI preprocessing; retain existing value |
proxy.country | string | No | Country/region from proxy check, e.g. CA; API does not check automatically; omit or retain existing value |
proxy.checkFailed | boolean | No | Proxy-check status; generally maintained by the client |
cookie | object | No | Cookie configuration; never publish sensitive data |
cookie.mode | integer | No | New-profile default is 0; UI mode switch is commented out; import via jsonStr rather than changing this |
cookie.value | string | No | Defaults to an empty string; UI currently imports via jsonStr; avoid manually setting this legacy field |
cookie.jsonStr | string | No | JSON string containing a Cookie array, e.g. "[]"; update may replace all cookies, so back up first |
homepage | object | No | Homepage configuration object |
homepage.mode | integer | No | 0 default, 1 custom homepage |
homepage.value | string | No | For mode=1 provide URLs separated by semicolons, e.g. https://example.com;https://example.org |
ua | object | No | User-Agent configuration object |
ua.mode | integer | No | 0 default, 1 custom |
ua.value | string | No | User-Agent; keep consistent with the core and OS |
ua-full-version | object | No | Full UA version configuration |
ua-full-version.mode | integer | No | New-profile default 1; mode 1 recalculates full version when major changes; no separate UI toggle |
ua-full-version.value | string | No | Full version string, e.g. 156.0.8078.73; match the selected core |
sec-ch-ua | object | No | User-Agent Client Hints configuration |
sec-ch-ua.mode | integer | No | 0 default, 1 custom; default mode updates brand version when the major changes |
sec-ch-ua.value | object[] | No | Array, e.g. [{"brand":"Chromium","version":"156"}]; keep version consistent with core |
sec-ch-ua.value[].brand | string | No | Brand name |
sec-ch-ua.value[].version | string / number | No | Version string or number, e.g. 156 or "156"; keep consistent with brand and core |
ua-language | object | No | Browser language configuration |
ua-language.mode | integer | No | 1 manual, 2 follow IP |
ua-language.language | string | No | Language tag, e.g. en-US or fr-CA; BCP 47 format recommended |
ua-language.value | string | No | Language tags separated by commas, e.g. en-US,en |
time-zone | object | No | Time-zone configuration |
time-zone.mode | integer | No | 1 manual, 2 follow IP |
time-zone.zone | string | No | UTC offset text, e.g. UTC-5:00 or UTC+5:30; match value |
time-zone.utc | string | No | IANA time-zone identifier, e.g. America/Toronto; match selected zone |
time-zone.locale | string | No | Locale language tag, e.g. en-CA; BCP 47 format recommended |
time-zone.name | string | No | Time-zone display name; use a name from the client’s built-in list |
time-zone.value | number | No | Offset in hours; built-in client list spans -12 to +13 and includes fractions such as 5.5; not an enforced API range |
webrtc | object | No | WebRTC configuration |
webrtc.mode | integer | No | 0 replace, 1 allow, 2 block |
location | object | No | Location and permission configuration |
location.mode | integer | No | 1 custom, 2 follow IP |
location.enable | integer | No | 0 ask, 1 allow, 2 block |
location.longitude | string / number | No | Standard valid range -180 to 180, including decimals; not enforced by the API |
location.latitude | string / number | No | Standard valid range -90 to 90, including decimals; not enforced by the API |
location.precision | number / string | No | Metres; non-negative values recommended; client randomly generates 10–5000, not an enforced API range |
screen | object | No | Screen and resolution configuration |
screen.mode | integer | No | 0 follow device, 1 custom |
screen.width | number | No | For mode=1 set pixel width, e.g. 1920; keep height and _value consistent |
screen.height | number | No | For mode=1 set pixel height, e.g. 1080; keep width and _value consistent |
screen._value | string | No | UI choices: 800 x 600, 1024 x 768, 1280 x 720, 1280 x 800, 1280 x 960, 1280 x 1024, 1360 x 768, 1400 x 900, 1400 x 1050, 1600 x 900, 1600 x 1200, 1920 x 1080, 1920 x 1200, 2048 x 1152, 2304 x 1440, 2560 x 1440, 2560 x 1600, 2880 x 1800, 5120 x 2880; keep width and height consistent; not an API limit |
fonts | object | No | Font configuration; value contains exclusions, not an allowlist |
fonts.mode | integer | No | 0 system default, 1 randomized configuration |
fonts.value | string[] | No | For mode=1 pass font exclusion rules, e.g. ["Arial"]; not an allowlist; avoid broad matches |
canvas | object | No | Canvas fingerprint; generated RGBA values use -10–10 as a reference, not an enforced API range |
canvas.mode | integer | No | 0 default, 1 randomized configuration |
canvas.r | number | No | Generated integer reference: -10 to 10; not an enforced API range |
canvas.g | number | No | Generated integer reference: -10 to 10; not an enforced API range |
canvas.b | number | No | Generated integer reference: -10 to 10; not an enforced API range |
canvas.a | number | No | Generated integer reference: -10 to 10; not an enforced API range |
webgl-img | object | No | WebGL image fingerprint; generated RGBA values use -10–10 as a reference, not an enforced API range |
webgl-img.mode | integer | No | 0 default, 1 randomized configuration |
webgl-img.r | number | No | Generated integer reference: -10 to 10; not an enforced API range |
webgl-img.g | number | No | Generated integer reference: -10 to 10; not an enforced API range |
webgl-img.b | number | No | Generated integer reference: -10 to 10; not an enforced API range |
webgl-img.a | number | No | Generated integer reference: -10 to 10; not an enforced API range |
webgl | object | No | WebGL metadata configuration |
webgl.mode | integer | No | 0 default, 1 custom |
webgl.vendor | string | No | WebGL vendor |
webgl.render | string | No | WebGL renderer; keep consistent with the vendor |
webgpu | object | No | WebGPU adapter configuration |
webgpu.mode | integer | No | 0 default, 1 based on WebGL |
webgpu.vendor | string | No | WebGPU vendor value |
webgpu.architecture | string | No | WebGPU architecture value |
audio-context | object | No | AudioContext fingerprint configuration |
audio-context.mode | integer | No | 0 default, 1 randomized configuration |
audio-context.channel | number | No | Audio-channel perturbation; generated reference 0–0.0000001 |
audio-context.analyer | number | No | Audio analyzer perturbation; spelling is analyer; generated reference 0–0.1 |
media | object | No | Media-device fingerprint configuration |
media.mode | integer | No | New-profile default 1; commented-out UI lists 0 default and 1 random, but no active control; behavior depends on core |
client-rects | object | No | ClientRects fingerprint configuration |
client-rects.mode | integer | No | 0 default, 1 randomized configuration |
client-rects.width | number | No | Width perturbation; generated reference -1–1 |
client-rects.height | number | No | Height perturbation; generated reference -1–1 |
speech_voices | object | No | Speech Voices configuration |
speech_voices.mode | integer | No | 0 default, 1 use the configured voice list |
speech_voices.value | object[] | No | Voice object array; actual speech depends on system support |
speech_voices.value[].default | boolean | No | Boolean true or false; marks the default voice |
speech_voices.value[].lang | string | No | Language tag, e.g. en-US; match the selected voice |
speech_voices.value[].localService | boolean | No | Boolean true or false; marks whether it is a local service |
speech_voices.value[].name | string | No | Voice name |
speech_voices.value[].voiceURI | string | No | Voice URI |
ssl | object | No | SSL feature configuration |
ssl.mode | integer | No | 0 no custom settings, 1 enable feature settings |
ssl.value | array | No | For mode=1 pass cipher code strings to disable; UI choices: 0xc00a, 0xc014, 0x0035, 0xc009, 0xc013, 0x002f, 0x000a, 0x009c, 0x009d, 0xc02f, 0xc030, 0xc02b, 0xc02c, 0xcca9, 0xcca8, 0x008c, 0x008d, 0xc035, 0xc036, 0xccac, 0x1301, 0x1302, 0x1303, e.g. ["0x1301"] |
cpu | object | No | CPU fingerprint configuration |
cpu.mode | integer | No | New-profile default 1; UI changes value only, not mode; other values are unconfirmed |
cpu.value | integer | No | Client UI choices: 4, 6, 8, 12, 16, 20, 24, 32 logical cores; not an enforced API enum |
memory | object | No | Memory fingerprint configuration |
memory.mode | integer | No | New-profile default 1; UI changes value only, not mode; other values are unconfirmed |
memory.value | number | No | Client UI choices: 8, 16, 32, 64, 128 GB; not an enforced API enum |
device-name | object | No | Device-name fingerprint configuration |
device-name.mode | integer | No | 0 default, 1 custom |
device-name.value | string | No | Device name; use fictional examples |
mac | object | No | MAC fingerprint configuration |
mac.mode | integer | No | 0 default, 1 custom |
mac.value | string | No | MAC address string, e.g. 02-00-00-00-00-01; use fictional values, not real device identifiers |
dnt | object | No | Do Not Track configuration |
dnt.mode | integer | No | New-profile default 1; UI toggles value, not mode; other values are unconfirmed |
dnt.value | integer | No | UI switch: 0 off, 1 on |
port-scan | object | No | Port-scan protection configuration |
port-scan.mode | integer | No | 0 off, 1 enabled |
port-scan.value | string[] | No | Array of allowed numeric port strings, e.g. ["80","443"]; 1–65535 recommended |
gpu | object | No | Hardware acceleration configuration |
gpu.mode | integer | No | New-profile default 1; UI toggles value, not mode; other values are unconfirmed |
gpu.value | integer | No | Hardware-acceleration switch: 0 off, 1 on; not a GPU model |
launchArgs | object | No | Persistent launch arguments |
launchArgs.mode | integer | No | 0 default, 1 custom |
launchArgs.value | string | No | Persistent arguments, split on whitespace; distinct from tempLaunchArgs |
accountList | array / value | No | Profile configuration field; does not replace saved-account APIs |
enableCloudSync | boolean | No | Cloud-sync flag; enabling on update requires sign-in and membership |
cloudId | string | No | Cloud binding identifier; never publish or invent real identifiers |
cURL example
curl --request POST 'http://127.0.0.1:9000/api/updateBrowser' \
--header 'api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"id": 84,
"name": "环境666",
"proxy": {
"mode": 2,
"value": "",
"protocol": "SOCKS5",
"host": "127.0.0.1",
"port": "6000",
"user": "",
"pass": "",
"API": ""
}
}'Response example
{
"success": true
}Current client response fields
| Field | Type | Usage |
|---|---|---|
success | boolean | Request processing succeeded; not a guarantee that every item was written |
Usage notes
- The currently published Apifox update fields are id, name, and proxy; id is required. Prepare the full proxy object to avoid unintentionally omitting existing credentials.
For failed requests, check both HTTP status and the error body. See Errors & troubleshooting.
Fields supported by the current client
These fields apply to create and update; updates require the existing numeric id. Names are case-sensitive and unknown top-level keys are ignored. Except for update id, the fields are optional. A supplied nested object replaces the whole object, not a deep merge: read the existing configuration and retain all required subfields.
| Field | Type | Description |
|---|---|---|
id | number | Required for updates; generated by the client on create. |
name, group, remark, os | string / string[] | Name, groups, remark and OS identifier; a string array is recommended for group. A missing create name is generated. |
chrome_version | number / string | Chromium major version; when omitted, creation uses the generated configuration. |
core_version | string / number | auto, an installed full version or a major version. Aliases: coreVersion, kernel_version, kernelVersion. A major resolves to the highest installed matching version; an unavailable version returns 400. |
proxy | object | Mode and connection settings; protocol must be uppercase HTTP, HTTPS, SOCKS5 or SSH. Dynamic API URLs and credentials are sensitive. |
cookie, homepage | object | Cookie and homepage configuration. Use a JSON-array string for cookie.jsonStr; update parses it. Stop the profile and back up cookies first. |
ua, ua-full-version, sec-ch-ua, ua-language | object | UA, full version, client hints and language. |
time-zone, webrtc, location, screen | object | Time zone, WebRTC, location and screen. |
fonts, speech_voices | object | Font exclusion rules and voice configuration; fonts.value is not an allowlist. See profile parameters. |
canvas, webgl-img, webgl, webgpu, audio-context | object | Graphics and audio fingerprints. Common webgpu fields are mode, vendor, and architecture. |
media, client-rects, ssl, cpu, memory | object | Media devices, rectangles, SSL, CPU and memory. |
device-name, mac, dnt, port-scan, gpu, launchArgs | object | Device identifier, MAC, DNT, port-scan, GPU and persistent launch arguments. |
accountList | array / configuration value | Stored as profile configuration; use the dedicated account APIs for browser-saved accounts. |
enableCloudSync, cloudId | boolean / string | Cloud-sync flag and binding identifier. Enabling sync on an existing profile requires sign-in and the appropriate membership; never publish real identifiers. |
chrome_version describes the Chromium major; core_version selects an installed core. Prefer a version from the core list, and keep them consistent. On create, a concrete core_version can supply the major when omitted.
The REST API does not automatically run the UI's proxy-IP font/voice recommendation; provide explicit configuration when needed.
Version-dependent fields
Changing chrome_version, or setting a concrete core_version that resolves to a different major, may update UA, ua-full-version and sec-ch-ua depending on their existing mode. Read and back up the profile first and inspect the result. Omitted top-level fields are retained; provided nested objects are replaced in full.
A full profile-list write queue returns HTTP 429 with success: false; limit concurrency and retry with backoff.
An invalid proxy.protocol currently reaches the generic exception handler and returns HTTP 500 rather than necessarily returning 400.



