# Fetches the list of software for which auto-update is enabled Retrieves all software entries that currently have auto-update enabled, along with their associated policy IDs. ## Endpoints GET `/dcapi/swDeployment/getAutoUpdateEnabledSWList` ## Request URL https://[{serverurl}](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html)/dcapi/swDeployment/getAutoUpdateEnabledSWList ## Scope `DesktopCentralCloud.SWDeployment.READ` ### Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept** `string` **Mandatory**: `application/getAutoUpdateEnabledSWList.v1+json` ## Sample Request ### Curl ```curl curl --request GET \ --url https://appdomains/dcapi/swDeployment/getAutoUpdateEnabledSWList \ --header 'Accept: application/getAutoUpdateEnabledSWList.v1+json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' ``` ### Java ```java import java.net.URI; import java.net.http.HttpClient; import java.net.http.HttpRequest; import java.net.http.HttpResponse; import java.io.IOException; import java.net.http.HttpTimeoutException; public class Main { public static void main(String[] args) { HttpRequest request = HttpRequest.newBuilder() .uri(URI.create("https://appdomains/dcapi/swDeployment/getAutoUpdateEnabledSWList")) .header("Accept", "application/getAutoUpdateEnabledSWList.v1+json") .header("Authorization", "Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52") .method("GET", HttpRequest.BodyPublishers.noBody()) .build(); HttpResponse response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString()); System.out.println(response.body()); } } ``` ### Python ```python import http.client conn = http.client.HTTPSConnection("appdomains") headers = { 'Accept': "application/getAutoUpdateEnabledSWList.v1+json", 'Authorization': "Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52" } conn.request("GET", "/dcapi/swDeployment/getAutoUpdateEnabledSWList", headers=headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ### Deluge ```javascript headersMap = Map(); headersMap.put("Accept", "application/getAutoUpdateEnabledSWList.v1+json"); response = invokeUrl [ url: "https://appDomains/dcapi/swDeployment/getAutoUpdateEnabledSWList" type: GET headers: headersMap connection: connection_name ] info response; ``` ### PowerShell ```powershell $headers=@{} $headers.Add("Accept", "application/getAutoUpdateEnabledSWList.v1+json") $headers.Add("Authorization", "Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52") $response = Invoke-WebRequest -Uri 'https://appdomains/dcapi/swDeployment/getAutoUpdateEnabledSWList' -Method GET -Headers $headers ``` ## Response Parameters ### HTTP code 200 #### Response Body — application/json `JSON Object` - **softwareIds** `JSON Array`: Array of software entries with auto-update enabled ### HTTP code 500 #### Response Body — application/json `JSON Object` - **errorCode** `string`: INTERNAL_ERROR for general failures, SW_INTERNAL_ERROR for software deployment internal errors - **errorMessage** `string`: Internal server error with details about the template/auto-update operation failure ## Sample Response: HTTP 200 Software with auto-update enabled ```json { "softwareIds": [ { "softwareId": 2001, "policyId": 1 }, { "softwareId": 2003, "policyId": 2 } ] } ``` ## Sample Response: HTTP 500 Server error ```json { "errorMessage": "Internal Server Error", "errorCode": "INTERNAL_ERROR" } ``` ## Possible Response Codes - **200** `HTTP code` - **500** `HTTP code` **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.