# Get Cleanup Settings Retrieves patch cleanup settings configuration. ## Endpoint `GET /dcapi/patch/settings/cleanupSettings` ## Request ### Request URL `https://{server-hostname}:8383/dcapi/patch/settings/cleanupSettings` ### Scope `PatchMgmt.READ` ### Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ### Sample Request ```curl curl --request GET \ --url https://appdomain/dcapi/patch/settings/cleanupSettings \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' ``` ## Response Parameters ### HTTP Code 200 #### Response Body: application/json **JSON Object** - **cleanupEnabled** (`boolean`): Whether patch cleanup is enabled - **cleanupIntervalDays** (`string`): Interval in days between cleanup runs - **cleanupOlderThanDays** (`string`): Delete patches older than this many days - **deleteSupersededPatches** (`boolean`): Whether to delete superseded patches - **deleteDeclinedPatches** (`boolean`): Whether to delete declined patches ### Sample Response: HTTP 200 Current cleanup settings ```json { "cleanupOlderThanDays": 90, "cleanupIntervalDays": 30, "deleteDeclinedPatches": false, "cleanupEnabled": true, "deleteSupersededPatches": true } ``` ### Possible Response Codes - **200** (`HTTP code`) ## 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.