Skip to content
Local APIBrowser profiles

Edit a browser profile ​

Version overview
PUT
/api/v1/browsers/{envId}

Partially edit a browser profile for the current user and team. Only fields explicitly supplied in the request are updated. Changes can be saved while the profile is running and take effect on its next start. When browser compatibility settings change, the backend regenerates internal UA fields. Unmodified random fingerprint values remain unchanged.

Request parameters

Authorization Bearer Token

Include your API Key as a Bearer token in the Authorization request header.

Authorization: Bearer <api-key>

Path parameters

1
Fields
stringrequired
Unique browser profile ID
Example"env_01JABCDEF1234567890"
minLength: 1

Body parameters

requiredapplication/jsonBrowserUpdateRequest
Fields
string
New browser profile name
minLength: 1maxLength: 32
object
Browser window dimensions to update

Additional fields are not allowed.

object
Regenerate internal UA fields when browser engine, operating system, or UA compatibility settings change. null restores automatic selection.

Additional fields are not allowed.

string | null
null moves the profile to the current user default group
minLength: 1maxLength: 32
object[] | null
null clears Cookies; omitting the field preserves the current value
maxItems: 500
string | null
null clears the notes
maxLength: 5000
string | null
null clears the startup arguments
maxLength: 5000
object
mode=none removes the proxy; omitting the field preserves the current proxy
string[]
Replace existing account bindings; an empty array clears all bindings
maxItems: 100
object[]
Create accounts and add their bindings to the profile
minItems: 1maxItems: 20
string[]
Replace manually bound extensions; an empty array retains only globally enabled extensions
maxItems: 100
object
Common browser settings to update; omitted child fields retain their current values

Additional fields are not allowed.

object
Browser fingerprint settings to update; omitted child fields retain their current values

Additional fields are not allowed.

boolean
Whether to randomize the fingerprint again whenever the profile is opened; retains the current value if omitted
Example

Generated from the schema; not a live response.

{
  "name": "string",
  "window": {
    "width": 0,
    "height": 0
  },
  "browser": {
    "kernel_version": "string",
    "system_os": "Windows",
    "system_version": "string",
    "ua_version": "string"
  },
  "group_id": "string"
}

Request code examples

JavaScript / TypeScript: Node.js 18+ with fetch; PHP: cURL extension; Go: 1.16+; Java: JDK 11+. Replace the token and example parameter values before running.

curl -X PUT -H 'Authorization: Bearer <TOKEN>' -H 'Content-Type: application/json' -d '{
  "name": "string",
  "window": {
    "width": 0,
    "height": 0
  },
  "browser": {
    "kernel_version": "string",
    "system_os": "Windows",
    "system_version": "string",
    "ua_version": "string"
  },
  "group_id": "string"
}' 'http://local.zhongyibrowser.com:39025/api/v1/browsers/env_01JABCDEF1234567890'

Responses

Success: code = 0. Failure: code > 0. Select a status to view its fields and example. Expand objects to inspect nested fields. Optional fields may be omitted.

Updated browser profile ID and running status

Body

application/jsonBrowserUpdateSuccessResponse
Fields
numberrequired
Business status code; always 0 on success
Enum
stringrequired
Business status message; always success on success
Enum
objectrequired
Endpoint business data

Additional fields are not allowed.

Example

Generated from the schema; not a live response.

{
  "code": 0,
  "message": "success",
  "data": {
    "env_id": "env_01JABCDEF1234567890",
    "name": "string",
    "status": "active"
  }
}

View all business error codes and HTTP statuses

ZYBrowser Local API documentation