curl -sS -X PUT 'https://matrix.example.com/_synapse/admin/v1/suspend/@alice:example.com' -H "Authorization: Bearer $ACCESS_TOKEN" -d '{"suspend":true}'

Category: Matrix & Synapse

curl -sS -X PUT 'https://matrix.example.com/_synapse/admin/v1/suspend/@alice:example.com' -H "Authorization: Bearer $ACCESS_TOKEN" -d '{"suspend":true}'

Suspend a user's ability to send messages

A suspended account cannot send messages, invite or kick, change profile data, or redact other people's events, but keeps their login and history. Much lighter than deactivation: reverse it anytime with {"suspend":false} on the same endpoint. Good middle ground for problem accounts that you are not ready to delete.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.