Skip to main content
PATCH
/
shield
/
shield-zone
/
{shieldZoneId}
/
access-lists
/
configurations
/
{id}
cURL
curl --request PATCH \
  --url https://api.bunny.net/shield/shield-zone/{shieldZoneId}/access-lists/configurations/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "isEnabled": true,
  "action": 0
}
'
{
  "data": {
    "isEnabled": true,
    "action": 0
  },
  "error": {
    "statusCode": 100,
    "success": true,
    "message": "<string>",
    "errorKey": "<string>"
  }
}

Path Parameters

id
integer<int64>
required

The ID of the Access List Configuration to update.

shieldZoneId
integer<int32>
required

The ID of the Shield Zone to which the Access List Configuration belongs.

Body

Request model for updating an access list configuration.

isEnabled
boolean | null

Whether the access list should be enabled or disabled. If null, the current state is preserved.

action
enum<integer>
Available options:
0,
1,
2,
3,
4,
5

Response

OK

Response containing the updated access list configuration data or error information.

data
object

Request model for updating an access list configuration.

error
object

Generic response object containing status information for API operations.