SmartGare
API referenceEndpoints

Enrol a device

Enrols a device with its code, name, type and bridge address; it starts active. **Required permission:** `referential.equipment:write`

POST/referential/v1/equipment

Enrols a device with its code, name, type and bridge address; it starts active.

Required permission: referential.equipment:write

AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*EnrolEquipmentRequest

Response Body

*/*

*/*

curl -X POST "https://example.com/referential/v1/equipment" \  -H "Content-Type: application/json" \  -d '{    "bridge_address": "string",    "code": "string",    "name": "string",    "type": "PLATE_CAMERA"  }'
{  "id": "string"}