Skip to main content
PATCH
/
v1
/
profiles
/
{id}
Update Profile
curl --request PATCH \
  --url https://api.bctrl.ai/v1/profiles/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "config": {
    "proxy": {
      "type": "<string>",
      "host": "<string>",
      "port": 123,
      "username": "<string>",
      "password": "<string>"
    },
    "humanize": true
  }
}
'
id
string
required
Profile ID.
config
object
Updated profile configuration.
Profile must be stopped before updating settings.

Examples

import { Bctrl } from '@bctrl/sdk';
const bctrl = new Bctrl({ apiKey: process.env.BCTRL_API_KEY! });

// Named-browser API
await bctrl.browser('my-browser').configure({
  proxy: { type: 'socks5', host: 'new-proxy', port: 1080 },
});