# Retrieves the current auto-update package cleanup policy configuration Fetches whether cleanup is enabled, how many recent packages to retain, and the maximum days before archived packages are permanently deleted. ## Endpoint `GET /dcapi/swDeployment/getPackageCleanupSettingDetails` ## Request ### Request URL `https://{server-hostname}:8383/dcapi/swDeployment/getPackageCleanupSettingDetails` ### Scope `SWDeployment.READ` ### Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ### Request Parameters **Request Headers** | Name | Type | Required | Value | |---|---|---|---| | Accept | string | Mandatory | `application/PackageCleanupSettingDetails.v1+json` | ### Sample Request ```curl curl --request GET \ --url https://appdomain/dcapi/swDeployment/getPackageCleanupSettingDetails \ --header 'Accept: application/PackageCleanupSettingDetails.v1+json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP Code 200 **Response Body:** `application/json` | Attribute | Type | Description | |---|---|---| | isEnableAutoUpdateCleanup | boolean | true if auto-update package cleanup is enabled | | noOfRecentAutoUpdatePkgs | integer | Number of recent auto-update package versions to retain per software (2-8) | | maxDaysForAllArchivePkg | integer | Maximum days to retain archived packages before permanent deletion | ### HTTP Code 500 **Response Body:** `application/json` | Attribute | Type | Description | |---|---|---| | errorCode | string | SW_INTERNAL_ERROR for cleanup settings failures, INTERNAL_ERROR for restore operation errors | | errorMessage | string | Internal server error with details about the cleanup policy or archive restore failure | ### Possible Response Codes | Code | Type | |---|---| | 200 | HTTP code | | 500 | HTTP code | ### Sample Response: HTTP 200 **Cleanup enabled** ```json { "noOfRecentAutoUpdatePkgs": 3, "maxDaysForAllArchivePkg": 90, "isEnableAutoUpdateCleanup": true } ``` **Cleanup disabled** ```json { "noOfRecentAutoUpdatePkgs": 2, "maxDaysForAllArchivePkg": 90, "isEnableAutoUpdateCleanup": false } ``` ### Sample Response: HTTP 500 **Server error** ```json { "errorMessage": "Internal Server Error", "errorCode": "SW_INTERNAL_ERROR" } ``` ## Rate Limit ![](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.