# List Patch Deployment Retrieves a list of all patch deployment policies configured in Endpoint Central. **This API endpoint is deprecating soon** ## Endpoints **GET** `/api/1.4/patch/deploymentpolicies` ## Request URL ``` https://{serverurl}/api/1.4/patch/deploymentpolicies ``` ## Scope ``` DesktopCentralCloud.PatchMgmt.READ ``` ## Header ``` Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52 ``` ## Request Parameters ### Query Parameters - **searchvalue** (string) — Optional - **searchcolumn** (string) — Optional - **searchtype** (string) — Optional - **sortorder** (string) — Optional - **orderby** (string) — Optional - **pagelimit** (string) — Optional - Number of records per page. - **page** (integer) — Optional - Current page number for pagination. - **customerid** (long) — Optional - **policyname** (string) — Optional - **platform** (string) — Optional ## Sample Request ### Curl ```bash curl --request GET \ --url https://appdomain/api/1.4/patch/deploymentpolicies \ --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://appdomain/api/1.4/patch/deploymentpolicies")) .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("appdomain") headers = { 'Authorization': "Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52" } conn.request("GET", "/api/1.4/patch/deploymentpolicies", headers=headers) res = conn.getresponse() data = res.read() print(data.decode("utf-8")) ``` ### Deluge ```javascript headersMap = Map(); headersMap.put("Accept", "application/json"); response = invokeUrl [ url: "https://appDomain/api/1.4/patch/deploymentpolicies" type: GET headers: headersMap connection: connection_name ] info response; ``` ### PowerShell ```powershell $headers=@{} $headers.Add("Authorization", "Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52") $response = Invoke-WebRequest -Uri 'https://appdomain/api/1.4/patch/deploymentpolicies' -Method GET -Headers $headers ``` ## Response Parameters ### HTTP 200 **Response Body**: `application/json` - **message_type** (string) - Value: `deploymentpolicies` - **message_response** (JSON object) - Paginated deployment policies data - **total** (string) - Total number of deployment policies - **deploymentpolicies** (JSON array) - Array of deployment policy objects - **template_id** (long) - Unique deployment policy template identifier - **template_name** (string) - Deployment policy name - **user_id** (long) - User ID of the policy creator - **first_name** (string) - Username of the policy creator - **customer_id** (long) - Customer/tenant identifier - **creation_time** (long) - Policy creation timestamp - **modified_time** (long) - Policy last modified timestamp - **is_template_alive** (boolean) - Whether the policy is active - **set_as_default** (boolean) - Whether this is the default deployment policy - **limit** (string) - Records per page - **page** (string) - Current page number - **message_version** (string) - API version: 1.0 - **status** (string) - Operation status: success - **response_code** (string) - Response code: 200 ## Sample Response: HTTP 200 Paginated list of deployment policies ```json { "response_code": 200, "message_type": "deploymentpolicies", "message_response": { "total": 44, "deploymentpolicies": [ { "creation_time": 1552544237529, "template_name": "My Policy 939", "is_template_alive": true, "modified_time": 1552544237529, "set_as_default": false, "user_id": 1, "template_id": 8103, "customer_id": 1, "first_name": "admin" } ], "limit": 25, "page": 1 }, "message_version": "1.0", "status": "success" } ``` ## Possible HTTP Status Codes - **200** — HTTP code ## Rate Limit **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.