| Name | Description |
|---|---|
| data[type] | Resource type (areas) |
| data[attributes][name] | Name |
Accept: application/vnd.api+json Content-Type: application/vnd.api+json Authorization: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOjM4LCJhdWQiOlsiYWRtaW4iXSwiZXhwIjoxNzY3MzU4NTYxfQ.7RMHXIgL7dbewMTGTo3u2vbwTqHyzZ52ocoMM8dXvEo Host: example.org Cookie:
POST /api/rest/admin/areas
{"data":{"type":"areas","attributes":{"name":"test-area"}}}
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 location: http://example.org/api/rest/admin/areas/16 vary: Accept etag: W/"a5588ba5301f1a95af688eb5fb45b813" cache-control: max-age=0, private, must-revalidate x-request-id: fe792237-3f00-4f29-92c2-3e6591057391 x-runtime: 0.012345 content-length: 131
201 Created
{
"data": {
"id": "16",
"type": "areas",
"links": {
"self": "http://example.org/api/rest/admin/areas/16"
},
"attributes": {
"name": "test-area"
}
}
}