---
title: "Create a Shield Zone in under-attack mode for your PullZone"
method: POST
path: "/shield/shield-zone/under-attack"
tags: ["Shield Zone"]
---

# Create a Shield Zone in under-attack mode for your PullZone

`POST /shield/shield-zone/under-attack`

## Request

- Base URL: `https://api.bunny.net`
- URL: `https://api.bunny.net/shield/shield-zone/under-attack`
- Auth: none declared
- TypeScript: <https://skmtc.dev/bunny/apis/bunny-shield-api/docs/shield/shield-zone/under-attack/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- CreateUnderAttackShieldZoneRequest
  - `pullZoneId` integer, required
  - `planType` 0 | 1 | 2 | 3, required: 0 = Basic 1 = Advanced 2 = Business 3 = Enterprise

## Response `200`

OK

- CreateShieldZoneResponse: Response object for creating a new Shield Zone.
  - `data` CreateShieldZoneRequest: Represents a request to create a new Shield Zone.
    - `shieldZone` ShieldZoneRequest
      - `shieldZoneId` integer
      - `premiumPlan` boolean, nullable
      - `planType` 0 | 1 | 2 | 3: 0 = Basic 1 = Advanced 2 = Business 3 = Enterprise
      - `learningMode` boolean, nullable
      - `learningModeUntil` string, date-time, nullable
      - `wafEnabled` boolean, nullable
      - `wafExecutionMode` 0 | 1: 0 = Log 1 = Block
      - `wafDisabledRules` string[], nullable
      - `wafLogOnlyRules` string[], nullable
      - `wafCustomRuleOrder` integer[], nullable
      - `wafRequestHeaderLoggingEnabled` boolean, nullable
      - `requestBodyLoggingEnabled` boolean, nullable
      - `wafRequestIgnoredHeaders` string[], nullable
      - `wafRealtimeThreatIntelligenceEnabled` boolean, nullable
      - `wafProfileId` integer, nullable
      - `wafEngineConfig` PullZoneWafConfigVariableModel[], nullable
        - `name` string, nullable, required
        - `valueEncoded` string, nullable, required
      - `wafRequestBodyLimitAction` 0 | 1 | 2: 0 = Block 1 = Log 2 = Ignore
      - `wafResponseBodyLimitAction` 0 | 1 | 2: 0 = Block 1 = Log 2 = Ignore
      - `dDoSShieldSensitivity` 0 | 1 | 2 | 3 | 4 | 5: 0 = Off 1 = Low 2 = Medium 3 = High 4 = Challenge 5 = ChallengeInteractive
      - `dDoSChallengeWindow` integer, nullable
      - `whitelabelResponsePages` boolean, nullable
    - `pullZoneId` integer, required
    - `accessLists` object, nullable
    - `botDetectionExecutionMode` 0 | 1: 0 = LogOnly 1 = Challenge
    - `csamScanningMode` 0 | 1 | 2: 0 = Disabled 1 = Log 2 = Block
    - `antivirusScanningMode` 0 | 1 | 2: 0 = Disabled 1 = Log 2 = Block
  - `error` GenericRequestResponse: Generic response object containing status information for API operations.
    - `statusCode` 100 | 101 | 102 | 103 | 200 | 201 | 202 | 203 | 204 | 205 | 206 | 207 | 208 | 226 | 300 | 301 | 302 | 303 | 304 | 305 | 306 | 307 | 308 | 400 | 401 | 402 | 403 | 404 | 405 | 406 | 407 | 408 | 409 | 410 | 411 | 412 | 413 | 414 | 415 | 416 | 417 | 421 | 422 | 423 | 424 | 426 | 428 | 429 | 431 | 451 | 500 | 501 | 502 | 503 | 504 | 505 | 506 | 507 | 508 | 510 | 511: 100 = Continue 101 = SwitchingProtocols 102 = Processing 103 = EarlyHints 200 = OK 201 = Created 202 = Accepted 203 = NonAuthoritativeInformation 204 = NoContent 205 = ResetContent 206 = PartialContent 207 = MultiStatus 208 = AlreadyReported 226 = IMUsed 300 = MultipleChoices 300 = Ambiguous 301 = MovedPermanently 301 = Moved 302 = Found 302 = Redirect 303 = SeeOther 303 = RedirectMethod 304 = NotModified 305 = UseProxy 306 = Unused 307 = TemporaryRedirect 307 = RedirectKeepVerb 308 = PermanentRedirect 400 = BadRequest 401 = Unauthorized 402 = PaymentRequired 403 = Forbidden 404 = NotFound 405 = MethodNotAllowed 406 = NotAcceptable 407 = ProxyAuthenticationRequired 408 = RequestTimeout 409 = Conflict 410 = Gone 411 = LengthRequired 412 = PreconditionFailed 413 = RequestEntityTooLarge 414 = RequestUriTooLong 415 = UnsupportedMediaType 416 = RequestedRangeNotSatisfiable 417 = ExpectationFailed 421 = MisdirectedRequest 422 = UnprocessableEntity 422 = UnprocessableContent 423 = Locked 424 = FailedDependency 426 = UpgradeRequired 428 = PreconditionRequired 429 = TooManyRequests 431 = RequestHeaderFieldsTooLarge 451 = UnavailableForLegalReasons 500 = InternalServerError 501 = NotImplemented 502 = BadGateway 503 = ServiceUnavailable 504 = GatewayTimeout 505 = HttpVersionNotSupported 506 = VariantAlsoNegotiates 507 = InsufficientStorage 508 = LoopDetected 510 = NotExtended 511 = NetworkAuthenticationRequired
    - `success` boolean: Indicates whether the operation was successful.
    - `message` string, nullable: Human-readable message describing the result of the operation.
    - `errorKey` string, nullable: Unique error key for programmatic error handling, if applicable.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `409`: Conflict
- `500`: Internal Server Error

## Changes

- **2026-11-12** `6a424e866a61`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/bunny/apis/bunny-shield-api/changes/shield/shield-zone/under-attack/post.md)

---

[API](https://skmtc.dev/bunny/apis/bunny-shield-api.md) - [All operations](https://skmtc.dev/bunny/apis/bunny-shield-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bunny/apis/bunny-shield-api/revisions/6a424e866a61?raw)
