SmartGare
API referenceEndpoints

Correct a device

Corrects an active device's name and bridge address; its code and type are unchanged. **Required permission:** `referential.equipment:write`

PATCH/referential/v1/equipment/{id}

Corrects an active device's name and bridge address; its code and type are unchanged.

Required permission: referential.equipment:write

AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*CorrectEquipmentRequest

Response Body

*/*

*/*

*/*

curl -X PATCH "https://example.com/referential/v1/equipment/string" \  -H "Content-Type: application/json" \  -d '{    "bridge_address": "string",    "name": "string"  }'
{  "bridge_address": "string",  "code": "string",  "created_at": "2019-08-24T14:15:22Z",  "id": "string",  "name": "string",  "retired_at": "2019-08-24T14:15:22Z",  "retirement_reason": "string",  "status": "string",  "type": "string",  "updated_at": "2019-08-24T14:15:22Z"}