Tovább a tartalomhoz

Eszköz adatainak módosítása (a szenzorlistát a sync_device_type kezeli).

PATCH
/v1/devices/{device_id}
curl --request PATCH \
--url https://api.signalguard.hu/v1/devices/example \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "device_id": 1, "name": "example", "eui": "example", "place_id": 1, "active_minutes": 1, "disable_notifications": true, "disable_alerts": true }'

Jelleg: író. Minden művelet a hívó kulcs jogosultságaival fut. Egyenértékű műveleti alak: POST /v1/ops/update_device (= az azonos nevű MCP tool).

device_id
required
string
Media typeapplication/json
object
device_id
required
integer
name
string
>= 1 characters
eui
string
>= 1 characters
place_id
integer
active_minutes
integer
disable_notifications
boolean
disable_alerts
boolean
Examplegenerated
{
"device_id": 1,
"name": "example",
"eui": "example",
"place_id": 1,
"active_minutes": 1,
"disable_notifications": true,
"disable_alerts": true
}

Siker — { ok: true, result }