---
title: "Enable or disable a push rule."
method: PUT
path: "/_matrix/client/v3/pushrules/global/{kind}/{ruleId}/enabled"
tags: ["Push notifications"]
---

# Enable or disable a push rule.

`PUT /_matrix/client/v3/pushrules/global/{kind}/{ruleId}/enabled`

## Request

- Base URL: `https://matrix.org`
- URL: `https://matrix.org/_matrix/client/v3/pushrules/global/{kind}/{ruleId}/enabled`
- Auth: one of:
  - API key in query parameter `access_token`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/matrix/apis/matrix-client-server-api/docs/_matrix/client/v3/pushrules/global/:kind/:ruleId/enabled/put.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint allows clients to enable or disable the specified push rule.

## Path parameters

- `kind` 'override' | 'underride' | 'sender' | 'room' | 'content', required
- `ruleId` string, required

## Request body

- object
  - `enabled` boolean, required: Whether the push rule is enabled or not.

## Response `200`

The push rule was enabled or disabled.

- object

## Other responses

- `404`: The push rule does not exist.

---

[API](https://skmtc.dev/matrix/apis/matrix-client-server-api.md) - [All operations](https://skmtc.dev/matrix/apis/matrix-client-server-api/llms.txt) - [OpenAPI document](https://skmtc.dev/matrix/apis/matrix-client-server-api/revisions/c7fe4072c681?raw)
