Create a new revision
Creates a new revision for the rule set. With this request, you supply the content that you want to initialize for a new revision.
Request
- Base URL: https://example.com/businessRules
- URL: https://example.com/businessRules/ruleSets/{ruleSetId}/revisions
- Auth: none declared
Path parameters
The rule set ID.
Query parameters
Valid values are major or minor. This value determines how the server generates the major and minor numbers. If a major number is provided, the next available major version number is started. For example, if the rule set has revisions 1.0, 1.1, 1.2, 2.0, and 2.1, creating a new major revision results in 3.0. If a minor number is provided, then the next available minor revision number is reserved based on the existing revisions. For example, if the existing revisions have major and minor numbers of 1.1, 1.2, 1.3, 2.1, 2.2, and a user requests a new minor revision, then 2.3 is assigned. This parameter defaults to minor if not supplied.
This value specifies the URI of the rule set revision from which the new rule set revision is created. This property enables you to trace the lineage of a rule set. The valid format for this parameter is '/businessRules/ruleSets/${rulesetId}/revisions/${revisionId}'
Request body
Example request
{
"name": "Loan Score Approval",
"signature": [
{
"name": "customerName",
"dataType": "string",
"direction": "input"
},
{
"name": "creditScore",
"dataType": "decimal",
"direction": "input"
},
{
"name": "approved",
"dataType": "boolean",
"direction": "output"
}
]
}Response
A rule set revision was created.
Example response
{
"name": "Loan Score Approval",
"signature": [
{
"name": "customerName",
"dataType": "string",
"direction": "input"
},
{
"name": "creditScore",
"dataType": "decimal",
"direction": "input"
},
{
"name": "approved",
"dataType": "boolean",
"direction": "output"
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.