update values
PUT /api/rest/admin/routing/area-prefixes/:id
Parameters
Name |
Description |
data[type]
|
Resource type (area-prefixes)
|
data[id]
|
AreaPrefix ID
|
data[attributes][prefix]
|
Prefix
|
data[relationships][area]
|
Area
|
Request
Headers
Route
PUT /api/rest/admin/routing/area-prefixes/8
Body
{"data":{"type":"area-prefixes","id":8,"attributes":{"prefix":"765"},"relationships":{"area":{"data":{"type":"areas","id":9}}}}}
Response
Headers
Status
200 OK
Body
{
"data": {
"id": "8",
"type": "area-prefixes",
"links": {
"self": "http://example.org/api/rest/admin/routing/area-prefixes/8"
},
"attributes": {
"prefix": "765"
},
"relationships": {
"area": {
"links": {
"self": "http://example.org/api/rest/admin/routing/area-prefixes/8/relationships/area",
"related": "http://example.org/api/rest/admin/routing/area-prefixes/8/area"
}
}
}
}
}