PUT
/
v1
/
rule
/
update
/
{rule_id}
curl --request PUT \
  --url https://api.decodahealth.com/v1/rule/update/{rule_id} \
  --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"
}'
{
  "amountGreaterThan": 123,
  "amountLessThan": 123,
  "delayInDays": 123,
  "id": "<string>",
  "lessThanOrEqualTo": 123,
  "message": "<string>",
  "method": "Native",
  "name": "<string>",
  "ruleSetId": "<string>"
}

Headers

TENANT
string
required

The tenant you are making this request on behalf of

API-KEY
string
required

Your api key

Path Parameters

rule_id
string
required

Body

application/json
amountGreaterThan
integer | null

Lower bound for the amount, exclusive.

amountLessThan
integer | null

Upper bound for the amount, exclusive.

delayInDays
integer | null

Number of days to delay before applying the rule.

lessThanOrEqualTo
integer | null

Upper bound for the amount, inclusive.

message
string | null

Message to be sent when applying this rule, must contain the {url} and {first_name} placeholders.

method
enum<string> | null

Communication method to be used for this rule.

Available options:
Native,
SMS,
MAIL,
CALL,
COLLECTIONS,
EMAIL,
SMS_AND_EMAIL

Response

200
application/json
Successful Response
delayInDays
integer
required

Number of days to delay before applying the rule.

id
string
required

Unique identifier for the rule.

method
enum<string>
required

Communication method to be used for this rule.

Available options:
Native,
SMS,
MAIL,
CALL,
COLLECTIONS,
EMAIL,
SMS_AND_EMAIL
name
string
required

Name of the rule.

ruleSetId
string
required

Identifier of the rule set this rule belongs to.

amountGreaterThan
integer | null

Lower bound for the amount, exclusive.

amountLessThan
integer | null

Upper bound for the amount, exclusive.

lessThanOrEqualTo
integer | null

Upper bound for the amount, inclusive.

message
string | null

Message to be sent when applying this rule.