create new entry
POST /api/rest/admin/system/networks
Parameters
Name |
Description |
data[type]
|
Resource type (networks)
|
data[attributes][name]
|
Name
|
data[relationships][network-type]
|
Network type
|
Request
Headers
Route
POST /api/rest/admin/system/networks
Body
{"data":{"type":"networks","attributes":{"name":"name"},"relationships":{"network-type":{"data":{"type":"network_types","id":24}}}}}
Response
Headers
Status
201 Created
Body
{
"data": {
"id": "43317",
"type": "networks",
"links": {
"self": "http://example.org/api/rest/admin/system/networks/43317"
},
"attributes": {
"name": "name"
},
"relationships": {
"network-type": {
"links": {
"self": "http://example.org/api/rest/admin/system/networks/43317/relationships/network-type",
"related": "http://example.org/api/rest/admin/system/networks/43317/network-type"
}
}
}
}
}