mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-04-29 05:44:10 +02:00
Fix the POST example for the v2 filter API
This commit is contained in:
parent
69298b9612
commit
a31a446661
|
|
@ -43,38 +43,36 @@ paths:
|
||||||
type: object
|
type: object
|
||||||
allOf:
|
allOf:
|
||||||
- $ref: "definitions/sync_filter.json"
|
- $ref: "definitions/sync_filter.json"
|
||||||
example:
|
example: |-
|
||||||
type: object
|
{
|
||||||
example: |-
|
"room": {
|
||||||
{
|
"state": {
|
||||||
"room": {
|
"types": ["m.room.*"],
|
||||||
"state": {
|
"not_rooms": ["!726s6s6q:example.com"]
|
||||||
"types": ["m.room.*"],
|
|
||||||
"not_rooms": ["!726s6s6q:example.com"],
|
|
||||||
},
|
|
||||||
"events": {
|
|
||||||
"types": ["m.room.message"],
|
|
||||||
"not_rooms": ["!726s6s6q:example.com"],
|
|
||||||
"not_senders": ["@spam:example.com"]
|
|
||||||
},
|
|
||||||
"emphemeral": {
|
|
||||||
"types": ["m.receipt", "m.typing"],
|
|
||||||
"not_rooms": ["!726s6s6q:example.com"],
|
|
||||||
"not_senders": ["@spam:example.com"]
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"public_user_data": {
|
"events": {
|
||||||
"types": ["m.presence"]
|
"types": ["m.room.message"],
|
||||||
|
"not_rooms": ["!726s6s6q:example.com"],
|
||||||
|
"not_senders": ["@spam:example.com"]
|
||||||
},
|
},
|
||||||
"private_user_data": {
|
"emphemeral": {
|
||||||
"types": []
|
"types": ["m.receipt", "m.typing"],
|
||||||
},
|
"not_rooms": ["!726s6s6q:example.com"],
|
||||||
"server_data": {
|
"not_senders": ["@spam:example.com"]
|
||||||
"types": []
|
}
|
||||||
},
|
},
|
||||||
"event_format": "client",
|
"public_user_data": {
|
||||||
"event_fields": ["type", "content", "sender"]
|
"types": ["m.presence"]
|
||||||
}
|
},
|
||||||
|
"private_user_data": {
|
||||||
|
"types": []
|
||||||
|
},
|
||||||
|
"server_data": {
|
||||||
|
"types": []
|
||||||
|
},
|
||||||
|
"event_format": "client",
|
||||||
|
"event_fields": ["type", "content", "sender"]
|
||||||
|
}
|
||||||
responses:
|
responses:
|
||||||
200:
|
200:
|
||||||
description: The filter was created.
|
description: The filter was created.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue