# Approve Specific Patches Approves specified patches across managed systems. ## Endpoint `PUT /dcapi/patch/settings/approvePatches` ## Request ### Request URL `https://`[*{serverurl}*](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html)`/dcapi/patch/settings/approvePatches` ### Scope `DesktopCentralCloud.PatchMgmt.UPDATE` ### Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ### Request Parameters #### Request Headers - **Content-Type** `string` **Mandatory**: `application/approvePatches.v1+json` - **Accept** `string` **Mandatory**: `application/approvePatches.v1+json` #### Request Body `application/json` - `patches` `array` Optional: Patch IDs to approve (maximum 1000 per call). Get the patch IDs from the [Get All Patches](https://www.manageengine.com/products/desktop-central/help/api/cloud/patch-report-get-all-patches-report.html) API. - `customers` `array` Optional: Applicable only for MSP editions. Customer IDs the approval applies to; an empty array applies it to the current customer. Get the customer IDs from the [Customer Details](https://www.manageengine.com/products/desktop-central/help/api/cloud/getallcustomers.html) API. ### Sample Request ```curl curl --request PUT \ --url https://appdomains/dcapi/patch/settings/approvePatches \ --header 'Accept: application/approvePatches.v1+json' \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/approvePatches.v1+json' \ --data '{}' ``` ### Sample Request Body ```json { "patches": [ 355682, 355609, 353530 ], "customers": [] } ``` ## Response Parameters ### HTTP Code 200 Response body: `application/json` - `status` `string`: Operation status: success - `message` `string`: Human-readable result detail, listing the patch IDs that were approved #### Sample Response: HTTP 200 ```json { "status": "success", "message": "Patch(es) :[355682, 355609, 353530] approved successfully." } ``` ### HTTP Code 401 Response body: `application/json` - `errorCode` `long`: Unauthorized error code returned when authentication credentials are missing, expired, or invalid (authentication=required) - `errorMsg` `string`: Authentication failure reason #### Sample Response: HTTP 401 Authentication credentials are missing, expired or invalid ```json { "error_code": "UAC_UNAUTHORIZED", "error_description": "dc.rest.authentication.unauthorized" } ``` ### HTTP Code 403 Response body: `application/json` - `errorCode` `long`: Forbidden error code returned when the authenticated user does not have the required uem-roles (e.g., DataEncryption_Admin or DataEncryptionRecoveryKey_Admin) - `errorMsg` `string`: Message indicating insufficient privileges to access this resource #### Sample Response: HTTP 403 Authenticated user lacks the required role or scope ```json { "errorCode": "FORBIDDEN", "errorMessage": "You do not have sufficient privileges to perform this operation" } ``` ### HTTP Code 429 Response body: `application/json` - `errorCode` `long`: Rate limit error code returned when the API call threshold (configured via threshold/duration in security XML) is exceeded; client is locked out for lock-period minutes - `errorMsg` `string`: Rate limit exceeded message with retry guidance #### Sample Response: HTTP 429 API call threshold exceeded ```json { "errorCode": "RATE_LIMIT_EXCEEDED", "errorMessage": "API call limit exceeded. Retry after the lock period elapses" } ``` ## Rate Limits ![Help icon](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.