mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-27 21:44:10 +01:00
Add MSC2249 support
This commit is contained in:
parent
dc5d95c242
commit
d134ec5e2a
|
|
@ -29,11 +29,14 @@ securityDefinitions:
|
||||||
paths:
|
paths:
|
||||||
"/rooms/{roomId}/report/{eventId}":
|
"/rooms/{roomId}/report/{eventId}":
|
||||||
post:
|
post:
|
||||||
summary: Reports an event as inappropriate.
|
summary: Reports an event as inappropriate. You must have permission to
|
||||||
|
retrieve this event e.g. by being a member in the room for this event.
|
||||||
description: |-
|
description: |-
|
||||||
Reports an event as inappropriate to the server, which may then notify
|
Reports an event as inappropriate to the server, which may then notify
|
||||||
the appropriate people.
|
the appropriate people.
|
||||||
operationId: reportContent
|
operationId: reportContent
|
||||||
|
tags:
|
||||||
|
- Reporting content
|
||||||
parameters:
|
parameters:
|
||||||
- in: path
|
- in: path
|
||||||
type: string
|
type: string
|
||||||
|
|
@ -74,5 +77,13 @@ paths:
|
||||||
type: object
|
type: object
|
||||||
examples:
|
examples:
|
||||||
application/json: {}
|
application/json: {}
|
||||||
tags:
|
404:
|
||||||
- Reporting content
|
description: |-
|
||||||
|
The event was not found or you do not have permission to read this event.
|
||||||
|
examples:
|
||||||
|
application/json: {
|
||||||
|
"errcode": "M_NOT_FOUND",
|
||||||
|
"error": "The event was not found or you do not have permission to read this event."
|
||||||
|
}
|
||||||
|
schema:
|
||||||
|
$ref: "../client-server/definitions/errors/error.yaml"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue