Create rule
Authorizations
Nected-API-KeystringRequired
Dev API key (Nected-API-Key header)
Header parameters
Nected-BranchstringOptional
Branch name (optional)
Body
Request body for Create rule. Must include name and type. type is one of simpleRule, decisionTable, or ruleSet.
The high-level shape is the same for all types, but which fields you fill vs. leave blank depends on the rule type.
Shared fields (all types)
name(string, required): Rule name.type(string, required): One ofsimpleRule,decisionTable,ruleSet.description(string, optional).dataSetId(string, optional): ID of the dataset used by the rule (when applicable).customInput(object, optional): Map of custom input definitions keyed by input name.settings(object, optional): Common runtime settings (isEnabled, api, schedule, cache, dateFormat, timezone, etc.).dependencyMap(array, optional): Reserved for advanced use; usually empty on create.
When type = simpleRule
- Typically filled:
conditions,action,customInput,settings,firstCustomInput(optional). - Should be empty / null:
decisionTable.rows,decisionTable.properties,decisionTable.resultsfor pure simple rules. - Rule set fields:
ruleSet,ruleSetPolicy,firstRuleChain,ruleChain,policyare not used for evaluation of a puresimpleRule.
When type = decisionTable
- Must be filled:
decisionTable(firstRow, firstProperty, firstResult, rows, properties, results),action.then.outputData,policy. - Usually filled:
customInput,settings,firstCustomInput. - Must be empty / null:
ruleSet,ruleSetPolicy,firstRuleChain,ruleChain.
When type = ruleSet
- Must be filled:
ruleSet,ruleSetPolicy,firstRuleChain,ruleChain. - Usually filled:
customInput,settings. - Must be empty / null:
conditions,decisionTable, action output/actionNode fields as appropriate.
Canonical files: Create/create_SR.json, Create/create_decisiontable.json, Create/create_ruleset.json, and examples/ for GET/PATCH mirrors.
namestringRequired
Rule name
typestring · enumRequiredPossible values:
Rule type; payload shape depends on this.
descriptionstringOptional
dataSetIdstring · nullableOptional
customInputobjectOptional
conditionsobjectOptional
actionobjectOptional
settingsobjectOptional
firstCustomInputstringOptional
decisionTableobject · nullableOptional
Required for type decisionTable
ruleSetPolicystringOptional
firstRuleChainstringOptional
policystringOptional
dependencyMaparrayOptional
Other propertiesanyOptional
Responses
201
Created. Returns data.id (entity ID) and data.checksum.
application/json
400
Bad Request
application/json
500
Internal Server Error
application/json
post
/dev/v1/ruleCopy‑paste JSON examples
Example payload – type = simpleRule
type = simpleRuleExample payload – type = decisionTable
type = decisionTableExample payload – type = ruleSet
type = ruleSetLast updated