Kick a user from the room.
POST {{baseUrl}}/rooms/:roomId/kick
Kick a user from the room.
The caller must have the required power level in order to perform this operation.
Kicking a user adjusts the target member's membership state to be leave with an
optional reason. Like with other membership changes, a user can directly adjust
the target member's state by making a request to /rooms/<room id>/state/m.room.member/<user id>.
Request Body
{"reason"=>"Telling unfunny jokes", "user_id"=>"@cheeky_monkey:matrix.org"}
HEADERS
| Key | Datatype | Required | Description |
|---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{}