Applies permissions or restrictions to a user.
Applies or removes a user's permissions to one or more rooms.
The request specifies grants (true) or revocations (false) of permissions to apply. Granting or revoking a permission adds a specific override for the given user that overrides the default room permissions.
You can explicitly clear one or more permission setting by specifying a timeout of -1 (in this case the actual true/false value of the permissions are ignored).
Note that the given session ID does not have to exist: it is possible to grant permissions preemptively for a session ID that has never visited the server or room(s).
Path parameters
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"
],
"timeout": 86400,
"write": true,
"upload": true
}Response
Permission update applied successfully.