SmartGare
API referenceEndpoints

List the rule versions naming a subject

Every rule version whose scope names the subject — a bay, a line — whatever its state, each with the domain, the module that reads it and whether it is mandatory. **Required permission:** `referential.rule:read`

GET/referential/v1/subject-rule-uses

Every rule version whose scope names the subject — a bay, a line — whatever its state, each with the domain, the module that reads it and whether it is mandatory.

Required permission: referential.rule:read

AuthorizationBearer <token>

In: header

Query Parameters

dimension*string
subject*string

Response Body

*/*

curl -X GET "https://example.com/referential/v1/subject-rule-uses?dimension=string&subject=string"
{  "total": 0,  "uses": [    {      "consumer": "string",      "dimension": "string",      "domain": "string",      "domain_name": "string",      "effective_at": "2019-08-24T14:15:22Z",      "mandatory": true,      "rule_code": "string",      "rule_id": "string",      "state": "string",      "subject": "string",      "version_id": "string",      "version_number": 0    }  ]}