(PUT) /VEODEmailSettings
Edits VEOD email notification settings.
Request
To edit email notification settings, send the PUT HTTPS request to the URL of the /VEODEmailSettings resource.
HTTPS Request
PUT https://<Backup-Office365>:4443/v3/VEODEmailSettings |
Request Headers
The request header must contain the authorization token for the current logon session.
Request Body
To edit email notification settings, you need to enter in the request body the corresponding properties with new values. The properties you omit will remain unchanged.
The request body can contain the following properties:
Property | Type | Description |
---|---|---|
Enable | bool | If set to True, indicates that Veeam Backup for Microsoft Office 365 will send email notifications on the job run results. For example, "enableNotification": "true". |
SmtpServer | string | Specifies the full DNS name or IP address of the SMTP server for sending email notifications. For example, "smtpServer": "smtp.office365.com". |
Port | int | Specifies the port for connecting to SMTP server. For example, "port": "587". |
From | string | Specifies notification sender email address with the rights to connect to SMTP server. For example, "from": "support@tech.com". |
UseSSL | bool | If set to True, indicates that Veeam Backup for Microsoft Office 365 uses a secure connection for email notification transmission. Otherwise, email notifications will be transmitted through the connection that does not require SSL authentication. For example, "useSSL": "true". |
Use | bool | If set to True, indicates that SMTP server requires authentication. Otherwise, the connection will be established to SMTP server, which does not enforce authentication. For example, "useAuthentication": "true". |
UserName | string | Specifies the user name you want to use for authenticating with SMTP server. For example, "username": " vscott@tech.onmicrosoft.com". |
UserPassword | string | Specifies the password you want to use for authenticating with SMTP server. For example, "userPassword": "P@ssW0rd". |
_links | Dictionary of string [key] and Object [value] | Links to related resources (navigation property). |
For example:
{ "enableNotification": "true", "smtpServer": "smtp.office365.com", "port": 587, "useAuthentication": "false", "useSSL": "true", "userName": "vscott@tech.onmicrosoft.com", "userPassword": "P@ssW0rd", "from": "vbo@tech.com", "_links": { "self": { "href": "https://support.east.local:4443/v3/veodemailsettings" } } } |
Response
The server returns the following response to the client.
Response Codes
A successfully completed operation returns response code 200 OK.
Response Headers
The response to this request contains the following headers. The response may also include additional standard HTTPS headers.
Header | Description |
Content-length | The length of the response body. |
Content-type | The media type and syntax of the request body message: application/json; charset=utf-8 |
Response Body
None.
Example
The example below shows how to update email notification settings.
Request: PUT https://support.east.local:4443/v3/VEODEmailSettings
Request Header: Authorization: Bearer <Access-Token>
Request Body: { "enableNotification": "true", "smtpServer": "smtp.office365.com", "port": 587, "useAuthentication": "false", "useSSL": "true", "userName": "vscott@tech.onmicrosoft.com", "userPassword": "P@ssW0rd", "from": "vbo@tech.com", "_links": { "self": { "href": "https://support.east.local:4443/v3/veodemailsettings" } } }
Response: 200 OK |