NetworkTypes API

create new entry

POST /api/rest/admin/network-types

Parameters

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

Request

Headers

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjE0NiwiYXVkIjpbImFkbWluIl0sImV4cCI6MTc3MjIxMjAwNn0.rlKkOkvyLNsg_BQh-ciTMAYbx72OOaG-cldeq7XdkIA
Host: example.org
Cookie: 

Route

POST /api/rest/admin/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-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/network-types/21
vary: Accept
etag: W/"7b8528fd1850e897742157a1b543ab1f"
cache-control: max-age=0, private, must-revalidate
x-request-id: 2f0ce93b-935a-41a6-b430-1baf1d3341a5
x-runtime: 0.006890
content-length: 142

Status

201 Created

Body

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