POST
/
v1
/
rule
/
create
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>"
}

Headers

TENANT
string
required

The tenant you are making this request on behalf of

API-KEY
string
required

Your api key

Body

application/json

Response

200
application/json

Successful Response

The response is of type object.