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

{
  "active" : true,
  "createdDate" : "",
  "deactivateOnTrigger" : false,
  "id" : "",
  "lastModifiedDate" : "",
  "name" : "New Notification",
  "recordId" : "00OR0000000PD55MAG",
  "schedule" : {
    "details" : {
      "time" : 3
    },
    "frequency" : "daily"
  },
  "source" : "lightningReportSubscribe",
  "thresholds" : [ {
    "actions" : [ {
      "configuration" : {
        "recipients" : [ ]
      },
      "type" : "sendEmail"
    } ],
    "conditions" : null,
    "type" : "always"
  } ]
}

Example Response Body

{
  "active" : true,
  "createdDate" : "2016-08-12T05:57:19Z",
  "deactivateOnTrigger" : false,
  "id" : "0AuR00000004CZTKA2",
  "lastModifiedDate" : "2016-08-12T05:57:19Z",
  "name" : "New Notification",
  "recordId" : "00OR0000000PD55MAG",
  "schedule" : {
    "details" : {
      "time" : 3
    },
    "frequency" : "daily"
  },
  "source" : "lightningReportSubscribe",
  "thresholds" : [ {
    "actions" : [ {
      "configuration" : {
        "recipients" : [ ]
      },
      "type" : "sendEmail"
    } ],
    "conditions" : null,
    "type" : "always"
  } ]
}