Users
Adds or removes moderator/admin powers.
Adds or removes moderator or admin permissions to a user for specific rooms, or globally on the server.
The invoking user must have admin permissions in all of the rooms specified when adding room mods/admins, and must have global admin permissions when adding a global moderator or admin.
Note that the given session ID does not have to exist: it is possible to grant moderator permissions preemptively for a session ID that has never visited the server or room(s).
post/user/{sessionId}/moderator
Path parameters
sessionIdstring required
The Session ID is the fixed byte 05 followed by the 32-byte X25519 pubkey used to sign and encrypt messages.
Session ID of a user.
Request body
Example request
{
"rooms": [
"session-general"
]
}Response
Permission update applied successfully.