Enable or disable Bot Protection for a CDN Resource through the Security API.
Use this endpoint to enable or disable Bot Protection for a CDN Resource. This feature is supported in Small, Large, and Dynamic (Aksela) resource types.
Unique identifier of the organization.
123e4567-e89b-12d3-a456-426614174000Unique identifier of the CDN Resource.
789e1234-b56c-78d9-a123-526614174111789e1234-b56c-78d9-a123-526614174111Set to true to enable Bot Protection or false to disable it.
trueBot Protection status updated successfully.
Bot Protection status updated successfully.
{
"status": true,
"data": {}
}PUT /api/v1/cdn/{organization_uuid}/resource/{resource_uuid} HTTP/1.1
Host: cloud.medianova.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 85
{
"resource_uuid": "789e1234-b56c-78d9-a123-526614174111",
"status_bot_protection": true
}