# Updates the gateway and file transfer port settings for on-premise tool connections Saves the gateway SSL/non-SSL port and file transfer port settings. Accepts a JSON body with the port values and SSL preference. Used to configure the network ports for remote control and file transfer connections. ## Endpoint `PUT /dcapi/tools/portSetting` ## Request ### Request URL `https://{server-hostname}:8383/dcapi/tools/portSetting` ### Scope `Tools.READ` ### Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ### Request Parameters #### Request Headers - **Accept** `string` — **Mandatory** `application/toolsPortSavedDetails.v1+json` - **Content-Type** `string` — **Mandatory** `application/toolsPortSettingsDetails.v1+json` #### Request Body `application/json` - `gatewaySSLPort` `string` — Optional RoleId. [Get Role Id](https://www.manageengine.com/products/desktop-central/help/api/onpremise/adminsettings-update-port-settings.html?getRoles) - `gatewayNonSSLPort` `string` — Optional RoleId. [Get Role Id](https://www.manageengine.com/products/desktop-central/help/api/onpremise/adminsettings-update-port-settings.html?getRoles) - `ftSSLPort` `string` — Optional RoleId. [Get Role Id](https://www.manageengine.com/products/desktop-central/help/api/onpremise/adminsettings-update-port-settings.html?getRoles) - `ftNonSSLPort` `string` — Optional RoleId. [Get Role Id](https://www.manageengine.com/products/desktop-central/help/api/onpremise/adminsettings-update-port-settings.html?getRoles) - `useSSL` `boolean` — Optional ### Sample Request ```curl curl --request PUT \ --url https://appdomain/dcapi/tools/portSetting \ --header 'Accept: application/toolsPortSavedDetails.v1+json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/toolsPortSettingsDetails.v1+json' \ --data '{"gatewayNonSSLPort":80,"ftSSLPort":8443,"ftNonSSLPort":8020,"gatewaySSLPort":443,"useSSL":true}' ``` ### Sample Request Body ```json { "gatewayNonSSLPort": 80, "ftSSLPort": 8443, "ftNonSSLPort": 8020, "gatewaySSLPort": 443, "useSSL": true } ``` ## Response ### Response Parameters #### HTTP Code 200 Response Body — `application/json` - `status` `string` Result of the operation: success or failure ### Sample Response: HTTP 200 ```json { "status": "success" } ``` ### Possible Response Codes - **200** — HTTP code ## Rate Limits ![](https://www.zohowebstatic.com/sites/zweb/images/people/ico-help.png) **Duration:** 1 minute | **Threshold:** 30 | **Lock period:** 5 minutes Duration - Time window for the threshold. Threshold - Number of API calls allowed within the specified duration. Lock Period - Wait time before consecutive API requests.