API referenceEndpoints
Get a checkpoint by code
Returns a checkpoint by code. **Required permission:** `referential.checkpoint:read`
GET
/referential/v1/checkpoints/by-code/{code}Returns a checkpoint by code.
Required permission: referential.checkpoint:read
Authorization
oauth2 AuthorizationBearer <token>
In: header
Path Parameters
code*string
Response Body
*/*
*/*
curl -X GET "https://example.com/referential/v1/checkpoints/by-code/string"{ "capabilities": [ { "active": true, "bridge_address": "string", "equipment_code": "string", "equipment_id": "string", "equipment_name": "string", "released_at": "2019-08-24T14:15:22Z", "retirement_reason": "string", "status": "string", "type": "string", "wiring_reference": "string" } ], "code": "string", "created_at": "2019-08-24T14:15:22Z", "direction": "string", "from_area_id": "string", "id": "string", "name": "string", "purpose": "string", "status": "string", "to_area_id": "string", "updated_at": "2019-08-24T14:15:22Z"}Declare a checkpoint
Creates a checkpoint between two station areas, with its purpose, the direction coaches pass it and the devices it is equipped with, each an enrolled equipment whose type is its function. **Required permission:** `referential.checkpoint:write`
Get a checkpoint
Returns a checkpoint by id. **Required permission:** `referential.checkpoint:read`