@ -31,7 +31,8 @@ paths:
post:
post:
summary : Start the requesting user participating in a particular room.
summary : Start the requesting user participating in a particular room.
description : |-
description : |-
*Note that this API requires a room ID, not alias.* ``/join/{roomIdOrAlias}`` *exists if you have a room alias.*
*Note that this API requires a room ID, not alias.*
``/join/{roomIdOrAlias}`` *exists if you have a room alias.*
This API starts a user participating in a particular room, if that user
This API starts a user participating in a particular room, if that user
is allowed to participate in that room. After this call, the client is
is allowed to participate in that room. After this call, the client is
@ -40,10 +41,6 @@ paths:
After a user has joined a room, the room will appear as an entry in the
After a user has joined a room, the room will appear as an entry in the
response of the |/initialSync|_ and |/sync|_ APIs.
response of the |/initialSync|_ and |/sync|_ APIs.
If a ``third_party_signed`` was supplied, the homeserver must verify
that it matches a pending ``m.room.third_party_invite`` event in the
room, and perform key validity checking if required by the event.
operationId : joinRoomById
operationId : joinRoomById
security:
security:
- accessToken : [ ]
- accessToken : [ ]
@ -56,11 +53,17 @@ paths:
x-example : "!d41d8cd:matrix.org"
x-example : "!d41d8cd:matrix.org"
- in : body
- in : body
name : third_party_signed
name : third_party_signed
required : true
schema:
schema:
type : object
type : object
properties:
properties:
third_party_signed:
third_party_signed:
$ref : "definitions/third_party_signed.yaml"
allOf:
- $ref : "definitions/third_party_signed.yaml"
description : |-
If supplied, the homeserver must verify that it matches a pending
``m.room.third_party_invite`` event in the room, and perform
key validity checking if required by the event.
responses:
responses:
200 :
200 :
description : |-
description : |-
@ -79,7 +82,8 @@ paths:
required : [ "room_id" ]
required : [ "room_id" ]
403 :
403 :
description : |-
description : |-
You do not have permission to join the room. A meaningful ``errcode`` and description error text will be returned. Example reasons for rejection are:
You do not have permission to join the room. A meaningful ``errcode``
and description error text will be returned. Example reasons for rejection are:
- The room is invite-only and the user was not invited.
- The room is invite-only and the user was not invited.
- The user has been banned from the room.
- The user has been banned from the room.
@ -107,10 +111,6 @@ paths:
After a user has joined a room, the room will appear as an entry in the
After a user has joined a room, the room will appear as an entry in the
response of the |/initialSync|_ and |/sync|_ APIs.
response of the |/initialSync|_ and |/sync|_ APIs.
If a ``third_party_signed`` was supplied, the homeserver must verify
that it matches a pending ``m.room.third_party_invite`` event in the
room, and perform key validity checking if required by the event.
operationId : joinRoom
operationId : joinRoom
security:
security:
- accessToken : [ ]
- accessToken : [ ]
@ -132,11 +132,17 @@ paths:
x-example : [ "matrix.org" , "elsewhere.ca" ]
x-example : [ "matrix.org" , "elsewhere.ca" ]
- in : body
- in : body
name : third_party_signed
name : third_party_signed
required : true
schema:
schema:
type : object
type : object
properties:
properties:
third_party_signed:
third_party_signed:
$ref : "definitions/third_party_signed.yaml"
allOf:
- $ref : "definitions/third_party_signed.yaml"
description : |-
If a ``third_party_signed`` was supplied, the homeserver must verify
that it matches a pending ``m.room.third_party_invite`` event in the
room, and perform key validity checking if required by the event.
responses:
responses:
200 :
200 :
description : |-
description : |-
@ -155,7 +161,8 @@ paths:
required : [ "room_id" ]
required : [ "room_id" ]
403 :
403 :
description : |-
description : |-
You do not have permission to join the room. A meaningful ``errcode`` and description error text will be returned. Example reasons for rejection are:
You do not have permission to join the room. A meaningful ``errcode``
and description error text will be returned. Example reasons for rejection are:
- The room is invite-only and the user was not invited.
- The room is invite-only and the user was not invited.
- The user has been banned from the room.
- The user has been banned from the room.