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.eyJleHAiOjE3MzE1Nzg3NjUsInN1YiI6MjMyfQ.2d-b7zcjh9Ak7Nb9t3odSPtOXNiPb9M_uHU2CjoCHpA
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: 673a4f97-c77d-4df4-b05b-b208bf566127
X-Runtime: 0.020210
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"
    }
  }
}