Networks API

update values

PUT /api/rest/admin/system/networks/:id

Parameters

Name Description
data[type] Resource type (networks)
data[id] Network ID
data[attributes][name] Name
data[relationships][network-type] Network type

Request

Headers

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

Route

PUT /api/rest/admin/system/networks/4657

Body

{"data":{"type":"networks","id":4657,"attributes":{"name":"name"},"relationships":{"network-type":{"data":{"type":"network_types","id":25}}}}}

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/"ed1167d3426acdfa4ed7207d39b15cbc"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: cbb981ff-45b0-446c-a5bf-78ab5b0f66a7
X-Runtime: 0.017419
Content-Length: 359

Status

200 OK

Body

{
  "data": {
    "id": "4657",
    "type": "networks",
    "links": {
      "self": "http://example.org/api/rest/admin/system/networks/4657"
    },
    "attributes": {
      "name": "name"
    },
    "relationships": {
      "network-type": {
        "links": {
          "self": "http://example.org/api/rest/admin/system/networks/4657/relationships/network-type",
          "related": "http://example.org/api/rest/admin/system/networks/4657/network-type"
        }
      }
    }
  }
}