This example shows how to run an hourly schedule of a Web Intelligence document in the default format to an email address (every hour between 26/08/2012 and 14/09/2012). If the schedule fails, there will be 2 retries with 60 seconds between each of them.
POST /documents/8002/schedules
Request body:
<schedule> <name>nameOfSchedule</name> <format type="webi"/> <destination> <mail> <from>somebody@company.com</from> <to>person1@company.com;person2@company.com</to> <cc>somebody_in_copy@company.com</cc> <bcc>list_of_people_in_blind_copy.company.com</bcc> <subject>Web Intelligence Restful WS</subject> <message>Text to send</message> <addAttachment>true</addAttachment> </mail> </destination> <hourly retriesAllowed="2" retryIntervalInSeconds="30"> <startdate>2012-08-26T14:00:00</startdate> <enddate>2012-09-14T16:00:00</enddate> <hour>1</hour> <minute>0</minute> </hourly> </schedule>