update values
PUT /api/rest/admin/system/sensors/:id
Parameters
Name |
Description |
data[type]
|
Resource type (sensors)
|
data[id]
|
Sensor ID
|
data[attributes][name]
|
Name
|
Request
Headers
Route
PUT /api/rest/admin/system/sensors/5
Body
{"data":{"type":"sensors","id":5,"attributes":{"name":"name"}}}
Response
Headers
Status
200 OK
Body
{
"data": {
"id": "5",
"type": "sensors",
"links": {
"self": "http://example.org/api/rest/admin/system/sensors/5"
},
"attributes": {
"name": "name",
"mode-id": 1,
"source-interface": null,
"target-mac": null,
"use-routing": false,
"target-ip": "192.168.0.2",
"source-ip": "192.168.0.1"
}
}
}