SmartGare
API referenceEndpoints

Search checkpoints

Returns checkpoints matching optional text, area and status filters. **Required permission:** `referential.checkpoint:read`

GET/referential/v1/checkpoints

Returns checkpoints matching optional text, area and status filters.

Required permission: referential.checkpoint:read

AuthorizationBearer <token>

In: header

Query Parameters

search?string

Matches part of a code or name.

from_area_id.value?string
to_area_id.value?string
status?string

Restrict to one lifecycle status; defaults to ACTIVE.

Value in

  • "ACTIVE"
  • "DECOMMISSIONED"
  • "ACTIVE"
  • "DECOMMISSIONED"
sort?string

Result ordering.

Value in

  • "codeAsc"
  • "codeDesc"
  • "newest"
  • "oldest"
  • "codeAsc"
  • "codeDesc"
  • "newest"
  • "oldest"
  • "codeAsc"
  • "codeDesc"
  • "newest"
  • "oldest"
page?integer

Zero-based page index.

Formatint32
Range0 <= value
size?integer

Page size, at most 200.

Formatint32
Range0 <= value <= 200

Response Body

*/*

curl -X GET "https://example.com/referential/v1/checkpoints"
{  "data": [    {      "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"    }  ],  "page": 0,  "size": 0,  "total": 0}