Sensors API

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

Version: HTTP/1.0
Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJleHAiOjE3MTAyNTQ3MzksInN1YiI6MjEyfQ.l1Z8voK6In0gAqjWax0kczG3IYgkhrtE_44vjNv-CUk
Host: example.org
Cookie: 

Route

PUT /api/rest/admin/system/sensors/5

Body

{"data":{"type":"sensors","id":5,"attributes":{"name":"name"}}}

Response

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 0
X-Content-Type-Options: nosniff
X-Download-Options: noopen
X-Permitted-Cross-Domain-Policies: none
Referrer-Policy: strict-origin-when-cross-origin
Content-Type: application/vnd.api+json
Vary: Accept
ETag: W/"d871ad191378aec5eccd03afe759dac6"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 1981abc8-1d51-4edf-9d3e-9a7ab8579de2
X-Runtime: 0.019694
Content-Length: 261

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"
    }
  }
}