SmartGare
API referenceEndpoints

Replace a checkpoint capability

Installs an enrolled equipment as the device of its type's function, retiring the previous one as history. **Required permission:** `referential.checkpoint:write`

PUT/referential/v1/checkpoints/{id}/capabilities

Installs an enrolled equipment as the device of its type's function, retiring the previous one as history.

Required permission: referential.checkpoint:write

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*ReplaceCheckpointDeviceRequest

Response Body

*/*

*/*

*/*

*/*

curl -X PUT "https://example.com/referential/v1/checkpoints/string/capabilities" \  -H "Content-Type: application/json" \  -d '{    "equipment_id": "string",    "reason": "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"}