PATCH
/
browser-profiles
/
{profile_id}
JavaScript
import BrowserUse from 'browser-use-sdk';

const client = new BrowserUse({
  apiKey: 'My API Key',
});

const browserProfileView = await client.browserProfiles.update('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e');

console.log(browserProfileView.id);
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "description": "<string>",
  "persist": true,
  "adBlocker": true,
  "proxy": true,
  "proxyCountryCode": "us",
  "storeCache": true,
  "browserViewportWidth": 123,
  "browserViewportHeight": 123,
  "isMobile": true,
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z"
}

Authorizations

X-Browser-Use-API-Key
string
header
required

Path Parameters

profile_id
string<uuid>
required

Body

application/json

Request model for updating a browser profile

Attributes: name: Display name for the profile description: Optional description of the profile persist: Whether browser state should persist between sessions ad_blocker: Whether ad blocking is enabled proxy: Whether proxy is enabled proxy_country_code: Country code for proxy location store_cache: Whether to store browser cache browser_viewport_width: Browser viewport width in pixels browser_viewport_height: Browser viewport height in pixels is_mobile: Whether the browser should be in mobile view

Response

200
application/json

Successful Response

View model for representing a browser profile

Attributes: id: Unique identifier for the profile name: Display name for the profile description: Optional description of the profile persist: Whether browser state should persist between sessions ad_blocker: Whether ad blocking is enabled proxy: Whether proxy is enabled proxy_country_code: Country code for proxy location store_cache: Whether to store browser cache browser_viewport_width: Browser viewport width in pixels browser_viewport_height: Browser viewport height in pixels is_mobile: Whether the browser should be in mobile view created_at: Timestamp when the profile was created updated_at: Timestamp when the profile was last updated