create new entry
POST /api/rest/admin/nodes
Parameters
Name |
Description |
data[type]
|
Resource type (nodes)
|
data[id]
|
Node ID
|
data[attributes][name]
|
Name
|
data[attributes][rpc-endpoint]
|
Rpc endpoint
|
data[relationships][pop]
|
Pop
|
Request
Headers
Route
POST /api/rest/admin/nodes
Body
{"data":{"type":"nodes","id":11,"attributes":{"name":"name","rpc-endpoint":"127.0.0.1:8099"},"relationships":{"pop":{"data":{"type":"pops","id":7}}}}}
Response
Headers
Status
201 Created
Body
{
"data": {
"id": "11",
"type": "nodes",
"links": {
"self": "http://example.org/api/rest/admin/nodes/11"
},
"attributes": {
"name": "name",
"rpc-endpoint": "127.0.0.1:8099"
},
"relationships": {
"pop": {
"links": {
"self": "http://example.org/api/rest/admin/nodes/11/relationships/pop",
"related": "http://example.org/api/rest/admin/nodes/11/pop"
},
"data": {
"type": "pops",
"id": "7"
}
}
}
}
}