Skip to main content
DELETE
/
zone
/
domain_perm
cURL
curl --request DELETE \
  --url https://api.brightdata.com/zone/domain_perm \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "zone": "<string>",
  "type": "whitelist",
  "domain": "d1.com d2.com"
}
'
{
  "whitelist": "example.org"
}
Warning: This API can modify your account settings, damage your operations or incur charges.
Paste your API key to the authorization field. To get an API key, Create an account and learn how to generate an API key

Authorizations

Authorization
string
header
required

在 Authorization 头中使用您的 Bright Data API Key 作为 Bearer token。

认证方法:

  1. 从 Bright Data 账户设置获取您的 API Key: https://brightdata.com/cp/setting/users
  2. 在请求的 Authorization 头中包含 API Key
  3. 格式: Authorization: Bearer YOUR_API_KEY

示例:

Authorization: Bearer b5648e1096c6442f60a6c4bbbe73f8d2234d3d8324554bd6a7ec8f3f251f07df

了解如何获取 Bright Data API Key: https://docs.brightdata.com/cn/api-reference/authentication#如何生成新的-api-key?

Body

application/json
zone
string
required

区域名称

type
enum<string>
required

whitelist - 允许列表

blacklist - 拒绝列表

Available options:
whitelist,
blacklist
domain
string
required

以空格分隔的域名列表

Example:

"d1.com d2.com"

Response

200 - application/json

成功

The response is of type object.