Newer Version Available

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

Create an Analytics Notification

Create an Analytics Notification using a POST request.

Use a POST request on the Analytics Notification List resource to create an analytics notification.

Example Usage
/services/data/v38.0/analytics/notifications
Example Request Body
1{
2  "active" : true,
3  "createdDate" : "",
4  "deactivateOnTrigger" : false,
5  "id" : "",
6  "lastModifiedDate" : "",
7  "name" : "New Notification",
8  "recordId" : "00OR0000000PD55MAG",
9  "schedule" : {
10    "details" : {
11      "time" : 3
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
1{
2  "active" : true,
3  "createdDate" : "2016-08-12T05:57:19Z",
4  "deactivateOnTrigger" : false,
5  "id" : "0AuR00000004CZTKA2",
6  "lastModifiedDate" : "2016-08-12T05:57:19Z",
7  "name" : "New Notification",
8  "recordId" : "00OR0000000PD55MAG",
9  "schedule" : {
10    "details" : {
11      "time" : 3
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}