# Initiate Patch Scan for All Systems Initiates a patch scan across all computers managed by the Endpoint Central server. ## Endpoint `POST /api/1.4/patch/computers/scanall` ## Request ### Request URL https://[*{serverurl}*](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html)/api/1.4/patch/computers/scanall ### Scope `DesktopCentralCloud.PatchMgmt.CREATE` ### Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ### Request Parameters #### Query Parameters - **customerid** `long` *(Optional)* ### Sample Request ```curl curl --request POST \ --url https://appdomains/api/1.4/patch/computers/scanall \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' ``` ## Response ### HTTP Code 200 #### Response Body: application/json `JSON Object` - **message_type** `string`: Action identifier: computers - **message_response** `JSON Object`: Response payload containing scan result - **message_version** `string`: API version string (e.g., 1.4) - **status** `string`: Overall operation status: success ### Sample Response: HTTP 200 Scan initiated for all managed computers ```json { "message_type": "computers", "message_response": { "computers": { "status": "Scan initiated successfully" } }, "message_version": "1.4", "status": "success" } ``` ### HTTP Code 400 #### Response Body: application/json `JSON Object` - **error_code** `string`: Error code: PATCH_SCAN_FAILED_CODE for scan failures - **error** `string`: Error type: PATCH_SCAN_FAILED - **error_description** `string`: Detailed failure reason: invalid resources, no managed computers, or scan already in progress ### Sample Response: HTTP 400 No managed computers found for user ```json { "error_description": "Verify if the specified resources can be managed by this user or the resource scan status is already in in-progress state", "error_code": "PATCH_SCAN_FAILED_CODE", "error": "PATCH_SCAN_FAILED" } ``` ### Possible Response Codes - **200**: HTTP code - **400**: HTTP code ## Rate Limit ![](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.