getRules

You can get a list of all your previously created rules-sets via the getRules endpoint of the danube.ai cloud API.

Request

Below, the getRules request's structure is shown.

body: {
  "query": String
}

The query parameter specifies which GraphQL endpoint to call (see example).

Response

A response from the getRules endpoint includes a list of your rules-sets and has the following structure:

body: {
  "data": {
    "getRules": [RulesSet]
  }
}

type RulesSet: {
  "id": String,
  "rules": [Rule]
}

Each rules-set in the list has following properties:

  • id: The id of the rules-set.
  • rules: A list of Rules (see the setRules documentation for information on a Rule's structure).