curl -sS 'https://matrix.example.com/_synapse/admin/v1/rooms/!abc123:example.com/block' -H "Authorization: Bearer $ACCESS_TOKEN"

Category: Matrix & Synapse

curl -sS 'https://matrix.example.com/_synapse/admin/v1/rooms/!abc123:example.com/block' -H "Authorization: Bearer $ACCESS_TOKEN"

Check whether a room is blocked

Returns {"block":true} plus the user ID that blocked it, or {"block":false} when the room is not blocked. Read this before attempting to delete a room, since blocked rooms behave differently. Pair with the PUT variant to change the block state.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.