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.eyJleHAiOjE3MzE1Nzg3NjQsInN1YiI6MjI0fQ.ecbFo49yyiyuPYAOf12O0-h7ON77E35rEzDrpCZuep0
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":24}}}}}

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/"9698b862feff3928bfcffd3050e6c84b"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 8871c102-7f73-474c-98aa-eee1e2e1dcd9
X-Runtime: 0.016242
Content-Length: 363

Status

201 Created

Body

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