Configures the cleanup policy for auto-update packages including enabling/disabling cleanup and specifying the number of recent package versions to retain.
post /dcapi/swDeployment/savePackageCleanupSettings
https://{serverurl}/dcapi/swDeployment/savePackageCleanupSettings
Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52
true to enable auto-update package cleanup, false to disable
Number of recent auto-update package versions to retain per software (2-8)
curl --request POST \
--url https://appdomains/dcapi/swDeployment/savePackageCleanupSettings \
--header 'Accept: application/savePackageCleanup.v1+json' \
--header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \
--header 'Content-Type: application/savePackageCleanup.v1+json' \
--data '{}'Enable cleanup, keep 3 recent
{
"noOfRecentAutoUpdatePkgs": 3,
"isEnableAutoUpdateCleanup": true
}
Disable cleanup
{
"noOfRecentAutoUpdatePkgs": 2,
"isEnableAutoUpdateCleanup": false
}
Human-readable result message
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
Settings saved
{
"remarks": "Package Cleanup Settings SuccessFully Updated"
}
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.