Set Email Notification Configuration
put
/documents/api/1.2/config/notification/email
Update email notification configuration for this service instance. To update this configuration, you must log in as an administrator.
Request
Supported Media Types
- application/json
- application/xml
The request body defines the details of setting email notification in this service instance.
Root Schema : SetNotificationEmailRequest
Type:
object
Set email notification configuration request.
Show Source
-
disableEmailNotifications(optional):
string
Set to
true
if email notification needs to be disabled. Set tofalse
otherwise.
Example Request (application/json)
{
"disableEmailNotifications":"true"
}
Response
Supported Media Types
- application/json
- application/xml
200 Response
The request was fulfilled.
Root Schema : SetNotificationEmailResponse
Type:
object
Set email notification configuration response.
Show Source
-
errorCode(optional):
number
An error code of zero (0) indicates no errors.
-
type(optional):
string
Item type
config
.
Example Response (application/json)
{
"errorCode":"0",
"type":"config"
}
400 Response
Input value is invalid or value requested did not change.
403 Response
Forbidden if the user does not have Admin role.
Examples
The following example disables email notification for this service instance.
PUT .../config/notification/email
Request Header
None.
Request Body
{ "disableEmailNotifications": "true" }
HTTP Status Code
HTTP_STATUS = 200
JSON Response
{ "errorCode":"0", "type":"config"