# 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. ## Endpoint `PUT /dcapi/tools/chat/{resourceId}/disconnect` ## Request ### Request URL https://[{serverurl}](https://www.manageengine.com/products/desktop-central/help/api/cloud/oauth-authentication-endpoint-domain.html)/dcapi/tools/chat/{resourceId}/disconnect ### Scope `DesktopCentralCloud.Tools.UPDATE` ### Header `Authorization: Zoho-oauthtoken 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) - **chatJoinedUser** (`string`, Optional) - **chatInitiatedFromRDS** (`string`, Optional) - **resourceTechIDParam** (`string`, Optional) - **annonID** (`string`, Optional) - **chatID** (`string`, Optional) - **cliqID** (`string`, Optional) - **chatInitiatedBy** (`string`, Optional) ### Sample Request ```curl curl --request PUT \ --url https://appdomains/dcapi/tools/chat/{resourceId}/disconnect \ --header 'Authorization: Zoho-oauthtoken d92d4xxxxxxxxxxxxx15f52' \ --header 'Content-Type: application/disconnectChatInfo.v1+json' \ --data '{}' ``` ### 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 ### 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 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.