PUT
/
api
/
v1
/
browser-profiles
/
{profile_id}
import requests

API_KEY = 'your_api_key_here'
BASE_URL = 'https://api.browser-use.com/api/v1'
HEADERS = {'Authorization': f'Bearer {API_KEY}'}

profile_id = 'profile_1234567890abcdef'
update_data = {"ad_blocker": False}
response = requests.put(f'{BASE_URL}/browser-profiles/{profile_id}', headers=HEADERS, json=update_data)
print(response.json())

{
  "profile_id": "profile_1234567890abcdef",
  "profile_name": "Default Profile",
  "description": "Main automation profile",
  "persist": true,
  "ad_blocker": false,
  "proxy": true,
  "proxy_country_code": "US",
  "browser_viewport_width": 1280,
  "browser_viewport_height": 960
}
Update a browser profile with partial updates. Only the fields you want to change need to be included.

Path Parameters

profile_id
string
required
ID of the browser profile to update

Request Body

profile_name
string
Name of the browser profile
description
string
Description of the profile
persist
boolean
Save cookies, local storage, and session data between tasks
ad_blocker
boolean
Block ads and popups during automated tasks
proxy
boolean
Route traffic through mobile proxies for better stealth
proxy_country_code
string
Country code for the proxy
browser_viewport_width
integer
Browser viewport width in pixels
browser_viewport_height
integer
Browser viewport height in pixels

Response

profile_id
string
Unique identifier for the updated browser profile
profile_name
string
Name of the browser profile
description
string
Description of the profile
persist
boolean
Save cookies, local storage, and session data between tasks
ad_blocker
boolean
Block ads and popups during automated tasks
proxy
boolean
Route traffic through mobile proxies for better stealth
proxy_country_code
string
Country code for the proxy
browser_viewport_width
integer
Browser viewport width in pixels
browser_viewport_height
integer
Browser viewport height in pixels
import requests

API_KEY = 'your_api_key_here'
BASE_URL = 'https://api.browser-use.com/api/v1'
HEADERS = {'Authorization': f'Bearer {API_KEY}'}

profile_id = 'profile_1234567890abcdef'
update_data = {"ad_blocker": False}
response = requests.put(f'{BASE_URL}/browser-profiles/{profile_id}', headers=HEADERS, json=update_data)
print(response.json())

{
  "profile_id": "profile_1234567890abcdef",
  "profile_name": "Default Profile",
  "description": "Main automation profile",
  "persist": true,
  "ad_blocker": false,
  "proxy": true,
  "proxy_country_code": "US",
  "browser_viewport_width": 1280,
  "browser_viewport_height": 960
}