# Unapprove Specified Patches Initiates the patch unapproval process for the specified patches across all computers managed by the Endpoint Central server. **This API endpoint is deprecating soon** ## Endpoint `POST /api/1.4/patch/unapprovepatch` ## Request URL `https://{server-hostname}:8383/api/1.4/patch/unapprovepatch` ## Scope `PatchMgmt.CREATE` ## Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ## Request Body ### application/json - **patchids** `array` — Mandatory - Array of patch IDs to unapprove. Max 1000 entries. ## Sample Request ```curl curl --request POST \ --url https://appdomain/api/1.4/patch/unapprovepatch \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'content-type: application/json' \ --data '{"patchids":[112,113,114]}' ``` ## Sample Request Body Unapprove patches by IDs ```json { "patchids": [ 112, 113, 114 ] } ``` ## Response Parameters ### HTTP Code 200 #### Response Body: application/json - **message_type** `string` - Action identifier: unapprovepatch - **message_response** `JSON Object` - Unapproval result payload - **message_version** `string` - API version: 1.4 - **status** `string` - Overall operation status: success ### Sample Response: HTTP 200 Unapproval initiated successfully ```json { "message_type": "unapprovepatch", "message_response": { "unapprovepatch": { "status": "Initiated Successfully" } }, "message_version": "1.4", "status": "success" } ``` ### HTTP Code 400 #### Response Body: application/json - **error_code** `string` - Error code: APPROVE_FAILED_CODE for approval failures - **error** `string` - Error type: APPROVE_FAILED - **error_description** `string` - Detailed failure reason: insufficient permissions, invalid patch list, or empty patches ### Sample Response: HTTP 400 User lacks All Managed Computer role ```json { "error_description": "Verify if the user is granted permissions to manage all computers!", "error_code": "APPROVE_FAILED_CODE", "error": "APPROVE_FAILED" } ``` ## Possible Response Codes - **200** — HTTP code - **400** — HTTP code ## Rate Limits **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.