summary refs log tree commit diff
path: root/docs/admin_api
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2021-04-21 15:34:28 +0100
committerAndrew Morgan <andrew@amorgan.xyz>2021-04-21 15:34:28 +0100
commit82b462401ff7f167bee098da9b9fa31cb4a50a69 (patch)
treeca288434a142ca90add2078d13a72a9157d7f192 /docs/admin_api
parentMerge commit '28877fade' into anoa/dinsic_release_1_31_0 (diff)
parentRefactor the CAS handler in prep for using the abstracted SSO code. (#8958) (diff)
downloadsynapse-82b462401ff7f167bee098da9b9fa31cb4a50a69.tar.xz
Merge commit '4218473f9' into anoa/dinsic_release_1_31_0
Diffstat (limited to 'docs/admin_api')
-rw-r--r--docs/admin_api/rooms.md20
1 files changed, 19 insertions, 1 deletions
diff --git a/docs/admin_api/rooms.md b/docs/admin_api/rooms.md

index d7b1740fe3..9e560003a9 100644 --- a/docs/admin_api/rooms.md +++ b/docs/admin_api/rooms.md
@@ -8,6 +8,7 @@ * [Parameters](#parameters-1) * [Response](#response) * [Undoing room shutdowns](#undoing-room-shutdowns) +- [Make Room Admin API](#make-room-admin-api) # List Room API @@ -467,6 +468,7 @@ The following fields are returned in the JSON response body: the old room to the new. * `new_room_id` - A string representing the room ID of the new room. + ## Undoing room shutdowns *Note*: This guide may be outdated by the time you read it. By nature of room shutdowns being performed at the database level, @@ -492,4 +494,20 @@ You will have to manually handle, if you so choose, the following: * Aliases that would have been redirected to the Content Violation room. * Users that would have been booted from the room (and will have been force-joined to the Content Violation room). -* Removal of the Content Violation room if desired. \ No newline at end of file +* Removal of the Content Violation room if desired. + + +# Make Room Admin API + +Grants another user the highest power available to a local user who is in the room. +If the user is not in the room, and it is not publicly joinable, then invite the user. + +By default the server admin (the caller) is granted power, but another user can +optionally be specified, e.g.: + +``` + POST /_synapse/admin/v1/rooms/<room_id_or_alias>/make_room_admin + { + "user_id": "@foo:example.com" + } +```