diff --git a/docs/client-server/swagger_matrix/api-docs-events b/docs/client-server/swagger_matrix/api-docs-events
index d22c68cc78..e5dd3a6113 100644
--- a/docs/client-server/swagger_matrix/api-docs-events
+++ b/docs/client-server/swagger_matrix/api-docs-events
@@ -15,25 +15,26 @@
"summary": "Listen on the event stream",
"notes": "This can only be done by the logged in user. This will block until an event is received, or until the timeout is reached.",
"type": "PaginationChunk",
- "nickname": "get_event_stream"
- }
- ],
- "parameters": [
- {
- "name": "from",
- "description": "The token to stream from.",
- "required": false,
- "type": "string",
- "paramType": "query"
- },
- {
- "name": "timeout",
- "description": "The maximum time in milliseconds to wait for an event.",
- "required": false,
- "type": "integer",
- "paramType": "query"
+ "nickname": "get_event_stream",
+ "parameters": [
+ {
+ "name": "from",
+ "description": "The token to stream from.",
+ "required": false,
+ "type": "string",
+ "paramType": "query"
+ },
+ {
+ "name": "timeout",
+ "description": "The maximum time in milliseconds to wait for an event.",
+ "required": false,
+ "type": "integer",
+ "paramType": "query"
+ }
+ ]
}
],
+
"responseMessages": [
{
"code": 400,
diff --git a/docs/client-server/swagger_matrix/api-docs-rooms b/docs/client-server/swagger_matrix/api-docs-rooms
index 7d3341f097..0a8bb3c2a5 100644
--- a/docs/client-server/swagger_matrix/api-docs-rooms
+++ b/docs/client-server/swagger_matrix/api-docs-rooms
@@ -297,6 +297,37 @@
]
},
{
+ "path": "/rooms/{roomId}/ban",
+ "operations": [
+ {
+ "method": "POST",
+ "summary": "Ban a user in the room.",
+ "notes": "This operation can also be done as a PUT by suffixing /{txnId}. The caller must have the required power level to do this operation.",
+ "type": "void",
+ "nickname": "ban",
+ "consumes": [
+ "application/json"
+ ],
+ "parameters": [
+ {
+ "name": "roomId",
+ "description": "The room which has the user to ban.",
+ "required": true,
+ "type": "string",
+ "paramType": "path"
+ },
+ {
+ "name": "body",
+ "description": "The user to ban.",
+ "required": true,
+ "type": "BanRequest",
+ "paramType": "body"
+ }
+ ]
+ }
+ ]
+ },
+ {
"path": "/rooms/{roomId}/state/m.room.member/{userId}",
"operations": [
{
@@ -657,6 +688,16 @@
"type": "string",
"description": "The alias to give the new room.",
"required": false
+ },
+ "name": {
+ "type": "string",
+ "description": "Sets the name of the room. Send a m.room.name event after creating the room with the 'name' key specified.",
+ "required": false
+ },
+ "topic": {
+ "type": "string",
+ "description": "Sets the topic for the room. Send a m.room.topic event after creating the room with the 'topic' key specified.",
+ "required": false
}
}
},
@@ -789,6 +830,19 @@
}
}
},
+ "BanRequest": {
+ "id": "BanRequest",
+ "properties": {
+ "user_id": {
+ "type": "string",
+ "description": "The fully-qualified user ID."
+ },
+ "reason": {
+ "type": "string",
+ "description": "The reason for the ban."
+ }
+ }
+ },
"InitialSyncRoomData": {
"id": "InitialSyncRoomData",
"properties": {
|