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.eyJzdWIiOjE1NSwiYXVkIjpbImFkbWluIl0sImV4cCI6MTc2NzM1ODU2OH0.hzk5hB8R5f9TG9LuzEkfk2T737xyxurjpvay29YKQ8s
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: e8e2520f-9f79-42f9-924a-d165719ab396
x-runtime: 0.014614
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"
        }
      }
    }
  }
}