Networks API

update values

PUT /api/rest/admin/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

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjE1MiwiYXVkIjpbImFkbWluIl0sImV4cCI6MTc3MjIxMjAwN30.nihfriLV_Nh2dfvBzh8gVrMdVP6K7MGIvqD4lCdbVfs
Host: example.org
Cookie: 

Route

PUT /api/rest/admin/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-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/vnd.api+json
vary: Accept
etag: W/"890c502a5c8653534f15d8a70395205a"
cache-control: max-age=0, private, must-revalidate
x-request-id: 56388987-59b2-4264-b8e5-497e483b00e3
x-runtime: 0.012128
content-length: 338

Status

200 OK

Body

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