cURL
curl --request POST \ --url https://api.brightdata.com/zone/domain_perm \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "zone": "<string>", "type": "whitelist", "domain": "<string>" } '
Add domain to Zone whitelist or blacklist
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Zone name
whitelist to whitelist domain(s), blacklist to blacklist domain(s)
whitelist
blacklist
space separated list of domains
OK
此页面对您有帮助吗?