SmartGare
API referenceEndpoints

Close the station

An operator closes an open station. The station then reads closed, since that moment, by that operator, and StationClosed is announced. A coach already inside finishes its visit. **Required permission:** `referential.station-opening:write`

DELETE/referential/v1/stations/{id}/opening

An operator closes an open station. The station then reads closed, since that moment, by that operator, and StationClosed is announced. A coach already inside finishes its visit.

Required permission: referential.station-opening:write

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Response Body

*/*

*/*

curl -X DELETE "https://example.com/referential/v1/stations/string/opening"
{  "closed_at": "2019-08-24T14:15:22Z",  "closed_by": "string",  "id": "string"}