ReplaceConfiguration
The ReplaceConfiguration service allows you to replace the configuration file for the EMS (config.json).
* 
The new configuration file does 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 replace the current configuration file.
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 replaces the configuration of an EMS that is running on your computer, using this service:

http://localhost:8000/Thingworx/Things/LocalEms/Services/ReplaceConfiguration
{
"ws_servers" {
"host":newServer.acme.com",
"port":80,
appKey="some_application_key"
}
"certificates" {
"disableCertValidation":true
}
}
Was this helpful?