---
title: "REST API - How to use the REST API to run the /GATEWAY:reloadSetup command"
description: "The REST API in Geneos can be used to run the /GATEWAY:reloadSetup command to reload configuration files. You can reload all files by default or specify a particular include file and verify changes using the Gateway-includesData plugin."
url: "https://docs.itrsgroup.com/docs/faq/geneos/360022555094-geneos-rest-api-how-to-use-the-rest-api-to-run-the-gateway-reloadsetup-command/index.html"
---
## Possible solutions

Example 1: Running the command with no argument will load all of the files by default.

```
curl -u import -X POST -s --data '{ "command" : "/GATEWAY:reloadSetup", "target" : "/geneos/gateway/directory" }' http://nysupsvr1f:51135/rest/runCommand
```

Example 2: Running the command to reload a specific include file

```
curl -u import -X POST -s --data '{ "command" : "/GATEWAY:reloadSetup", "target" : "/geneos/gateway/directory", "args": { "1": "/export/home/klee/Geneos/GW2-Linux-Active/includes/GW2_klee_includes_LoadMonitorStats.xml"} }' http://nysupsvr1f:51135/rest/runCommand
```

You can use the Gateway-includesData plugin to verify if the change has been applied.

## Related articles

[Geneos - Gateway Plugins documentation](https://docs.itrsgroup.com/docs/geneos/current/processing/configuration/geneos_gateway_plugins_tr/index.html)


