---
title: "Create a CC notification"
method: POST
path: "/gdc/projects/{projectId}/dataload/processes/{processId}/notificationRules"
tags: ["notification"]
---

# Create a CC notification

`POST /gdc/projects/{projectId}/dataload/processes/{processId}/notificationRules`

## Request

- Base URL: `https://secure.gooddata.com`
- URL: `https://secure.gooddata.com/gdc/projects/{projectId}/dataload/processes/{processId}/notificationRules`
- Auth: none declared

- `email` (required, string) - The email address generated emails are sent to. Specify only one email address per notification.
- `subject` (required, string) - The subject of the generated email.
- `body` (required, string) - The body of the generated email.
- `events` (required, array) - The IDs of events that trigger the notification. Specify at least one. **Values:**</br>
   `dataload.process.schedule`, </br>
    `dataload.process.start`,</br>
    `dataload.process.finish.ok`,</br>
     `dataload.process.finish.error`</br>
- `count` (optional, integer) - The number of consecutive failures after which a notification about a failure should be sent. The maximum number is 30.
The process must have automatic retry set (see [Configuring Automatic Retry of Failed Processes](https://help.gooddata.com/display/doc/Configuring+Automatic+Retry+of+Failed+Processes)).

## Request body

- NotificationRule1
  - `notificationRule` NotificationRuleCommon, required
    - `events` string[], required: The IDs of events that trigger the notification.
    - `subject` string, required: The subject of the generated email.
    - `body` string, required: The body of the generated email.
    - `email` string, email, nullable, required: The email address that generated emails are sent to. Specify only one email address per notification.
    - `triggerWhen` TriggerWhen
      - `consecutiveFailures` ConsecutiveFailures
        - `count` integer, required

## Response `201`

Created - create new notification rule (aka email subscription) for process

- NotificationRule
  - `notificationRule` NotificationRuleResponse, required
    - `events` string[], required: The IDs of events that trigger the notification.
    - `subject` string, required: The subject of the generated email.
    - `body` string, required: The body of the generated email.
    - `email` string, email, nullable, required: The email address that generated emails are sent to. Specify only one email address per notification.
    - `triggerWhen` TriggerWhen
      - `consecutiveFailures` ConsecutiveFailures
        - `count` integer, required
    - `links` object
      - `self` string, required: The URI of this notification rule.
      - `subscription` string, required: The URI of the email notification subscription.
      - `channel` string[], required: The URI of the email channel associated with this rule. This channel is created when you create the subscription.

---

[API](https://skmtc.dev/gooddata/apis/gooddata-api-documentation.md) - [All operations](https://skmtc.dev/gooddata/apis/gooddata-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/gooddata/apis/gooddata-api-documentation/revisions/e5dc0ee6ab00?raw)
