Updates patch cleanup settings.
put /dcapi/patch/settings/cleanupSettings
https://{serverurl}/dcapi/patch/settings/cleanupSettings
Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52
Whether patch cleanup is enabled
Interval in days between cleanup runs
Delete patches older than this many days
Whether to delete superseded patches
Whether to delete declined patches
curl --request PUT \
--url https://appdomains/dcapi/patch/settings/cleanupSettings \
--header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
--header 'content-type: application/json' \
--data '{}'Enable declined patch cleanup
{
"cleanupOlderThanDays": 90,
"cleanupIntervalDays": 30,
"deleteDeclinedPatches": true,
"cleanupEnabled": true,
"deleteSupersededPatches": true
}
Confirmation message: Cleanup settings have saved successfully
Error code: UAC_UNAUTHORIZED for missing or invalid credentials
Localized description: dc.rest.authentication.unauthorized
Cleanup settings saved
{
"remarks": "Cleanup settings have saved successfully"
}
Unauthorized access
{
"error_description": "dc.rest.authentication.unauthorized",
"error_code": "UAC_UNAUTHORIZED"
}
![]()
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.
© 2026, Zoho Corporation Pvt. Ltd. All Rights Reserved.