# Terminates an active chat session for the specified computer Disconnects the active chat session associated with the specified computer resource ID. Accepts a JSON body containing the session ID, chat initiator details, and identifiers for the chat session to be terminated. ## Endpoints `PUT /dcapi/tools/chat/{resourceId}/disconnect` ## Request URL `https://{server-hostname}:8383/dcapi/tools/chat/{resourceId}/disconnect` ## Scope `Tools.UPDATE` ## Header `Authorization: d92d4xxxxxxxxxxxxx15f52` ## Request Parameters ### Request Headers - **Content-Type** `string` — **Mandatory** - `application/disconnectChatInfo.v1+json` ### Path Parameters - **resourceId** `string` — **Mandatory` - The unique identifier of the target device ### Request Body `application/json` - `JSON Object` - **sessionID** `string` — Optional - RoleId. [Get Role Id](https://www.manageengine.com/products/desktop-central/help/api/onpremise/chat-disconnect-chat.html?getRoles) - **chatJoinedUser** `string` — Optional - **chatInitiatedFromRDS** `string` — Optional - **resourceTechIDParam** `string` — Optional - **annonID** `string` — Optional - **chatID** `string` — Optional - **cliqID** `string` — Optional - **chatInitiatedBy** `string` — Optional ## Sample Request ```bash curl --request PUT \ --url https://appdomain/dcapi/tools/chat/{resourceId}/disconnect \ --header 'Authorization: d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/disconnectChatInfo.v1+json' \ --data '{"chatInitiatedFromRDS":"false","chatID":12345,"chatInitiatedBy":"admin@corp.com","annonID":"ann_01","sessionID":998877665544,"resourceTechIDParam":"tech_001","chatJoinedUser":"john.doe","cliqID":67890}' ``` ## Sample Request Body ```json { "chatInitiatedFromRDS": "false", "chatID": 12345, "chatInitiatedBy": "admin@corp.com", "annonID": "ann_01", "sessionID": 998877665544, "resourceTechIDParam": "tech_001", "chatJoinedUser": "john.doe", "cliqID": 67890 } ``` ## 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" } ``` ## API 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.