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.eyJzdWIiOjM5LCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzcyMjExOTk5fQ.bFrl48DyELdox8gG2rJU6ETHf0PZQI0OBhUYrcBg2FQ
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: e25600dc-bbd5-4c0a-a9da-05adfda043ba
x-runtime: 0.011142
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"
    }
  }
}