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
}
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
}
Basic authentication using base64 encoded API key and secret. Format: Authorization: Basic <base64(api_key:api_secret)>
Email notification settings
The body is of type object
.
Email settings update success
The response is of type object
.
Was this page helpful?