# NotificationSettings

- [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/NotificationSettings#SCHEMA_REPRESENTATION)
- [NotificationPreference](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/NotificationSettings#NotificationPreference)
  - [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/NotificationSettings#NotificationPreference.SCHEMA_REPRESENTATION)

This service is available for customers who migrated SOAR to a customer managed project and have the Chronicle API enabled. NotificationSettings contains the notification settings for a user.

| JSON representation |
|---|
| ``` { "name": string, "maxDaysToShowInFeed": integer, "eventBasedNotificationPreferences": { string: { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/NotificationSettings#NotificationPreference`) }, ... }, "canReceiveSystemNotifications": boolean, "canReceiveUserNotifications": boolean } ``` |

| Fields ||
|---|---|
| `name` | `string` Output only. Identifier. The resource name of the notification settings. Format: projects/{project}/locations/{location}/instances/{instance}/legacySoarUsers/{legacySoarUser}/notificationSettings |
| `maxDaysToShowInFeed` | `integer` Required. Specifies the maximum number of days notifications are shown in the user's feed. The acceptable range for the number is 2 to 7. |
| `eventBasedNotificationPreferences` | ``map (key: string, value: object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/v1/NotificationSettings#NotificationPreference`))`` Required. Maps predefined notification type strings to their specific notification preferences. Valid keys: "caseAssignment", "caseStatusChange", "caseComment", "task", "sharedItem", "manualAction", "playbookAction". An object containing a list of `"key": value` pairs. Example: `{ "name": "wrench", "mass": "1.3kg", "count": "3" }`. |
| `canReceiveSystemNotifications` | `boolean` Required. Indicates whether the user can receive system notifications. |
| `canReceiveUserNotifications` | `boolean` Required. Indicates whether the user can receive user-generated notifications. |

## NotificationPreference

Contains email and push notification preferences for an event.

| JSON representation |
|---|
| ``` { "emailEnabled": boolean, "pushEnabled": boolean } ``` |

| Fields ||
|---|---|
| `emailEnabled` | `boolean` Required. Specifies if email notifications are enabled for the event. |
| `pushEnabled` | `boolean` Required. Specifies if push notifications are enabled for the event. |