Destroy the room
Description
Destroy the room.
Rate limit: 20 requests/second
The client will receive the notification through the following callbacks when the room is destroyed.
Platform | Callback |
---|---|
iOS/macOS | zim:roomStateChanged:event:extendedData: |
Android | onRoomStateChanged |
Windows | onRoomStateChanged |
Web | roomStateChanged |
Request method and endpoint
- Request method: GET
- Request endpoint:
https://zim-api.zego.im/?Action=DestroyRoom
- Transmission protocol: HTTPS
Request parameters
Listed below are the parameters specific to this request and part of the public request parameters. For the complete list of public request parameters, see Accessing Server APIs - Public parameters.
Parameter | Type | Required | Description |
---|---|---|---|
RoomId | String | Yes | Room ID. |
Note
The RoomId
can only contain numbers, letters, and the following special characters: !#$%&()+-:;<=.>?@[]^_{}|~.
Sample request
Untitled
https://zim-api.zego.im/?Action=DestroyRoom
&RoomId=123
&<Public parameters>
1
Response parameters
Parameter | Type | Description |
---|---|---|
Code | Number | Return code. |
Message | String | Description of the request execution result. |
RequestId | String | Request ID. |
Sample response
Untitled
{
"Code":0,
"Message":"success",
"RequestId":"343649807833778782"
}
1
Return codes
Listed below are the return codes related to this API. For the complete list of return codes, see Return codes.
return code | Description |
---|---|
660300001 | The room does not exist. |