From 4b36b11f119ec7451a050b0cd759bdead2f1bf11 Mon Sep 17 00:00:00 2001 From: DMRobertson Date: Tue, 5 Dec 2023 13:16:01 +0000 Subject: deploy: 3c83d8f0afcaa8461516321d49a64906e0ec865b --- v1.98/admin_api/room_membership.html | 215 +++++++++++++++++++++++++++++++++++ 1 file changed, 215 insertions(+) create mode 100644 v1.98/admin_api/room_membership.html (limited to 'v1.98/admin_api/room_membership.html') diff --git a/v1.98/admin_api/room_membership.html b/v1.98/admin_api/room_membership.html new file mode 100644 index 0000000000..1db4204bba --- /dev/null +++ b/v1.98/admin_api/room_membership.html @@ -0,0 +1,215 @@ + + + + + + Manipulate Room Membership - Synapse + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + +
+
+ +
+ +
+ +

Edit Room Membership API

+

This API allows an administrator to join an user account with a given user_id +to a room with a given room_id_or_alias. You can only modify the membership of +local users. The server administrator must be in the room and have permission to +invite users.

+

To use it, you will need to authenticate by providing an access_token +for a server admin: see Admin API.

+

Parameters

+

The following parameters are available:

+
    +
  • user_id - Fully qualified user: for example, @user:server.com.
  • +
  • room_id_or_alias - The room identifier or alias to join: for example, +!636q39766251:server.com.
  • +
+

Usage

+
POST /_synapse/admin/v1/join/<room_id_or_alias>
+
+{
+  "user_id": "@user:server.com"
+}
+
+

Response:

+
{
+  "room_id": "!636q39766251:server.com"
+}
+
+ +
+ + +
+
+ + + +
+ + + + + + + + + + + + + \ No newline at end of file -- cgit 1.4.1