SmartGare
API referenceEndpoints

List the rules naming a line

Every rule version whose scope names the line, whatever its state, with its domain, the module that reads it and whether it is mandatory — what retiring the line would touch, read before anything changes (RULES-051). The rules are the rules module's facts, so the caller also needs `referential.rule:read`. **Required permission:** `referential.line:read`

GET/referential/v1/lines/{id}/rules

Every rule version whose scope names the line, whatever its state, with its domain, the module that reads it and whether it is mandatory — what retiring the line would touch, read before anything changes (RULES-051). The rules are the rules module's facts, so the caller also needs referential.rule:read.

Required permission: referential.line:read

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Response Body

*/*

curl -X GET "https://example.com/referential/v1/lines/string/rules"
[  {    "consumer": "string",    "domain": "string",    "domain_name": "string",    "effective_at": "2019-08-24T14:15:22Z",    "mandatory": true,    "rule_code": "string",    "rule_id": "string",    "state": "string",    "version_id": "string",    "version_number": 0  }]