Nodes API

update values

PUT /api/rest/admin/nodes/:id

Parameters

Name Description
data[type] Resource type (nodes)
data[id] Node ID
data[attributes][name] Name

Request

Headers

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

Route

PUT /api/rest/admin/nodes/7

Body

{"data":{"type":"nodes","id":7,"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/"ba32936bf2241e6ed2be33d3150511a3"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 5c96f229-ccb8-4c68-bacd-0075613852f3
X-Runtime: 0.020019
Content-Length: 316

Status

200 OK

Body

{
  "data": {
    "id": "7",
    "type": "nodes",
    "links": {
      "self": "http://example.org/api/rest/admin/nodes/7"
    },
    "attributes": {
      "name": "name",
      "rpc-endpoint": "127.0.0.1:8"
    },
    "relationships": {
      "pop": {
        "links": {
          "self": "http://example.org/api/rest/admin/nodes/7/relationships/pop",
          "related": "http://example.org/api/rest/admin/nodes/7/pop"
        }
      }
    }
  }
}