Skip to main content
PATCH
/
shield
/
shield-zone
/
{shieldZoneId}
/
access-lists
/
{id}
cURL
curl --request PATCH \
  --url https://api.bunny.net/shield/shield-zone/{shieldZoneId}/access-lists/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "content": "<string>",
  "checksum": "<string>"
}
'
{
  "data": {
    "id": 123,
    "name": "<string>",
    "description": "<string>",
    "type": 0,
    "content": "<string>",
    "checksum": "<string>",
    "entryCount": 123,
    "lastModified": "2023-11-07T05:31:56Z"
  },
  "error": {
    "statusCode": 100,
    "success": true,
    "message": "<string>",
    "errorKey": "<string>"
  }
}

Path Parameters

id
integer<int64>
required

The ID of the Custom Access List to update.

shieldZoneId
integer<int32>
required

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

Body

Request model for updating a custom access list.

name
string | null

The new display name for the access list. If null, the current name is preserved.

content
string | null

The new content for the access list with entries separated by newlines. If null, the current content is preserved.

checksum
string | null

SHA-256 checksum of the new content for integrity verification. If null, it will be automatically calculated.

Response

OK

Response containing custom access list data or error information.

data
object

Represents a custom access list associated with a shield zone.

error
object

Generic response object containing status information for API operations.