Business Rules APIs
- 1 Lists available business rule instances
- 2 Delete business rule with given UUID
- 3 Fetch template group with the given UUID
- 4 Fetch rule templates of the template group with given UUID
- 5 Fetch rule template of specific UUID available under a template group with specific UUID
- 6 Fetch available template groups
- 7 Fetch business rule instance with given UUID
- 8 Create and save a business rule
- 9 Update business rules instance with given UUID
Lists available business rule instances
Overview
Description | Returns the list of business rule instances that are currently available. |
|---|---|
API Context |
|
HTTP Method |
|
Request/Response Format |
|
Authentication | Basic |
Username |
|
Password |
|
Runtime | Dashboard |
curl command syntax
Sample curl command
curl -X GET "https://localhost:9643/business-rules/instances" -u admin:admin -kSample output
Response
HTTP Status Code | 200 or 404 For descriptions of the HTTP status codes, see HTTP Status Codes. |
|---|
Delete business rule with given UUID
Overview
Description | Deletes the business rule with the given UUID. |
|---|---|
API Context |
|
HTTP Method |
|
Request/Response Format |
|
Authentication | Basic |
Username |
|
Password |
|
Runtime | Dashboard |
Parameter description
Parameter | Description |
|---|---|
| The UUID (Uniquely Identifiable ID) of the business rules instance to be deleted. |
curl command syntax
Sample curl command
curl -X DELETE "https://localhost:9643/business-rules/instances/business-rule-1?force-delete=false" -H "accept: application/json" -u admin:admSample output
Response
HTTP Status Code | 200 or 404 For descriptions of the HTTP status codes, see HTTP Status Codes. |
|---|
Fetch template group with the given UUID
Overview
Description | Returns the template group that has the given UUID. |
|---|---|
API Context |
|
HTTP Method |
|
Request/Response Format |
|
Authentication | Basic |
Username |
|
Password |
|
Runtime | Dashboard |
Parameter description
Parameter | Description |
|---|---|
| The UUID of the template group to be fetched. |
curl command syntax
Sample curl command
curl -X GET "https://localhost:9643/business-rules/template-groups/sweet-factory" -u admin:admin -kSample output
Response
HTTP Status Code | 200 or 404 For descriptions of the HTTP status codes, see HTTP Status Codes. |
|---|
Fetch rule templates of the template group with given UUID
Overview
Description | Returns the rule templates of the template group with the given UUID. |
|---|---|
API Context |
|
HTTP Method |
|
Request/Response Format |
|
Authentication | Basic |
Username |
|
Password |
|
Runtime | Dashboard |
Parameter description
Parameter | Description |
|---|---|
| The UUID of the template group of which the rule templates need to be fetched. |
curl command syntax
Sample curl command
curl -X GET "https://localhost:9643/business-rules/template-groups/sweet-factory/templates" -u admin:admin -kSample output
Response
HTTP Status Code | 200 or 404 For descriptions of the HTTP status codes, see HTTP Status Codes. |
|---|
Fetch rule template of specific UUID available under a template group with specific UUID
Overview
Description | Returns the rule template with the specified UUID that is defined under the template group with the specified UUID. |
|---|---|
API Context |
|
HTTP Method |
|
Request/Response Format |
|
Authentication | Basic |
Username |
|
Password |
|
Runtime | Dashboard |
Parameter description
Parameter | Description |
|---|---|
| The UUID of the template group from which the specified rule template needs to be retrieved. |
| The UUID of the rule template that needs to be retrieved from the specified template group. |
curl command syntax
Sample curl command
curl -X GET "https://localhost:9643/business-rules/template-groups/sweet-factory/templates/identifying-continuous-production-decrease" -u admin:admin -kSample output
Response
HTTP Status Code | 200 or 404 For descriptions of the HTTP status codes, see HTTP Status Codes. |
|---|
Fetch available template groups
Overview
Description | Returns all the template groups that are currently available in the SP setup. |
|---|---|
API Context |
|
HTTP Method |
|
Request/Response Format |
|
Authentication | Basic |
Username |
|
Password |
|
Runtime | Dashboard |
curl command syntax
Sample curl command
curl -X GET "https://localhost:9643/business-rules/template-groups" -u admin:admin -kSample output
Response
HTTP Status Code | 200 or 404 For descriptions of the HTTP status codes, see HTTP Status Codes. |
|---|
Fetch business rule instance with given UUID
Overview
Description | Returns the business rule instance with the given UUID. |
|---|---|
API Context |
|
HTTP Method |
|
Request/Response Format | application/json |
Authentication | Basic |
Username |
|
Password |
|
Runtime | Dashboard |
Parameter description
Parameter | Description |
|---|---|
| The UUID of the business rules instance to be fetched. |
curl command syntax
Sample curl command
curl -X GET "https://localhost:9643/business-rules/instances/business-rule-1" -H "accept: application/json" -u admin:admin -kSample output
Response
HTTP Status Code | 200 or 404 For descriptions of the HTTP status codes, see HTTP Status Codes. |
|---|
Create and save a business rule
Overview
Description | Creates and saves a business rule. |
|---|---|
API Context |
|
HTTP Method |
|
Request/Response Format |
|
Authentication | Basic |
Username |
|
Password |
|
Runtime | Dashboard |
Parameter description
Parameter | Description |
|---|---|
|
|
curl command syntax
Sample curl command
curl -X POST "https://localhost:9643/business-rules/instances?deploy=true" -H "accept: application/json" -H "content-type: multipart/form-data" -F 'businessRule={"name":"Business Rule 5","uuid":"business-rule-5","type":"template","templateGroupUUID":"sweet-factory","ruleTemplateUUID":"identifying-continuous-production-decrease","properties":{"timeInterval":"6","timeRangeInput":"5","email":"example@email.com"}}' -u admin:admin -kSample output
Response
HTTP Status Code | 200 or 404 For descriptions of the HTTP status codes, see HTTP Status Codes. |
|---|
Update business rules instance with given UUID
Overview
Description | Updates the business rules instance with the given UUID. |
|---|---|
API Context |
|
HTTP Method |
|
Request/Response Format |
|
Authentication | Basic |
Username |
|
Password |
|
Runtime | Dashboard |
Parameter description
Parameter | Description |
|---|---|
| The UUID of the business rules instance to be updated. |
|
|
curl command syntax
Sample curl command
curl -X PUT "https://localhost:9643/business-rules/instances/business-rule-5?deploy=true" -H "accept: application/json" -H "content-type: application/json" -d '{"name":"Business Rule 5","uuid":"business-rule-5","type":"template","templateGroupUUID":"sweet-factory","ruleTemplateUUID":"identifying-continuous-production-decrease","properties":{"timeInterval":"9","timeRangeInput":"8","email":"newexample@email.com"}}' -u admin:admin -kSample output
Response
HTTP Status Code | 200 or 404 For descriptions of the HTTP status codes, see HTTP Status Codes. |
|---|