Newer Version Available

This content describes an older version of this product. View Latest

Save Changes to an Analytics Notification

Save Changes to an Analytics Notification using a PUT request.

Use a PUT request on the Analytics Notification resource to save changes to an analytics notification.

Example Usage
/services/data/v38.0/analytics/notifications/analytics notification ID
Example Request Body

In this example, an analytics notification is changed so that it runs daily at 9:00 AM instead of 3:00 AM.

1{
2  "active" : true,
3  "createdDate" : "",
4  "deactivateOnTrigger" : false,
5  "id" : "0AuR00000004CZTKA2",
6  "lastModifiedDate" : "",
7  "name" : "New Notification",
8  "recordId" : "00OR0000000PD55MAG",
9  "schedule" : {
10    "details" : {
11      "time" : 9
12    },
13    "frequency" : "daily"
14  },
15  "source" : "lightningReportSubscribe",
16  "thresholds" : [ {
17    "actions" : [ {
18      "configuration" : {
19        "recipients" : [ ]
20      },
21      "type" : "sendEmail"
22    } ],
23    "conditions" : null,
24    "type" : "always"
25  } ]
26}
Example Response Body

The response body reflects the updated and saved analytics notifications.

1{
2  "active" : true,
3  "createdDate" : "2016-08-12T05:57:19Z",
4  "deactivateOnTrigger" : false,
5  "id" : "0AuR00000004CZTKA2",
6  "lastModifiedDate" : "2016-08-12T06:12:24Z",
7  "name" : "New Notification",
8  "recordId" : "00OR0000000PD55MAG",
9  "schedule" : {
10    "details" : {
11      "time" : 9
12    },
13    "frequency" : "daily"
14  },
15  "source" : "lightningReportSubscribe",
16  "thresholds" : [ {
17    "actions" : [ {
18      "configuration" : {
19        "recipients" : [ ]
20      },
21      "type" : "sendEmail"
22    } ],
23    "conditions" : null,
24    "type" : "always"
25  } ]
26}