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.eyJleHAiOjE3MzE1Nzg3NTcsInN1YiI6MTM4fQ.cEU2Ixh8CBIgi0ZsrKeFrsqN255lNaU0KALhFqVDHWc
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/"7429812a9c0e62d345b85b2028ea2adf"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 29f03083-e3bb-4bb4-b323-02518b335352
X-Runtime: 0.023439
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"
        }
      }
    }
  }
}