ThingWorx WebSocket-based Edge MicroServer (WS EMS) and Lua Script Resource (LSR) > REST Web Services Supported by WS EMS > UpdateConfiguration
The UpdateConfiguration service of the WS 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 WS EMS. Use the Restart service to force the changes to take effect.
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.
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 a WS EMS running on your computer, using this service: