---
title: "Set your notification subscriptions"
type: reference
method: POST
path: /rest-api/notification-settings/subscriptions.do
tag: "Users"
---

# Set your notification subscriptions

`POST https://YOUR-NETWORK-DOMAIN/rest-api/notification-settings/subscriptions.do`

Replaces the notification events the caller subscribes to, as submitting the console's Notification settings does: templateIds lists every event to keep or add, and every other one is dropped. Send templateIds empty to unsubscribe from all. Only the events the GET lists can be chosen.

## Form params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `templateIds` | array<string> | yes | `3,7` | Ids of the notification events to subscribe to, comma-separated or repeated; empty to unsubscribe from all |

## Responses

- `200` — The settings after the change, in the shape of the GET
- `400` — templateIds is missing, or names an event users cannot subscribe to
- `401` — Authentication error
- `403` — The role skips all notifications, or has no view rights on campaigns or inventory

## Example request

```bash
curl --request POST \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/notification-settings/subscriptions.do' \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data-urlencode 'templateIds=3,7'
```

Source: https://epom.com/ad-server/docs/api/users/post-notification-settings-subscriptions