# Updates the number of days to retain chat history logs Updates the chat history retention configuration by setting the number of days to retain chat conversation logs. Accepts a JSON body with the 'chatHisDays' key. ## Endpoint `PUT /dcapi/tools/chat/settings` ## Request URL `https://{server-hostname}:8383/dcapi/tools/chat/settings` ## Scope `Tools.UPDATE` ## Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Accept** `string` — Mandatory: `application/settingsStatus.v1+json` - **Content-Type** `string` — Mandatory: `application/settingsDetails.v1+json` ### Request Body `application/json` - `JSON Object` - **chatHisDays** `string` — Optional ## Sample Request ```shell curl --request PUT \ --url https://appdomain/dcapi/tools/chat/settings \ --header 'Accept: application/settingsStatus.v1+json' \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/settingsDetails.v1+json' \ --data '{"chatHisDays":60}' ``` ## Sample Request Body ```json { "chatHisDays": 60 } ``` ## 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" } ``` ![ ](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.