# UpdateServiceConfig

The `UpdateServiceConfig` action updates the configuration file for a service on a Controller. You can also optionally restart the service to make the new configuration active.

## Required Parameters

The following action parameters are required.

Parameter | Description
--- | ---
ControllerUUID | The UUID of the Controller on which the service is registered.
OldCheckSum | The checksum of the previous version of the configuration file.
Port | The action port of the service whose configuration file you want to update.

You must set one of the following parameters.

Parameter | Description
--- | ---
ConfigData | Data in `multipart/form-data` format sent as part of the action that contains the new configuration to use.
ConfigFileName | The path to a file name on the target machine that contains the new configuration file to use.

## Optional Parameters

This action accepts the following optional parameters.

Parameter | Description
--- | ---
ControlMethod | The control method to use to restart the service.
RestartService | Whether to stop the service before updating the configuration file, and then restart it.

## Comments

You can also submit this action from individual Controller servers. For more information, refer to the Controller Reference.

_FT_HTML5_bannerTitle.htm