---
title: "Update notification settings"
method: POST
path: "/tenant/notification"
tags: ["Notification"]
---

# Update notification settings

`POST /tenant/notification`

Update notification settings.

## Request body

- object
  - `type` 'SMTP' | 'MS365' | 'GMAIL', required — The email server type. Can be either: - `SMTP`: Use generic SMTP server. - `MS365` Use Microsoft 365 email service. - `GMAIL` Use Google Gmail service.
  - `server` string — SMTP server used for sending mails.
  - `port` integer — A port number is a 16-bit unsigned integer, thus ranging from 0 to 65535. For TCP, port number 0 is reserved and cannot be used, while for UDP, the source port is optional and a value of zero means no port
  - `reply_to` string — A Reply-To address is identified by inserting the Reply-To header in your email. It is the email address that the reply message is sent when you want the reply to go to an email address that is different than the From: address.
  - `username` string, required — Username or email address.
  - `password` string — Password for email account.
  - `auth` 'DISABLE' | 'AUTO' | 'LOGIN' | 'PLAIN' — The authentication protocols. Can be either: - `DISABLE`: Skip authentication mechanism. - `AUTO`: Use auto-selected authentication algorithms by server (Currently only supports LOGIN and PLAIN). - `LOGIN`: Use LOGIN authentication mechanism. - `PLAIN` Use PLAIN authentication mechanism.
  - `enable_tls_ssl` boolean — Whether to enable TLS/SSL.
  - `enable_starttls_auto` boolean — Whether StartTLS is automatically enabled.
  - `recipients` string — Comma-separated list of email address that should receive notifications. Allow up to 15 email addresses.
  - `notify_user_registration` boolean — Notify via email when user registered.
  - `notify_queue_sla_breached` boolean — Notify queue manager via email when SLA time has been breached.
  - `notify_queue_callback` boolean — Notify queue manager via email when callback has been made.
  - `notify_queue_callback_failed` boolean — Notify queue manager via email when callback failed.
  - `notify_queue_call_lost` boolean — Notify queue Manager via email when call lost.

## Response `200`

OK

## Other responses

- `4XX` — Error

---

[API](https://skmtc.net/portsip/apis/portsip-pbx-rest-api.md) · [All operations](https://skmtc.net/portsip/apis/portsip-pbx-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/portsip/portsip-pbx-rest-api/revisions/577415d4a3d5/schema)
