---
title: "Create Notification Policy"
method: POST
path: "/notificationCenter/policy"
tags: ["Notification Center Service"]
---

# Create Notification Policy

`POST /notificationCenter/policy`

Creates a notification policy. Only for Compute policies.

## Parameters

- `#/paths/~1azure~1costs/get/parameters/0` — unresolved $ref

## Request body

- object
  - `name` string — The name of the notification policy.
  - `description` string — A brief description of the notification policy. Can be null or not empty.
  - `privacyLevel` 'public' | 'private', required — The privacy level of the notification policy.
  - `subscriptions` object[] — For public policies, you can decide how the notifications are delivered. For example, by email, webhook, slack, sns.
    - `type` 'email' | 'webhook' | 'slack' | 'sns'
    - `endpoint` string — Target endpoint [max limit 500 characters]
  - `registeredUsers` object[]
    - `userEmail` string — User's email address. The user must be part of the organization.
    - `subscriptionTypes` string[]
  - `isActive` boolean
  - `computePolicyConfig` object, required — You can only use one resource type. For example: All resources (use "shouldIncludeAllResources": true), Rule Based Resources (use at least one dynamicRules), OR Individual Resources (use a least one resourceIds).
    - `events` object[], required
      - `event` string
      - `type` 'INFO' | 'WARN' | 'ERROR'
    - `shouldIncludeAllResources` boolean
    - `resourceIds` string[] — Manually specified resource IDs to include in the policy. Must be resources related to the account.
    - `dynamicRules` object[]
      - `filterConditions` object[]
        - `identifier` 'resource_name' | 'resource_id' | 'region' | 'image' | 'tag' | 'load_balancer' | 'availability_zones' | 'security_groups'
        - `operator` 'equals' | 'not_equals' | 'contains' | 'not_contains' | 'start_with' | 'end_with'
        - `expression` string

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/spot/apis/spot-by-flexera-api.md) · [All operations](https://skmtc.net/spot/apis/spot-by-flexera-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/spot/spot-by-flexera-api/revisions/72813baf8d47/schema)
