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 Dynamic Schedule for a Source

Update Dynamic Schedule for a Source

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

PUT Request in JSON Format

Generate a PUT request. For example, the following PUT request updates a dynamic schedule in a RulePoint application:
PUT http://invrw28cep14:8080/rulepoint/api/projects/1/sources/de27147d-22cf-4c62-b7c7-cbc365548717/schedules/1 Accept: application/json Content-Type: application/json Cookie: JSESSIONID=<VALID SESSION ID>

PUT Body in JSON Format

{ "repeatInterval": "15000", "scheduleType": "DYNAMIC"}

PUT Response in JSON Format

Returns the schedule object and source code. Returns the error object if an error occurs.
{ "id": "1", "self": { "rel": "self", "href": "/api/projects/1/sources/de27147d-22cf-4c62-b7c7-cbc365548717/schedules/1", "id": "1" }, "actions": [ { "rel": "update", "href": "/api/projects/1/sources/de27147d-22cf-4c62-b7c7-cbc365548717/schedules/1", "type": "PUT" }, { "rel": "delete", "href": "/api/projects/1/sources/de27147d-22cf-4c62-b7c7-cbc365548717/schedules/1", "type": "DELETE" } ], "scheduleType": "DYNAMIC", "runState": "ACTIVE", "repeatInterval": 15000 }
Response Code: 200 OK

PUT Request in XML Format

Generate a PUT request. For example, the following PUT request updates a dynamic schedule in a RulePoint application:
PUT http://invrw28cep14:8080/rulepoint/api/projects/1/sources/de27147d-22cf-4c62-b7c7-cbc365548717/schedules/1 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> <repeatInterval>15000</repeatInterval> <scheduleType>DYNAMIC</scheduleType> </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/1</href> <rel>update</rel> <type>PUT</type> </action> <action> <href>/api/projects/1/sources/de27147d-22cf-4c62-b7c7-cbc365548717/schedules/1</href> <rel>delete</rel> <type>DELETE</type> </action> </actions> <id>1</id> <name/> <self> <href>/api/projects/1/sources/de27147d-22cf-4c62-b7c7-cbc365548717/schedules/1</href> <id>1</id> <rel>self</rel> </self> <repeatInterval>15000</repeatInterval> <runState>ACTIVE</runState> <scheduleType>DYNAMIC</scheduleType> </schedule>
Response Code: 200 OK

0 COMMENTS

We’d like to hear from you!