Table of Contents

Search

  1. Preface
  2. RulePoint Interfaces
  3. RulePoint Services
  4. Custom Service API
  5. Java Adapter for REST API
  6. RulePoint REST API
  7. Sample XML and JSON Requests and Responses
  8. RulePoint Pluggable Authentication Module
  9. HTTP Request and Response Attributes

Developer Guide

Developer Guide

Update Static Schedule for a Source

Update Static Schedule for a Source

Use the PUT method to update a static schedule for a source in RulePoint.

PUT Request in JSON Format

To update a static schedule in a RulePoint application, generate the following PUT request:
PUT http://invrw28cep14:8080/rulepoint/api/projects/1/sources/de27147d-22cf-4c62-b7c7-cbc365548717/schedules/2 Accept: application/json Content-Type: application/json Cookie: JSESSIONID=<VALID SESSION ID>

PUT Body in JSON Format

{ "scheduleType": "STATIC", "startDate": "2013-09-25T19:30:00+0530", "isScheduledForSpecificDaysOfWeek": false, "repeatInterval": "60000", "endDate": "2013-10-30T19:30:00+0530" }

PUT Response in JSON Format

Returns the schedule object and source code 200 OK. Returns the error object if an error occurs.
{ "id": "2", "self": { "rel": "self", "href": "/api/projects/1/sources/de27147d-22cf-4c62-b7c7-cbc365548717/schedules/2", "id": "2" }, "actions": [ { "rel": "update", "href": "/api/projects/1/sources/de27147d-22cf-4c62-b7c7-cbc365548717/schedules/2", "type": "PUT" }, { "rel": "delete", "href": "/api/projects/1/sources/de27147d-22cf-4c62-b7c7-cbc365548717/schedules/2", "type": "DELETE" } ], "scheduleType": "STATIC", "runState": "ACTIVE", "startDate": "2013-09-25T19:30:00+0530", "isScheduledForSpecificDaysOfWeek": false, "repeatInterval": 60000, "numRuns": 0, "endDate": "2013-09-30T19:30:00+0530" }
Response Code: 200 OK

PUT Request in XML Format

PUT http://invrw28cep14:8080/rulepoint/api/projects/1/sources/de27147d-22cf-4c62-b7c7-cbc365548717/schedules/2 Accept: application/xml Content-Type: application/xml Cookie: JSESSIONID=<VALID SESSION ID>

PUT Body in XML Format

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <schedule> <scheduleType>STATIC</scheduleType> <startDate>2013-09-26T19:30:00+0530</startDate> <endDate>2013-10-30T19:30:00+0530</endDate> <isScheduledForSpecificDaysOfWeek>false</isScheduledForSpecificDaysOfWeek> <numRuns>0</numRuns> <repeatInterval>60000</repeatInterval> </schedule>

PUT Response in XML Format

Returns the schedule object and response code. Returns the error object if an error occurs.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <schedule> <actions> <action> <href>/api/projects/1/sources/de27147d-22cf-4c62-b7c7-cbc365548717/schedules/2</href> <rel>update</rel> <type>PUT</type> </action> <action> <href>/api/projects/1/sources/de27147d-22cf-4c62-b7c7-cbc365548717/schedules/2</href> <rel>delete</rel> <type>DELETE</type> </action> </actions> <id>2</id> <name/> <self> <href>/api/projects/1/sources/de27147d-22cf-4c62-b7c7-cbc365548717/schedules/2</href> <id>2</id> <rel>self</rel> </self> <endDate>2013-09-30T19:30:00+0530</endDate> <isScheduledForSpecificDaysOfWeek>false</isScheduledForSpecificDaysOfWeek> <numRuns>0</numRuns> <repeatInterval>120000</repeatInterval> <runState>ACTIVE</runState> <scheduleType>STATIC</scheduleType> <startDate>2013-09-25T19:30:00+0530</startDate> </schedule>
Response Code: 200 OK

0 COMMENTS

We’d like to hear from you!