Adds node address to the network node list.
## Request Structure
`JSON object:`
```JSON
{
"method": "node",
"subcommand": ["add"],
"arguments": {
"net": "network_name",
"port": "port_name",
"host": "host_name",
"addr": "node_addr"
},
"id": "1"
}
```
`Parameters:`
**`net (network_name)`** - name of the Cellframe Network. The list of networks can be found in the `<Config_dir> \ etc \ network` folder or received using - [[Node Command - NET LIST]]
**`port`** - name of the port (for example, `8079`) `optional`
**`host`** - host name (for example, `70.34.252.242`) `optional`
**`addr`** - node address (for example, `E0A6::4F46::5A58::53A0`) `optional`
Use parameters `port`, `host` and `name` when your node is `root` and `authorized` to add another nodes in the node list. Without optional parameters, request simply adds the node you are using to the node list.
### Curl Example
Without optional parameters:
`Request:`
```actionscript
curl --unix-socket /opt/cellframe-node/var/run/node_cli -X POST http://localhost/connect -d '
{
"method": "node",
"subcommand": ["add"],
"arguments": {
"net": "foobar"
},
"id": "1"
}'
```
`Response:`
```json
{
"type": 0,
"result": "Node addr successfully added to node list",
"id": 1
}
```
With optional parameters:
`Request:`
```actionscript
curl --unix-socket /opt/cellframe-node/var/run/node_cli -X POST http://localhost/connect -d '
{
"method": "node",
"subcommand": ["add"],
"arguments": {
"net": "railgun",
"port": "8079",
"host": "70.34.252.242",
"addr": "E0A6::4F46::5A58::53A0"
},
"id": "1"
}'
```
```json
{
"type": 0,
"result": "Successfully added node E0A6::4F46::5A58::53A0",
"id": 1
}
```