跳转到主要内容
POST
/
zone
/
change_disable
cURL
curl --request POST \
  --url https://api.brightdata.com/zone/change_disable \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "zone": "<string>",
  "disable": 0
}'
{
  "plan": {
    "start": "2019-07-15T18:08:59.269Z",
    "type": "static",
    "ips_type": "shared",
    "ip_alloc_preset": "shared_block",
    "bandwidth": "payperusage",
    "disabled": 1
  }
}
Warning: This API can modify your account settings, damage your operations or incur charges.
将您的 API 令牌粘贴到身份验证字段。要获得令牌,创建账户并了解如何生成令牌Create an account, generate an API key

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
zone
string
required

Zone name

disable
enum<number>
required

0 - activate zone

1 - disable zone

可用选项:
0,
1

Response

200 - application/json

OK

The response is of type object.