Routing AreaPrefix API

create new entry

POST /api/rest/admin/routing/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.eyJleHAiOjE3MzE1Nzg3NTksInN1YiI6MTUxfQ.uDv8TvmT0ly7-ddzBYtUYsX55r_6EodA5NplclxGJsk
Host: example.org
Cookie: 

Route

POST /api/rest/admin/routing/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-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/"79b099343c8ff26f3ede9f0b7550b141"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: e3136d38-7a8b-4b15-a44d-a438b6f87e9b
X-Runtime: 0.014578
Content-Length: 347

Status

201 Created

Body

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