Parameter | Type | Description | Request | Response | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
GET | PUT | POST | DELETE | GET | PUT | POST | DELETE | |||||
fact | String | The rules fact, ex. the action, the product, the sum of events etc. | Yes | Yes | Yes | Yes | Yes | |||||
operator | String | Part of the rule which operates the fact ex. is, more than, less than etc. | Yes | Yes | Yes | Yes | Yes | |||||
constant | String | A rules value that defines the fact ex. if the fact is "the action" then the constant is "win" | Yes | Yes | Yes | Yes | Yes | |||||
id | String | Unique system identifier of a Main Rule | Yes | Yes | Yes | |||||||
subConditions | Array [Object] | subConditionSet model | Optional | Optional | Yes | Yes | Yes |
You can find all the MainRules facts and operators variables for the achievement creation or contests creation in Rules