Routing AreaPrefix API

update values

PUT /api/rest/admin/routing/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.eyJleHAiOjE3MzE1Nzg3NTksInN1YiI6MTUyfQ.-2Cxx5awooKzDtt4VbuxXBkAmjGBcR9VFM9AgVTtBJ8
Host: example.org
Cookie: 

Route

PUT /api/rest/admin/routing/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-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/"7132fdeb222b9923bbf90b8e344ecb11"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 406062cf-5f7e-414c-ad0a-b033667f21e7
X-Runtime: 0.016859
Content-Length: 347

Status

200 OK

Body

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