Routing AreaPrefix API

update values

PUT /api/rest/admin/area-prefixes/:id

Parameters

Name Description
data[type] Resource type (area-prefixes)
data[id] AreaPrefix ID
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.eyJzdWIiOjM0LCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzQwODUzMDI0fQ.tkiSUzXNvmqK7aNJchDek2eRKL01QCgkMVm-adiM0Bw
Host: example.org
Cookie: 

Route

PUT /api/rest/admin/area-prefixes/8

Body

{"data":{"type":"area-prefixes","id":8,"attributes":{"prefix":"765"},"relationships":{"area":{"data":{"type":"areas","id":9}}}}}

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/"d2823a8f3ce8641b0e00ae9837f97eda"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 13ba1eed-c2fa-4db5-9ef3-49c8db993abd
X-Runtime: 0.022612
Content-Length: 323

Status

200 OK

Body

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