---
title: "PATCH /events/rules/{pbm_uuid}/"
method: PATCH
path: "/events/rules/{pbm_uuid}/"
tags: ["events"]
---

# PATCH /events/rules/{pbm_uuid}/

`PATCH /events/rules/{pbm_uuid}/`

NotificationRule Viewset

## Path parameters

- `pbm_uuid` string, uuid, required

## Request body

- PatchedNotificationRuleRequest — NotificationRule Serializer
  - `name` string
  - `transports` string[] — Select which transports should be used to notify the user. If none are selected, the notification will only be shown in the authentik UI.
  - `severity` 'notice' | 'warning' | 'alert'
  - `destination_group` string, uuid, nullable — Define which group of users this notification should be sent and shown to. If left empty, Notification won't ben sent.
  - `destination_event_user` boolean — When enabled, notification will be sent to user the user that triggered the event.When destination_group is configured, notification is sent to both.

## Response `200`

- NotificationRule — NotificationRule Serializer
  - `pk` string, uuid, required
  - `name` string, required
  - `transports` string[] — Select which transports should be used to notify the user. If none are selected, the notification will only be shown in the authentik UI.
  - `severity` 'notice' | 'warning' | 'alert'
  - `destination_group` string, uuid, nullable — Define which group of users this notification should be sent and shown to. If left empty, Notification won't ben sent.
  - `destination_group_obj` Group, required — Group Serializer
    - `pk` string, uuid, required
    - `num_pk` integer, required
    - `name` string, required
    - `is_superuser` boolean — Users added to this group will be superusers.
    - `parents` string[]
    - `parents_obj` RelatedGroup[], nullable, required
      - `pk` string, uuid, required
      - `name` string, required
      - `is_superuser` boolean — Users added to this group will be superusers.
      - `attributes` object
      - `group_uuid` string, uuid, required
    - `users` integer[]
    - `users_obj` PartialUser[], nullable, required
      - `pk` integer, required
      - `username` string, required — Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only.
      - `name` string, required — User's display name.
      - `is_active` boolean — Designates whether this user should be treated as active. Unselect this instead of deleting accounts.
      - `last_login` string, date-time, nullable
      - `email` string, email
      - `attributes` object
      - `uid` string, required
    - `attributes` object
    - `roles` string[]
    - `roles_obj` Role[], required
      - `pk` string, uuid, required
      - `name` string, required
    - `inherited_roles_obj` Role[], nullable, required
      - `pk` string, uuid, required
      - `name` string, required
    - `children` string[], required
    - `children_obj` RelatedGroup[], nullable, required
      - `pk` string, uuid, required
      - `name` string, required
      - `is_superuser` boolean — Users added to this group will be superusers.
      - `attributes` object
      - `group_uuid` string, uuid, required
  - `destination_event_user` boolean — When enabled, notification will be sent to user the user that triggered the event.When destination_group is configured, notification is sent to both.

## Other responses

- `400`
- `403`

---

[API](https://skmtc.dev/goauthentik/apis/authentik.md) · [All operations](https://skmtc.dev/goauthentik/apis/authentik/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/goauthentik/authentik/revisions/4e42e86021d7/schema)
