|
|
@ -49,6 +49,15 @@ paths:
|
|
|
|
description: The user ID the join event will be for.
|
|
|
|
description: The user ID the join event will be for.
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
x-example: "@someone:example.org"
|
|
|
|
x-example: "@someone:example.org"
|
|
|
|
|
|
|
|
- in: query
|
|
|
|
|
|
|
|
type: array
|
|
|
|
|
|
|
|
items:
|
|
|
|
|
|
|
|
type: string
|
|
|
|
|
|
|
|
name: ver
|
|
|
|
|
|
|
|
description: |-
|
|
|
|
|
|
|
|
The room versions the sending server has support for. Defaults
|
|
|
|
|
|
|
|
to ``[1]``.
|
|
|
|
|
|
|
|
x-example: ["1", "2"]
|
|
|
|
responses:
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
200:
|
|
|
|
description: |-
|
|
|
|
description: |-
|
|
|
@ -142,6 +151,30 @@ paths:
|
|
|
|
["$room_p0wer_l3vels_3vent:matrix.org", {"sha256": "abase64encodedsha256hashshouldbe43byteslong"}]
|
|
|
|
["$room_p0wer_l3vels_3vent:matrix.org", {"sha256": "abase64encodedsha256hashshouldbe43byteslong"}]
|
|
|
|
]
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
400:
|
|
|
|
|
|
|
|
description: |-
|
|
|
|
|
|
|
|
The request is invalid or the room the server is attempting
|
|
|
|
|
|
|
|
to join has a version that is not listed in the ``ver``
|
|
|
|
|
|
|
|
parameters.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The error should be passed through to clients so that they
|
|
|
|
|
|
|
|
may give better feedback to users.
|
|
|
|
|
|
|
|
schema:
|
|
|
|
|
|
|
|
allOf:
|
|
|
|
|
|
|
|
- $ref: "../client-server/definitions/errors/error.yaml"
|
|
|
|
|
|
|
|
- type: object
|
|
|
|
|
|
|
|
properties:
|
|
|
|
|
|
|
|
room_version:
|
|
|
|
|
|
|
|
type: string
|
|
|
|
|
|
|
|
description: |-
|
|
|
|
|
|
|
|
The version of the room. Required if the ``errcode``
|
|
|
|
|
|
|
|
is ``M_INCOMPATIBLE_ROOM_VERSION``.
|
|
|
|
|
|
|
|
examples:
|
|
|
|
|
|
|
|
application/json: {
|
|
|
|
|
|
|
|
"errcode": "M_INCOMPATIBLE_ROOM_VERSION",
|
|
|
|
|
|
|
|
"error": "Your homeserver does not support the features required to join this room",
|
|
|
|
|
|
|
|
"room_version": "3"
|
|
|
|
|
|
|
|
}
|
|
|
|
"/send_join/{roomId}/{eventId}":
|
|
|
|
"/send_join/{roomId}/{eventId}":
|
|
|
|
put:
|
|
|
|
put:
|
|
|
|
summary: Submit a signed join event to a resident server
|
|
|
|
summary: Submit a signed join event to a resident server
|
|
|
|