Update operational state of one or more lamps.
Within a request, all lamps must belong to the same customer. We will not update lamps where the slcID of the customer does not match.
BEWARE:
- if you put a device "operational", "out of service", "damaged" or "in reconstruction" only the state will change.
- if you put another state, the lamp will lose its name, slcDeviceAddress, location in tree and its link to a luminaire point.
- if you set "operational" for a device, the technical state will temporarily change to "unknown" even it was previously known.
deviceOperation/slcID of customer
PUT
-
-
| Entity | Type | Nullable | Description |
|---|---|---|---|
| deviceOperation | array (mainEntity) | no |
| Entity | Type | Nullable | Description |
|---|---|---|---|
| device_id | int | no | slcID of device |
| state | int (state) | no | state value |
| Value | Description |
|---|---|
| 0 | operational (technical state unknown) |
| -1 | in stock |
| -2 | under repair |
| -3 | out of service |
| -4 | damaged |
| -5 | in reconstruction |
| -6 | projected |
n.a.
{
"deviceOperation": [{
"device_id": 1759,
"state": -3
}, {
"device_id": 1792,
"state": -2
}]
}