Routing AreaPrefix API

create new entry

POST /api/rest/admin/area-prefixes

Parameters

Name Description
data[type] Resource type (area-prefixes)
data[attributes][prefix] Prefix
data[relationships][area] Area

Request

Headers

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

Route

POST /api/rest/admin/area-prefixes

Body

{"data":{"type":"area-prefixes","attributes":{"prefix":"777"},"relationships":{"area":{"data":{"type":"areas","id":7}}}}}

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
Vary: Accept
ETag: W/"a467789e7ee39d026ba0f4979a9f82c4"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 4afafa46-e87b-4373-b09a-c057fddf3ad3
X-Runtime: 0.016973
Content-Length: 323

Status

201 Created

Body

{
  "data": {
    "id": "7",
    "type": "area-prefixes",
    "links": {
      "self": "http://example.org/api/rest/admin/area-prefixes/7"
    },
    "attributes": {
      "prefix": "777"
    },
    "relationships": {
      "area": {
        "links": {
          "self": "http://example.org/api/rest/admin/area-prefixes/7/relationships/area",
          "related": "http://example.org/api/rest/admin/area-prefixes/7/area"
        }
      }
    }
  }
}