• /
  • EnglishEspañolFrançais日本語한국어Português
  • Log inStart now

Update a muting rule

|View as Markdown

The action identifier is newrelic.alerts.updateMutingRule.

Updates an existing muting rule. Every field except accountId and id is optional — only the fields you provide are changed.

The following table describes all available input fields for this action.

Input

Type

Description

Example

accountId

Int

Required. The New Relic account that owns the muting rule.

123456

id

String

Required. The ID of the muting rule to update.

"7654321"

name

String

Optional. New name for the muting rule. Omit to leave unchanged.

"Deploy window - extended"

enabled

Boolean

Optional. Whether the muting rule is active. Set false to disable.

false

condition

Map

Optional. New condition group. See createMutingRule for the field structure. Omit to leave unchanged.

{"operator": "AND", "conditions": [{"attribute": "policyName", "operator": "EQUALS", "values": ["Checkout Service"]}]}

description

String

Optional. New description. Omit to leave unchanged.

"Deploy window extended by 30 minutes."

actionOnMutingRuleWindowEnded

String

Optional. Action on rule end or disable. One of CLOSE_ISSUES_ON_INACTIVE or DO_NOTHING.

"DO_NOTHING"

schedule

Map

Optional. New schedule. See createMutingRule for the field structure. Omit to leave unchanged.

{"startTime": "2026-09-01T02:00:00", "endTime": "2026-09-01T04:30:00", "timeZone": "America/Los_Angeles", "repeat": "WEEKLY", "weeklyRepeatDays": ["SATURDAY", "SUNDAY"]}

selectors

List

Optional. JQ selectors to extract values from the response.

selectors:
- name: mutingRuleId
expression: ".data.alertsMutingRuleUpdate.id"

The following table describes all output fields returned by this action.

Output

Type

Description

success

Boolean

true when the step executed without error.

errorMessage

String

Error message on failure. null on success.

data

Map

NerdGraph response. Use selectors to extract id, name, enabled, status, or accountId from data.

{
"data": {
"alertsMutingRuleUpdate": {
"id": "7654321",
"name": "Deploy window - extended",
"enabled": false,
"status": "INACTIVE",
"accountId": 123456
}
}
}

The following example disables a muting rule after a deploy window ends.

Workflow example

name: update_muting_rule
description: Disable a muting rule
steps:
- name: updateMutingRule
type: action
action: newrelic.alerts.updateMutingRule
version: 1
inputs:
accountId: ${{ .workflowInputs.accountId }}
id: ${{ .workflowInputs.mutingRuleId }}
enabled: false
next: end
Copyright © 2026 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.