Networks API

create new entry

POST /api/rest/admin/networks

Parameters

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

Route

POST /api/rest/admin/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-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/vnd.api+json
location: http://example.org/api/rest/admin/networks/43709
vary: Accept
etag: W/"1094d5fae2977141edd4eb1617ec7385"
cache-control: max-age=0, private, must-revalidate
x-request-id: 38bdf347-9f60-4b8a-8f91-0d306f578fad
x-runtime: 0.012736
content-length: 342

Status

201 Created

Body

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