# Update Health Policy Settings Updates the system health policy configuration settings. ## Endpoint `PUT /dcapi/patch/settings/healthPolicy` ## Request ### Request URL `https://{server-hostname}:8383/dcapi/patch/settings/healthPolicy` ### Scope `PatchMgmt.UPDATE` ### Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ### Request Body `application/json` **JSON Object** - **healthyThreshold** (`string`, Mandatory): Set maximum missing patches for healthy status - **vulnerableThreshold** (`string`, Mandatory): Set missing patch threshold for vulnerable status - **highlyVulnerableThreshold** (`string`, Mandatory): Set missing patch threshold for highly vulnerable status - **criticalPatchWeight** (`string`, Optional): Weight for critical severity patches - **importantPatchWeight** (`string`, Optional): Weight for important severity patches - **moderatePatchWeight** (`string`, Optional): Weight for moderate severity patches - **lowPatchWeight** (`string`, Optional): Weight for low severity patches ### Sample Request ```curl curl --request PUT \ --url https://appdomain/dcapi/patch/settings/healthPolicy \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'content-type: application/json' \ --data '{"highlyVulnerableThreshold":15,"vulnerableThreshold":10,"importantPatchWeight":3,"moderatePatchWeight":1,"lowPatchWeight":0,"healthyThreshold":0,"criticalPatchWeight":5}' ``` ### Sample Request Body Custom health policy with adjusted thresholds ```json { "highlyVulnerableThreshold": 15, "vulnerableThreshold": 10, "importantPatchWeight": 3, "moderatePatchWeight": 1, "lowPatchWeight": 0, "healthyThreshold": 0, "criticalPatchWeight": 5 } ``` ## Response Parameters ### HTTP Code 200 Response Body — `application/json` **JSON Object** - **status** (`string`): Operation result: success - **remarks** (`string`): Confirmation message ## Possible Response Codes - **200**: HTTP code ### Sample Response: HTTP 200 Health policy updated ```json { "remarks": "Health policy updated", "status": "success" } ``` ## Rate Limits ![](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.