SmartGare
API referenceEndpoints

Retire a line

Closes a line for good (D151), unlike a suspension, which stays temporary. Answers the rules naming the line, read before anything changed; the line runs no coach from today, and the rules module keeps its rules on the list needing attention and announces each mandatory rule left with nothing in force (RULES-051). The rules are the rules module's facts, so the caller also needs `referential.rule:read`. **Required permission:** `referential.line:write`

POST/referential/v1/lines/{id}/retirement

Closes a line for good (D151), unlike a suspension, which stays temporary. Answers the rules naming the line, read before anything changed; the line runs no coach from today, and the rules module keeps its rules on the list needing attention and announces each mandatory rule left with nothing in force (RULES-051). The rules are the rules module's facts, so the caller also needs referential.rule:read.

Required permission: referential.line:write

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*RetireLineRequest

Response Body

*/*

*/*

curl -X POST "https://example.com/referential/v1/lines/string/retirement" \  -H "Content-Type: application/json" \  -d '{    "reason": "string"  }'
{  "id": "string",  "retired_at": "2019-08-24T14:15:22Z",  "rules_touched": [    {      "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    }  ]}