Fetches whether cleanup is enabled, how many recent packages to retain, and the maximum days before archived packages are permanently deleted.
https://{serverurl}/dcapi/swDeployment/getPackageCleanupSettingDetails
Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52
curl --request GET \
--url https://appdomains/dcapi/swDeployment/getPackageCleanupSettingDetails \
--header 'Accept: application/PackageCleanupSettingDetails.v1+json' \
--header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52'true if auto-update package cleanup is enabled
Number of recent auto-update package versions to retain per software (2-8)
Maximum days to retain archived packages before permanent deletion
SW_INTERNAL_ERROR for cleanup settings failures, INTERNAL_ERROR for restore operation errors
Internal server error with details about the cleanup policy or archive restore failure
Cleanup enabled
{
"noOfRecentAutoUpdatePkgs": 3,
"maxDaysForAllArchivePkg": 90,
"isEnableAutoUpdateCleanup": true
}
Cleanup disabled
{
"noOfRecentAutoUpdatePkgs": 2,
"maxDaysForAllArchivePkg": 90,
"isEnableAutoUpdateCleanup": false
}
Server error
{
"errorMessage": "Internal Server Error",
"errorCode": "SW_INTERNAL_ERROR"
}
![]()
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.