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

Create Dynamic Schedule for a Source

Create Dynamic Schedule for a Source

Use the POST method to create a dynamic schedule for a source.

POST Request in JSON Format

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

POST Body in JSON Format

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

POST Response in JSON Format

Returns the schedule object and response 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": 5000 }
Response Code: 201 Created

POST Request in XML Format

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

POST Body in XML Format

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <schedule> <repeatInterval>5000</repeatInterval> <scheduleType>DYNAMIC</scheduleType> </schedule>

POST 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>5000</repeatInterval> <runState>ACTIVE</runState> <scheduleType>DYNAMIC</scheduleType> </schedule>
Response Code: 201 Created

0 COMMENTS

We’d like to hear from you!