Push notifications

Enable or disable a push rule.

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

put/_matrix/client/v3/pushrules/global/{kind}/{ruleId}/enabled

Request

Path parameters

kind'override' | 'underride' | 'sender' | 'room' | 'content' required

The kind of rule

ruleIdstring required

The identifier for the rule.

Request body

enabledboolean required

Whether the push rule is enabled or not.

Example request

{
  "enabled": true
}

Response

The push rule was enabled or disabled.

object required

Changes

No recorded changes to this operation across all 1 revision of this API.