Create a new Rule.
Rule
curl --request POST \ --url https://api.decodahealth.com/v1/rule/create \ --header 'API-KEY: <api-key>' \ --header 'Content-Type: application/json' \ --header 'TENANT: <tenant>' \ --data '{ "amountGreaterThan": 123, "amountLessThan": 123, "delayInDays": 123, "lessThanOrEqualTo": 123, "message": "<string>", "method": "Native", "name": "<string>", "ruleSetId": "<string>" }'
{ "amountGreaterThan": 123, "amountLessThan": 123, "delayInDays": 123, "id": "<string>", "lessThanOrEqualTo": 123, "message": "<string>", "method": "Native", "name": "<string>", "ruleSetId": "<string>" }
The tenant you are making this request on behalf of
Your api key
Successful Response
The response is of type object.
object