Networks API

create new entry

POST /api/rest/admin/system/networks

Parameters

Name Description
data[type] Resource type (networks)
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.eyJleHAiOjE3MTAyNTQ3MzksInN1YiI6MjA0fQ.ORWIVwgg9TVeCSjKcLvHHcgNmRyVgEA6HBX3UkpxFr4
Host: example.org
Cookie: 

Route

POST /api/rest/admin/system/networks

Body

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

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/"b8720ce938db1d4be939900f6711835b"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 14f7694a-fefb-4609-a0f2-73fbac883a6c
X-Runtime: 0.015090
Content-Length: 359

Status

201 Created

Body

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