# Updates the history retention settings for system tools task executions Saves the system tools history retention configuration. Accepts a JSON body with 'maxHistoryCount' and optional 'saveAndApplyNow' flag to immediately purge records beyond the new limit. ## Endpoint `PUT /dcapi/tools/systemTools/settings` ## Request URL `https://[{serverurl}](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html)/dcapi/tools/systemTools/settings` ## Scope `DesktopCentralCloud.Tools.UPDATE` ## Header `Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Content-Type** (`string`, Mandatory): `application/taskHistorySettings.v1+json` ### Request Body `application/json` - JSON Object - **saveAndApplyNow** (`boolean`, Optional) - **maxHistoryCount** (`string`, Optional) ## Sample Request ```curl curl --request PUT \ --url https://appdomains/dcapi/tools/systemTools/settings \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/taskHistorySettings.v1+json' \ --data '{}' ``` ## Sample Request Body ```json { "maxHistoryCount": 200, "saveAndApplyNow": true } ``` ## Response Parameters ### HTTP Code 200 Response Body — `application/json` - JSON Object - **status** (`string`): Result of the operation: success or failure ## Possible Response Codes - **200** (`HTTP code`) ## Sample Response: HTTP 200 ```json { "status": "success" } ``` ## Rate Limits ![Help icon](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.