Adds an alerter to a Web Intelligence document.
POST <webiURL>/documents/{documentId}/alerters
Where:
Request body:
<alerter> <name> <description> <rule> <action> </rule> </alerter>
Response type : application/xml or application/json
The response is a message stating the success or failure of the request.
POST <webiURL>/documens/1223/alerters
Request body:
<name>ciomplexalerter</name> <description>Adda complexe alerter using Raylight</description> <rule> <conditions> <condition expressionId="DP0.DO93" operator="Greater"> <operand>10</operand> <operand>20</operand> </condition> <condition expressionId="DP0.DO93" operator="Greater"> <target expressionId="DP0.DO93" /> </condition> </conditions> <action> <data> <formula type="HyperLink">my hyperlink</formula> <format type="Custom" sample="1 234,57"> <template positive="STANDARD"/> </format> </data> <style> <border> <top thickness="Medium" rgb="#800000" style="Plain"/> <bottom thickness="Medium" rgb="#800000" style="Plain"/> <left thickness="Medium" rgb="#800000" style="Plain"/> <right thickness="Medium" rgb="#800000" style="Plain"/> </border> <background width="0" height="0"> <color rgb="#00ff00"/> <image src="bores://00002"> <alignment horizontal="Left" vertical="Top"/> </image> </background> <font size="12" face="Arial" italic="false" bold="false" strikethrough="true" underline="true" rgb="#ff6600"/> <alignment horizontal="Center" vertical="Center"/> </style> </action> </rule> <rule> <expression>="hello"</expression> </rule> </alerter>
Response:
<success> <message>The resource of type 'Alerter' with identifier '2' has been successfully created.</message> <id>2</id> </success>