Routing Area API

create new entry

POST /api/rest/admin/areas

Parameters

Name Description
data[type] Resource type (areas)
data[attributes][name] Name

Request

Headers

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM4LCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzcyMjExOTk5fQ.FThrmogfuMoXmXiKZuzeaoCzI1cTLQcXKfZ4dCWxMDs
Host: example.org
Cookie: 

Route

POST /api/rest/admin/areas

Body

{"data":{"type":"areas","attributes":{"name":"test-area"}}}

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/areas/16
vary: Accept
etag: W/"a5588ba5301f1a95af688eb5fb45b813"
cache-control: max-age=0, private, must-revalidate
x-request-id: f56ba3c5-bdce-49c9-bc89-48fd0f4b6331
x-runtime: 0.009923
content-length: 131

Status

201 Created

Body

{
  "data": {
    "id": "16",
    "type": "areas",
    "links": {
      "self": "http://example.org/api/rest/admin/areas/16"
    },
    "attributes": {
      "name": "test-area"
    }
  }
}