Replace proxy profile bindings
Replace the complete list of profiles bound to a proxy. Supports custom, api, integ, and syt proxies. Duplicate profile IDs are removed automatically; an empty array unbinds all profiles. The Local API first verifies that the proxy and all profiles belong to the current user and team. If any profile does not exist or is inaccessible, the entire request returns 404 without calling the backend binding endpoint. This operation only updates proxy bindings and profile proxy settings; it does not start or stop browsers.
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"proxy_01JABCDEF1234567890"minLength: 1Body parameters
requiredapplication/jsonProxyBindBrowsersRequestGenerated from the schema; not a live response.
{
"env_ids": [
"env_01JABCDEF1234567890"
]
}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 '{
"env_ids": [
"env_01JABCDEF1234567890"
]
}' 'http://local.zhongyibrowser.com:39025/api/v1/proxies/proxy_01JABCDEF1234567890/browsers'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.
Final profile bindings for the proxy
Body
application/jsonProxyBindBrowsersSuccessResponseobjectrequiredEndpoint business dataAdditional fields are not allowed.
Additional fields are not allowed.
Generated from the schema; not a live response.
{
"code": 0,
"message": "success",
"data": {
"proxy_id": "proxy_01JABCDEF1234567890",
"browser_ids": [
"env_01JABCDEF1234567890"
],
"browser_count": 0
}
}