---
title: "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/prometheusRuleGroups/{ruleGroupName}"
method: PATCH
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/prometheusRuleGroups/{ruleGroupName}"
tags: ["PrometheusRuleGroupResources"]
---

# PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/prometheusRuleGroups/{ruleGroupName}

`PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AlertsManagement/prometheusRuleGroups/{ruleGroupName}`

Update an Prometheus rule group definition.

## Path parameters

- `ruleGroupName` string, required

## Parameters

- `../../../../../../common-types/resource-management/v3/types.json#/components/parameters/ApiVersionParameter` — unresolved $ref
- `../../../../../../common-types/resource-management/v3/types.json#/components/parameters/SubscriptionIdParameter` — unresolved $ref
- `../../../../../../common-types/resource-management/v3/types.json#/components/parameters/ResourceGroupNameParameter` — unresolved $ref

## Request body

- PrometheusRuleGroupResourcePatchParameters — The Prometheus rule group resource for patch operations.
  - `tags` object — Resource tags
  - `properties` PrometheusRuleGroupResourcePatchParametersProperties
    - `enabled` boolean — the flag that indicates whether the Prometheus rule group is enabled.

## Response `200`

Azure operation completed successfully.

- PrometheusRuleGroupResource — unresolved $ref

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/azure/apis/alertsmanagement-microsoft-alertsmanagement-prometheusrulegr.md) · [All operations](https://skmtc.net/azure/apis/alertsmanagement-microsoft-alertsmanagement-prometheusrulegr/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/alertsmanagement-microsoft-alertsmanagement-prometheusrulegr/revisions/94ce1c038591/schema)
