GET /v1/switches/
Restituisce i dati e lo stato corrente di un singolo switch manuale, identificato dal suo ID.Parametri URL
| Parametro | Tipo | Descrizione |
|---|---|---|
id | int | ID dello switch |
Richiesta
Risposta
Campi Risposta
| Campo | Tipo | Descrizione |
|---|---|---|
id | int | ID univoco dello switch |
description | string | Nome/descrizione dello switch |
activation | string | null | Codice stella di attivazione (*10–*19), null se non assegnato |
action | object | Azione eseguita quando lo switch è attivo (type, target, label) |
status | int | 1 attivo, 0 disattivo |
active | bool | true se lo switch è attivo |
