Skip navigation

Data Alerts API

score 17
You have not voted. Active

Hi all,

 

I know that there's a lot there on the subject: FAQ:  Rule-based Alert

 

And I know there's the new data-alert functionality in 10.3 (10.4?). <= That's exactly what I need - except I want to create & manage those programmatically; (or at the very least be able to do that from an embedded dashboard).

 

What I would want is one (or both) of the following:

 

1. Be able to create a data-alert programmatically through JavaScript

or better

2. Be able to create a data-alert programamtically through the REST API (preferred)

 

Either way, I should be able to fill this in through code:

 

Something along those lines:

 


URI

PUT /api/api-version/sites/site-id/views/view-id/alerts

Request Body

<tsRequest>
   <alertmeasure="Avg. Days to due date"
          condition="
Above or equal to"
        threshold="-29"
        subject="Data alert - custom subject"
        send-interval="Daily at most"
>
        <recipients>
            <item>email1@somewhere.com</item>
            <item>email2@somewhere.com</item>
        </recipients>
  </alert>
</tsRequest>

 

Of course, expecting an alert "id" back.

 

In the end, the whole alerting system should be manageable through the REST API (Create, modify, delete, query).

 

All the best,

 

Michel

Comments

Vote history