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

Reassign Object

Reassign Object

Use the POST method to reassign an object in RulePoint.

POST Request in JSON Format

Generate a POST request. For example, the following POST request reassigns an object in a RulePoint application:
POST http://localhost:8080/rulepoint/api/projects/1/reassign Content-Type: application/json Accept: application/json Cookie: JSESSIONID=<VALID_SESSION_ID>

POST Body in JSON Format

{ "topologyId": 1, "itemsToDeploy": [ { "artifactId": "d4dbfd17-4053-446c-83b8-dda9dc3f48c6", "groupNames": [ "Source Controller2" ] } ] }

POST Response in JSON Format

Returns the object and response code. Returns the error object if an error occurs.
{ "successful": true, "txnId": -1333205577, "dpId": "dff975ab-cf27-45ca-89bc-c3326db69941" }
Response Code : 200 OK

POST Request in XML Format

Generate a POST request. For example, the following POST request reassigns an object in a RulePoint application:
POST http://localhost:8080/rulepoint/api/projects/1/reassign Content-Type: application/xml Accept: application/xml Cookie: JSESSIONID=<VALID_SESSION_ID>

POST Body in XML Format

<deploymentRequest>     <itemsToDeploy>         <item>             <artifactId>1fbafd49-d01e-44aa-9bdf-cc95fe2b4383</artifactId>             <groupNames>                 <groupName>SC2</groupName>             </groupNames>         </item>       </itemsToDeploy>     <topologyId>1</topologyId> </deploymentRequest>

POST Body in XML Format

Returns the object and response code. Returns the error object if an error occurs.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <deploymentResult> <dpId>71b66b44-6b56-43c3-8df5-aadc4886e0c3</dpId> <successful>true</successful> <txnId>-441803971</txnId> </deploymentResult>
Response Code: 200 OK

0 COMMENTS

We’d like to hear from you!