Create Rules
Create Rules with this endpoint. Rules are instructions on how to reward. Users are rewarded based on rules set.
PS: You can also create rules on your dashbaord. Rule Name must be in lower case and must be unique.
URL
https://test-api.bvndle.com/api/v1/laas/rules/create-rule
HTTP Method
POSTAuthorization Header
Bearer ACCESS_TOKENnametypeDescription
namestringRequired Rule Name
coinValuestringRequired Amount of coin to be given
maxNumberOfParticipantstringRequired Maximum Number of Participants (Number of users who can be rewarded.)
conditionstringRequired (if type is not combined) More instruction or condition to be fulfilled
statusstringOptional
Default: active Values: “active” or “inactive”
typestringOptional Default: single Values: single, batched, combined
completionNumberstringOptional (if type is not batched) Default: 1
userLimitAwardstringOptional Pass “-1” if you do not want a maximum number Default: -1
rulesstringOptional (if type is not combined) Array of object containing the rules data {name: string, condition: string, status: string}
cURL