Kick participants from an active session
realtime_kit.active_session.kick_participants(strmeeting_id, ActiveSessionKickParticipantsParams**kwargs) -> ActiveSessionKickParticipantsResponse
POST/accounts/{account_id}/realtime/kit/{app_id}/meetings/{meeting_id}/active-session/kick
Kicks one or more participants from an active session using user ID or custom participant ID.
Security
API Token
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Example:
API Email + API Key
The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
Example:
The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
Example:
Accepted Permissions (at least one required)
Parameters
Kick participants from an active session
import os
from cloudflare import Cloudflare
client = Cloudflare(
api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted
)
response = client.realtime_kit.active_session.kick_participants(
meeting_id="meeting_id",
account_id="023e105f4ecef8ad9ca31a8372d0c353",
app_id="14a396e7-ca44-4937-bf1f-050a69118543",
)
print(response.data){
"data": {
"action": "action",
"participants": [
{
"id": "id",
"created_at": "created_at",
"updated_at": "updated_at",
"email": "email",
"name": "name",
"picture": "picture"
}
]
},
"success": true
}{
"error": {
"code": 404,
"message": "No user found with id 813432c7-3c5a-45e2-9acf-eef7061c7584"
},
"success": false
}Returns Examples
{
"data": {
"action": "action",
"participants": [
{
"id": "id",
"created_at": "created_at",
"updated_at": "updated_at",
"email": "email",
"name": "name",
"picture": "picture"
}
]
},
"success": true
}{
"error": {
"code": 404,
"message": "No user found with id 813432c7-3c5a-45e2-9acf-eef7061c7584"
},
"success": false
}