---
title: "Set the actions for a push rule."
method: PUT
path: "/_matrix/client/v3/pushrules/global/{kind}/{ruleId}/actions"
tags: ["Push notifications"]
---

# Set the actions for a push rule.

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

## Request

- Base URL: `https://matrix.org`
- URL: `https://matrix.org/_matrix/client/v3/pushrules/global/{kind}/{ruleId}/actions`
- 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/actions/put.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint allows clients to change the actions of a push rule.
This can be used to change the actions of builtin rules.

## Path parameters

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

## Request body

- object
  - `actions` union[], required: The action(s) to perform for this rule.
    - union
      - string
      - object

## Response `200`

The actions for the push rule were set.

- 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)
