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.eyJleHAiOjE3MTAyNTQ3MzcsInN1YiI6MTk5fQ.0oBriDFtnoFmUWYiZHluhuV0C4M1hmeWnJhlD-tLYNI
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: 095156ce-bf4c-434b-855b-06cc0a049541
X-Runtime: 0.008501
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"
    }
  }
}