cURL
curl --request PATCH \ --url https://api.bunny.net/shield/shield-zone/{shieldZoneId}/api-guardian \ --header 'Content-Type: application/json' \ --data ' { "isEnabled": true, "executionMode": 0, "bodyLimitAction": 0, "unmatchedPathAction": 0 } '
{ "error": { "statusCode": 100, "success": true, "message": "<string>", "errorKey": "<string>" }, "data": { "shieldZoneId": 123, "isEnabled": true, "executionMode": 0, "bodyLimitAction": 0, "unmatchedPathAction": 0, "title": "<string>", "version": "<string>", "maxEndpoints": 123, "maxFieldsPerType": 123, "maxNestingDepth": 123, "maxTotalSchemaNodes": 123, "maxTotalRegexLength": 123, "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z" } }
Patch request for updating the global API Guardian configuration. All fields are optional — only provided fields are applied.
Enable or disable API Guardian entirely for this shield zone.
0
1
2
OK
Response for the PATCH /configuration endpoint.
Generic response object containing status information for API operations.
Show child attributes
Global API Guardian configuration for a shield zone.
Was this page helpful?