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

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjE1NywiYXVkIjpbImFkbWluIl0sImV4cCI6MTc3MjIxMjAwN30.DwIiMFkk9QM3S2EYW8hKSvITyAOawotvrXz448lcNTg
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-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/vnd.api+json
vary: Accept
etag: W/"7429812a9c0e62d345b85b2028ea2adf"
cache-control: max-age=0, private, must-revalidate
x-request-id: bcdcd4bf-9241-491f-b07d-17c3dc46a6da
x-runtime: 0.014352
content-length: 348

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"
        },
        "data": {
          "type": "pops",
          "id": "8"
        }
      }
    }
  }
}