Browser profiles
Unset the default browser profile
Unset the default flag on a browser profile.
DELETE
/
api
/
v2
/
browser-profiles
/
{profile_id}
/
default
from hai_agents import Client
client = Client()
profile = client.browser_profiles.unset_default_browser_profile(
profile_id=profile_id,
)
print(profile.is_default)
import { HaiAgentsClient } from "hai-agents";
const client = new HaiAgentsClient();
const profile = await client.browserProfiles.unsetDefaultBrowserProfile({
profileId,
});
console.log(profile.isDefault);
curl -X DELETE "https://agp.eu.hcompany.ai/api/v2/browser-profiles/$PROFILE_ID/default" \
-H "Authorization: Bearer $HAI_API_KEY"
Behavior
The profile itself is untouched. The next session whose Cloud browser setsuse_default_browser_profile: true for that browser creates a fresh, empty default.
Path parameters
string
required
The profile’s
id (UUID).Response
200 with the updated profile object with is_default: false.
from hai_agents import Client
client = Client()
profile = client.browser_profiles.unset_default_browser_profile(
profile_id=profile_id,
)
print(profile.is_default)
import { HaiAgentsClient } from "hai-agents";
const client = new HaiAgentsClient();
const profile = await client.browserProfiles.unsetDefaultBrowserProfile({
profileId,
});
console.log(profile.isDefault);
curl -X DELETE "https://agp.eu.hcompany.ai/api/v2/browser-profiles/$PROFILE_ID/default" \
-H "Authorization: Bearer $HAI_API_KEY"
Errors
| Status | Cause |
|---|---|
404 | Not found, or not in your organization. |
Was this page helpful?
⌘I
from hai_agents import Client
client = Client()
profile = client.browser_profiles.unset_default_browser_profile(
profile_id=profile_id,
)
print(profile.is_default)
import { HaiAgentsClient } from "hai-agents";
const client = new HaiAgentsClient();
const profile = await client.browserProfiles.unsetDefaultBrowserProfile({
profileId,
});
console.log(profile.isDefault);
curl -X DELETE "https://agp.eu.hcompany.ai/api/v2/browser-profiles/$PROFILE_ID/default" \
-H "Authorization: Bearer $HAI_API_KEY"