Ban a user in the room.

POST {{baseUrl}}/rooms/:roomId/ban

Ban a user in the room. If the user is currently in the room, also kick them.

When a user is banned from a room, they may not join it or be invited to it until they are unbanned.

The caller must have the required power level in order to perform this operation.

Request Body

{"reason"=>"Telling unfunny jokes", "user_id"=>"@cheeky_monkey:matrix.org"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{}