# 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. ## Endpoints `PUT /dcapi/tools/systemTools/settings` ## Request URL `https://{server-hostname}:8383/dcapi/tools/systemTools/settings` ## Scope `Tools.UPDATE` ## Header `Authorization: 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 curl --request PUT \ --url https://appdomain/dcapi/tools/systemTools/settings \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/taskHistorySettings.v1+json' \ --data '{"maxHistoryCount":200,"saveAndApplyNow":true}' ``` ## 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" } ``` **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.