create new entry
POST /api/rest/admin/routing/area-prefixes
Parameters
Name |
Description |
data[type]
|
Resource type (area-prefixes)
|
data[attributes][prefix]
|
Prefix
|
data[relationships][area]
|
Area
|
Request
Headers
Route
POST /api/rest/admin/routing/area-prefixes
Body
{"data":{"type":"area-prefixes","attributes":{"prefix":"777"},"relationships":{"area":{"data":{"type":"areas","id":7}}}}}
Response
Headers
Status
201 Created
Body
{
"data": {
"id": "7",
"type": "area-prefixes",
"links": {
"self": "http://example.org/api/rest/admin/routing/area-prefixes/7"
},
"attributes": {
"prefix": "777"
},
"relationships": {
"area": {
"links": {
"self": "http://example.org/api/rest/admin/routing/area-prefixes/7/relationships/area",
"related": "http://example.org/api/rest/admin/routing/area-prefixes/7/area"
}
}
}
}
}