NetworkTypes API

create new entry

POST /api/rest/admin/system/network-types

Parameters

Name Description
data[type] Resource type (network-types)
data[attributes][name] Name

Request

Headers

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

Route

POST /api/rest/admin/system/network-types

Body

{"data":{"type":"network-types","attributes":{"name":"name"}}}

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/"7d9e9b39f3d8f3aa8afde81b7fb7c3f6"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 7d921fb7-6095-4130-81e4-a98046020381
X-Runtime: 0.010216
Content-Length: 149

Status

201 Created

Body

{
  "data": {
    "id": "16",
    "type": "network-types",
    "links": {
      "self": "http://example.org/api/rest/admin/system/network-types/16"
    },
    "attributes": {
      "name": "name"
    }
  }
}