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.eyJzdWIiOjM5LCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzY3MzU4NTYxfQ.D5GVge2u8RAKIhekbXZXM2fkg25xeax_3sfNfvZQbp4
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: 756d1cdc-9a5a-4b22-8e09-221a422329d5
x-runtime: 0.013137
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"
    }
  }
}