> ## Documentation Index
> Fetch the complete documentation index at: https://developers.dnsradar.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Bulk update monitors in group

> Update all monitors in a group with the same settings.

This endpoint allows you to bulk update settings for all monitors within a specified group in a single request.<br />You can update the active status, notification timing, match type, and expected values for all monitors in the group.<br />Only the fields you provide will be updated; omitted fields remain unchanged.<br />


## OpenAPI

````yaml https://api.dnsradar.dev/openapi.json patch /groups/{group_id}/monitors
openapi: 3.0.3
info:
  title: DNSRadar API
  description: DNSRadar API - Monitor your DNS records and get notified when they change.
  version: 1.0.0
  contact:
    name: DNSRadar Support
    email: support@dnsradar.dev
    url: https://dnsradar.dev
servers:
  - url: https://api.dnsradar.dev
    description: Production server
security:
  - ApiKeyAuth: []
tags:
  - name: Agents
    description: Team member management and invitations
  - name: Organization
    description: Organization settings, billing, and subscription management
  - name: Monitors
    description: DNS monitoring configuration and management
  - name: Events
    description: DNS change events and history
  - name: Groups
    description: Monitor grouping and organization
  - name: Webhooks
    description: Webhook configuration for event notifications
paths:
  /groups/{group_id}/monitors:
    patch:
      tags:
        - Groups
      summary: Bulk update monitors in group
      description: Update all monitors in a group with the same settings.
      operationId: bulkUpdateGroupMonitors
      parameters:
        - name: group_id
          in: path
          required: true
          schema:
            type: string
          description: The unique identifier of the group
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                active:
                  type: boolean
                  description: Set monitors as active or inactive
                notify:
                  type: string
                  enum:
                    - immediately
                    - on_success
                    - after_success
                  description: Notification timing for monitors
                exact_match:
                  type: boolean
                  description: Require exact match for expected values
                expected_value:
                  oneOf:
                    - type: string
                      description: Single expected DNS value
                    - type: array
                      items:
                        type: string
                      maxItems: 10
                      description: Multiple expected DNS values (max 10)
                  description: >-
                    Expected DNS values to match against. Applies to all
                    monitors in the group regardless of record type.
      responses:
        '204':
          description: Monitors updated
        '400':
          $ref: '#/components/responses/ValidationError'
        '401':
          $ref: '#/components/responses/UnauthorizedError'
        '404':
          $ref: '#/components/responses/NotFoundError'
      security:
        - ApiKeyAuth: []
components:
  responses:
    ValidationError:
      description: Validation error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: 400
            errors:
              email: Invalid email format
    UnauthorizedError:
      description: Authentication is missing or invalid
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: 401
            error: Unauthorized
    NotFoundError:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            code: 404
            error: Not found
  schemas:
    Error:
      type: object
      description: Error response
      properties:
        code:
          type: integer
          description: HTTP status code
        error:
          oneOf:
            - type: string
              description: Error message
            - type: object
              description: Validation errors by field
              additionalProperties:
                type: string
        errors:
          type: object
          description: Field-specific validation errors
          additionalProperties:
            type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key
      description: >-
        API key used to authenticate yourself on DNSRadar. Obtain your API key
        from your DNSRadar dashboard.

````