Update Multiple Monitors at Once

Instead of updating monitors individually, you can modify all monitors in a group simultaneously. This is useful for managing monitoring behavior across related DNS records or customer domains.

Bulk Update Endpoint

Use the PATCH /groups/{slug}/monitors endpoint to update all monitors in a group:

curl -X PATCH https://api.dnsradar.dev/groups/production-servers/monitors \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "frequency": 15
}'

This updates the check frequency for ALL monitors in the production-servers group to 15 minutes.

Updatable Properties

You can bulk update these monitor properties:

Check Frequency

Change how often monitors are checked (in minutes):

curl -X PATCH https://api.dnsradar.dev/groups/critical-infrastructure/monitors \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "frequency": 5
}'

Available frequencies: 5, 10, 15, 30, 60, 120 (minutes)

Active Status

Enable or disable all monitors in a group:

curl -X PATCH https://api.dnsradar.dev/groups/customer-123/monitors \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "is_active": false
}'

Use cases for disabling monitors:

  • Temporary maintenance windows
  • Customer account suspension
  • Testing or debugging
  • Service migration

Update Multiple Properties

Combine frequency and status changes:

curl -X PATCH https://api.dnsradar.dev/groups/maintenance-mode/monitors \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "frequency": 120,
  "is_active": false
}'

API Response

The API returns HTTP 204 No Content on success, indicating all monitors were updated without returning data.

HTTP/1.1 204 No Content

Next Steps