Routing Area API

update values

PUT /api/rest/admin/areas/:id

Parameters

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

Request

Headers

Accept: application/vnd.api+json
Content-Type: application/vnd.api+json
Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM5LCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzgxMjc5MzkzfQ.0xbKuNQxc5E_P7ZisI31-p0u2DshRV5IFf2VDNyWr9I
Host: example.org
Cookie: 

Route

PUT /api/rest/admin/areas/17

Body

{"data":{"type":"areas","id":17,"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
vary: Accept
etag: W/"74198b984afb992fcfe51afd13f7da27"
cache-control: max-age=0, private, must-revalidate
x-request-id: 01a20a75-6f6c-46ed-be36-5752c46dacd6
x-runtime: 0.009845
content-length: 131

Status

200 OK

Body

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