Strips all non-integrity-critical information out of an event.
Strips all information out of an event which isn't critical to the integrity of the server-side representation of the room.
This cannot be undone.
Any user with a power level greater than or equal to the m.room.redaction event power level may send redactions for their own events in the room. If the user's power level is also greater than or equal to the redact power level of the room, the user may redact events sent by other users.
Server administrators may redact events sent by users on their server.
Request
- Base URLhttps://matrix.org
- Auth
- API key in query parameter access_token
- or HTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The room from which to redact the event.
The ID of the event to redact.
The transaction ID for this event. Clients should generate a unique ID; it will be used by the server to ensure idempotency of requests.
Request body
Example request
{
"reason": "Indecent material"
}Response
An ID for the redaction event.
Changes
No recorded changes to this operation across all 1 revision of this API.