Syncronyzes `GDB`, `chains` or everything at once.
## Request Structure
`JSON object:`
```JSON
{
"method": "net",
"subcommand": ["sync","all | gdb | chains"],
"arguments": {
"net": "network_name",
"mode": "update | all"
},
"id": "1"
}
```
`Parameters:`
**`net`** - 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]]
**`mode`** - `update` (by default if only new chains and gdb are up to update) or `all` (updates everything from zero) `optional`
### Curl Example
`Request:`
```powershell
curl --unix-socket /opt/cellframe-node/var/run/node_cli -X POST http://localhost/connect -d '{
"method": "net",
"subcommand": ["sync","all"],
"arguments": {
"net": "Backbone"
},
"id": "1"
}'
```
`Response:`
```json
{
"type": 2,
"result": [
{
"state_machine": {
"current": "NET_STATE_OFFLINE",
"requested": "SYNC_ALL"
}
}
],
"id": 1
}
```