# Settings

- [JSON representation](https://developers.google.com/workspace/admin/alertcenter/reference/rest/v1beta1/Settings#SCHEMA_REPRESENTATION)
- [Notification](https://developers.google.com/workspace/admin/alertcenter/reference/rest/v1beta1/Settings#Notification)
  - [JSON representation](https://developers.google.com/workspace/admin/alertcenter/reference/rest/v1beta1/Settings#Notification.SCHEMA_REPRESENTATION)
- [CloudPubsubTopic](https://developers.google.com/workspace/admin/alertcenter/reference/rest/v1beta1/Settings#CloudPubsubTopic)
  - [JSON representation](https://developers.google.com/workspace/admin/alertcenter/reference/rest/v1beta1/Settings#CloudPubsubTopic.SCHEMA_REPRESENTATION)
- [PayloadFormat](https://developers.google.com/workspace/admin/alertcenter/reference/rest/v1beta1/Settings#PayloadFormat)

Customer-level settings.

| JSON representation |
|---|
| ``` { "notifications": [ { object (`https://developers.google.com/workspace/admin/alertcenter/reference/rest/v1beta1/Settings#Notification`) } ] } ``` |

| Fields ||
|---|---|
| `notifications[]` | ``object (`https://developers.google.com/workspace/admin/alertcenter/reference/rest/v1beta1/Settings#Notification`)`` The list of notifications. |

## Notification

Settings for callback notifications. For more details see [Google Workspace Alert Notification](https://developers.google.com/workspace/admin/alertcenter/guides/notifications).

| JSON representation |
|---|
| ``` { "cloudPubsubTopic": { object (`https://developers.google.com/workspace/admin/alertcenter/reference/rest/v1beta1/Settings#CloudPubsubTopic`) } } ``` |

| Fields ||
|---|---|
| Union field `destination`. Exactly one destination to be specified. `destination` can be only one of the following: ||
| `cloudPubsubTopic` | ``object (`https://developers.google.com/workspace/admin/alertcenter/reference/rest/v1beta1/Settings#CloudPubsubTopic`)`` A Google Cloud Pub/sub topic destination. |

## CloudPubsubTopic

A reference to a Cloud Pubsub topic.

To register for notifications, the owner of the topic must grant `alerts-api-push-notifications@system.gserviceaccount.com` the `projects.topics.publish` permission.

| JSON representation |
|---|
| ``` { "topicName": string, "payloadFormat": enum (`https://developers.google.com/workspace/admin/alertcenter/reference/rest/v1beta1/Settings#PayloadFormat`) } ``` |

| Fields ||
|---|---|
| `topicName` | `string` The `name` field of a Cloud Pubsub [Topic](https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.topics#Topic). |
| `payloadFormat` | ``enum (`https://developers.google.com/workspace/admin/alertcenter/reference/rest/v1beta1/Settings#PayloadFormat`)`` Optional. The format of the payload that would be sent. If not specified the format will be JSON. |

## PayloadFormat

The format of the payload.

| Enums ||
|---|---|
| `PAYLOAD_FORMAT_UNSPECIFIED` | Payload format is not specified (will use JSON as default). |
| `JSON` | Use JSON. |