Update Health Policy Settings

Open in ChatGPT Open in ChatGPT to ask questions about this page
Open in Claude Open in Claude to ask questions about this page
Copy as MarkdownCopy this page as markdown to use with AI assistants
View as Markdown Open this page as markdown in a new tab

Updates the system health policy configuration settings.

Request URL

https://{serverurl}/dcapi/patch/settings/healthPolicy

Scope

DesktopCentralCloud.PatchMgmt.UPDATECopied!

Header

Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52

- Request Body

application/json
JSON Object
Hide Sub-Attributes
healthyThresholdstringMandatory

Set maximum missing patches for healthy status

vulnerableThresholdstringMandatory

Set missing patch threshold for vulnerable status

highlyVulnerableThresholdstringMandatory

Set missing patch threshold for highly vulnerable status

criticalPatchWeightstringOptional

Weight for critical severity patches

importantPatchWeightstringOptional

Weight for important severity patches

moderatePatchWeightstringOptional

Weight for moderate severity patches

lowPatchWeightstringOptional

Weight for low severity patches

Sample Request

Curl
Java
Python
Deluge
PowerShell
Copied!
curl --request PUT \
  --url https://appdomains/dcapi/patch/settings/healthPolicy \
  --header 'Authorization: Zoho-oauthtoken  d92d4xxxxxxxxxxxxx15f52' \
  --header 'content-type: application/json' \
  --data '{"highlyVulnerableThreshold":15,"vulnerableThreshold":10,"healthyThreshold":0}'

Sample Request Body

Custom health policy with adjusted thresholds

Copied!
  {
    "highlyVulnerableThreshold": 15,
    "vulnerableThreshold": 10,
    "importantPatchWeight": 3,
    "moderatePatchWeight": 1,
    "lowPatchWeight": 0,
    "healthyThreshold": 0,
    "criticalPatchWeight": 5
  }
                
Show full

Response Parameters

- HTTP code 200

Response Body - application/json
JSON Object
Hide Sub-Attributes
statusstring

Operation result: success

remarksstring

Confirmation message

Possible Response Codes

200HTTP code

Sample Response: HTTP 200

Health policy updated

Copied!
  {
    "remarks": "Health policy updated",
    "status": "success"
  }
                
Show full

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.