UpdateConfiguration
The UpdateConfiguration service of the EMS allows you to change or replace its configuration file (config.json).
* 
The changes or new configuration file that you pass in do not take effect until you restart the EMS. Use the Restart service to force the changes to take effect.
Inputs
Pass in a TW_INFOTABLE that contains a JSON object. This object must contain
"config" — A JSON string that is used to update or replace the current configuration file.
"replace" — A Boolean that determines whether to update the current config.json file or to delete it entirely and replace it with the JSON string specified with the "config" parameter.
Outputs
This service returns an HTTP response only. If the operation was successful, it returns HTTP 200. Otherwise, it returns an HTTP error.
Here is an example of a REST call that updates the configuration of an EMS running on your computer, using this service:

http://localhost:8000/Thingworx/Things/LocalEms/Services/UpdateConfiguration
{
"config": "config.json",
"replace": true
}
Was this helpful?