Deprecated Endpoints
Deprecated Endpoints
All of these endpoints will be deprecated from version 1.7.1 and newer.
Rule
Create rule
POST
https://api.decisionrules.io/api/rule/:spaceId
Creates rule in space from JSON
Path Parameters
spaceId*
string
Id of Space
Headers
Authorization*
string
Bearer
Rule Flow
Get Rule Flow
GET
https://api.decisionrules.io/api/rule-flow/:ruleFlowId/:version?
If the version is not specified, get Rule Flow with the latest version.
Path Parameters
ruleFlowId*
String
Unique rule flow ID which is common to all versions.
version
Number
Version of Rule Flow
Headers
Authorization*
String
Bearer
Update Rule Flow Status
PUT
https://api.decisionrules.io/api/rule-flow/status/:ruleId/:status/:version
Changes rule status from pending to published and vice versa. If the version is not specified, the latest version will be used.
Path Parameters
ruleId*
String
Unique rule flow ID which is common to all versions.
status*
String
pending XOR published
version*
number
rule flow version
Update Rule Flow
PUT
https://api.decisionrules.io/api/rule-flow/:ruleFlowId/:version
Path Parameters
ruleFlowId*
String
Unique rule flow ID which is common to all versions.
version*
Number
Version of Rule Flow
Headers
Authorization*
String
Bearer
Request Body
Rule Flow*
Object
Model of Rule Flow
Create Rule Flow
POST
https://api.decisionrules.io/api/rule-flow
Headers
Authorization*
String
Bearer
Request Body
Rule Flow*
Object
Model of Rule Flow
Ruleflow request body example
This example serves as a template for request bodies when creating rules with POST Create rule. When updating rules with PUT Update rule, the body of the request must have the same format as well.
Delete Rule Flow
DELETE
https://api.decisionrules.io/api/rule-flow/:ruleFlowId/:version
Path Parameters
ruleFlowId*
String
Unique rule flow ID which is common to all versions.
version*
Number
Version of Rule Flow
Headers
Authorization*
String
Bearer
If you do not specify version of the rule to be deleted, the endpoint will delete all versions of the rule. Please, use it with caution! Once deleted, rules cannot be recovered.
Spaces
Get all rules/rule flows in space
GET
https://api.decisionrules.io/api/space/:spaceId
Path Parameters
spaceId*
string
ID of space
Headers
Authorization*
string
Bearer <API_KEY>
Tags
Get rules by tag/tags
GET
https://api.decisionrules.io/api/tags/rules/:spaceId
Path Parameters
spaceId*
string
ID of space
Query Parameters
tags*
string
Comma separated list of tags. The query at the end of the url address should look like this: ?tags=tag1,tag2. Such query would select all the rules where tag array contains both tag1 and tag2.
Headers
Authorization*
string
Bearer <API_KEY>
Add tags to rule
PATCH
https://api.decisionrules.io/api/tags/rules/:spaceId/:ruleId/:version?
If you specify the version, the tag/tags will be added to the specified version. If the version is not specified, the tag/tags will be added to all the versions with given rule ID.
Path Parameters
spaceId*
string
ID of space
ruleId*
string
ID of rule
version
string
Version of rule
Headers
Authorization*
string
Bearer <API_KEY>
Request Body
body*
array
Array of tags to add
Delete tags from rule
DELETE
https://api.decisionrules.io/api/tags/rules/:spaceId/:ruleId/:version?
If you specify the version, the tag/tags will be deleted from the specified version. If the version is not specified, the tag/tags will be removed from all the versions with given rule ID.
Path Parameters
spaceId*
string
ID of space
ruleId*
string
ID of rule
version
string
Version of rule
Query Parameters
tags*
string
Comma separated list of tags. The query at the end of the url address should look like this: ?tags=tag1,tag2
Headers
Authorization*
string
Bearer <API_KEY>
Was this helpful?