---
title: "POST /notifications/subscriptions/{account_notification_id}/rules"
method: POST
path: "/notifications/subscriptions/{account_notification_id}/rules"
tags: ["Notification Rules"]
---

# POST /notifications/subscriptions/{account_notification_id}/rules

`POST /notifications/subscriptions/{account_notification_id}/rules`

## Path parameters

- `account_notification_id` string, required

## Request body

- NsNotificationRule
  - `id` string
  - `position` integer, nullable
  - `name` string
  - `condition` string
  - `enabled` boolean
  - `default` string
  - `template` NsEmailTemplate, required
    - `id` string
    - `subject` string, required
    - `body` string, required
    - `system` boolean — To identify template as read-only.
  - `recipients` NsRecipients, required
    - `users` NsUserReference[], required
      - `id` string, required
      - `name` string, nullable
      - `email` string, email
      - `icon` string, nullable
      - `blocklisted` boolean
    - `groups` NsGroupReference[], required
      - `id` string, required
      - `name` string
      - `color` string, nullable
      - `description` string
      - `is_decommissioned` string
  - `account_notification` string, required

## Response `201`

- NsNotificationRule
  - `id` string
  - `position` integer, nullable
  - `name` string
  - `condition` string
  - `enabled` boolean
  - `default` string
  - `template` NsEmailTemplate, required
    - `id` string
    - `subject` string, required
    - `body` string, required
    - `system` boolean — To identify template as read-only.
  - `recipients` NsRecipients, required
    - `users` NsUserReference[], required
      - `id` string, required
      - `name` string, nullable
      - `email` string, email
      - `icon` string, nullable
      - `blocklisted` boolean
    - `groups` NsGroupReference[], required
      - `id` string, required
      - `name` string
      - `color` string, nullable
      - `description` string
      - `is_decommissioned` string
  - `account_notification` string, required

## Other responses

- `400`

---

[API](https://skmtc.net/cloudblue/apis/cloudblue-connect-api.md) · [All operations](https://skmtc.net/cloudblue/apis/cloudblue-connect-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cloudblue/cloudblue-connect-api/versions/54fef191d46c/schema)
