POST
/
v1
/
rule-set
/
create
curl --request POST \
  --url https://api.decodahealth.com/v1/rule-set/create \
  --header 'API-KEY: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'TENANT: <tenant>' \
  --data '{
  "description": "<string>",
  "name": "<string>",
  "rules": []
}'
{
  "description": "<string>",
  "id": "<string>",
  "name": "<string>",
  "rules": []
}

Headers

TENANT
string
required

The tenant you are making this request on behalf of

API-KEY
string
required

Your api key

Body

application/json
name
string
required

Name of the rule set to be created.

description
string | null

Optional description of the rule set to be created.

rules
object[]

List of rules to be created.

Response

200
application/json
Successful Response
id
string
required

Unique identifier for the rule set.

name
string
required

Name of the rule set.

description
string | null

Optional description of the rule set.

rules
object[]

List of rules contained in this rule set.