PUT
/
api
/
v1
/
settings
/
notifications
/
email
Update Email Notification Settings
curl --request PUT \
  --url http://localhost:8080/api/v1/settings/notifications/email \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --data '{
  "notification.email.enabled": false,
  "notification.email.username": "[email protected]",
  "notification.email.host": "smtp.gmail.com",
  "notification.email.port": 587,
  "notification.email.password": "",
  "notification.email.max_conns": 5,
  "notification.email.idle_timeout": "25s",
  "notification.email.wait_timeout": "60s",
  "notification.email.auth_protocol": "plain",
  "notification.email.email_address": "[email protected]",
  "notification.email.max_msg_retries": 3,
  "notification.email.hello_hostname": "",
  "notification.email.tls_type": "starttls",
  "notification.email.tls_skip_verify": false
}'
{
  "status": "success",
  "data": true
}

Authorizations

Authorization
string
header
required

Basic authentication using base64 encoded API key and secret. Format: Authorization: Basic <base64(api_key:api_secret)>

Body

application/json

Email notification settings

The body is of type object.

Response

200
application/json

Email settings update success

The response is of type object.