|
|
@ -34,6 +34,10 @@ paths:
|
|
|
|
Kick a user from the room.
|
|
|
|
Kick a user from the room.
|
|
|
|
|
|
|
|
|
|
|
|
The caller must have the required power level in order to perform this operation.
|
|
|
|
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>``.
|
|
|
|
operationId: kick
|
|
|
|
operationId: kick
|
|
|
|
security:
|
|
|
|
security:
|
|
|
|
- accessToken: []
|
|
|
|
- accessToken: []
|
|
|
@ -59,7 +63,9 @@ paths:
|
|
|
|
description: The fully qualified user ID of the user being kicked.
|
|
|
|
description: The fully qualified user ID of the user being kicked.
|
|
|
|
reason:
|
|
|
|
reason:
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
description: The reason the user has been kicked.
|
|
|
|
description: |-
|
|
|
|
|
|
|
|
The reason the user has been kicked. This will be supplied as the
|
|
|
|
|
|
|
|
``reason`` on the target's updated `m.room.member`_ event.
|
|
|
|
required: ["user_id"]
|
|
|
|
required: ["user_id"]
|
|
|
|
responses:
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
200:
|
|
|
|