The PUT /environments/{environmentId}/notificationsSettings endpoint updates the notifications settings for the specified environment. If an administrator sets a trusted email domain and trusted email address, then the from attribute must be configured to have email notifications sent using the trusted email address. Configuration of the replyTo attribute is optional.

This sample shows how to update the from.address and replyTo.address attribute values to designate trusted email addresses.