[//]: # (werk v2)
# notification_rules: auth value should be a required field when auth is enabled
key | value
---------- | ---
date | 2024-06-05T15:51:31+00:00
version | 2.4.0b1
class | fix
edition | cre
component | rest-api
level | 1
compatible | yes
Previously, when you created a notification rule via the REST-API using the
'mail' plugin, the value of the 'auth' field within the
"enable_sync_smtp" schema
was not a required field. This is incorrect. If 'auth' is enabled, then
the value of 'auth' should be a required field. This werk now addresses
this issue.
e.g
```
"enable_sync_smtp": {
"state": "enabled",
"value": {
"auth": {
"state": "enabled",
"value": {"method": "plaintext",
"password": "1234", "user": "user_a"},
},
"encryption": "ssl_tls",
"port": 25,
"smarthosts": ["abc", "def"],
},
}
```