|
|
@ -41,7 +41,7 @@ paths:
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
x-example: "#monkeys:matrix.org"
|
|
|
|
x-example: "#monkeys:matrix.org"
|
|
|
|
- in: body
|
|
|
|
- in: body
|
|
|
|
name: roomInfo
|
|
|
|
name: body
|
|
|
|
description: Information about this room alias.
|
|
|
|
description: Information about this room alias.
|
|
|
|
required: true
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
schema:
|
|
|
@ -50,24 +50,24 @@ paths:
|
|
|
|
room_id:
|
|
|
|
room_id:
|
|
|
|
type: string
|
|
|
|
type: string
|
|
|
|
description: The room ID to set.
|
|
|
|
description: The room ID to set.
|
|
|
|
|
|
|
|
required: ['room_id']
|
|
|
|
example: {
|
|
|
|
example: {
|
|
|
|
"room_id": "!abnjk1jdasj98:capuchins.com"
|
|
|
|
"room_id": "!abnjk1jdasj98:capuchins.com"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
responses:
|
|
|
|
responses:
|
|
|
|
200:
|
|
|
|
200:
|
|
|
|
description: The mapping was created.
|
|
|
|
description: The mapping was created.
|
|
|
|
examples:
|
|
|
|
examples:
|
|
|
|
application/json: {
|
|
|
|
application/json: {}
|
|
|
|
}
|
|
|
|
|
|
|
|
schema:
|
|
|
|
schema:
|
|
|
|
type: object
|
|
|
|
type: object
|
|
|
|
409:
|
|
|
|
409:
|
|
|
|
description: A room alias with that name already exists.
|
|
|
|
description: A room alias with that name already exists.
|
|
|
|
examples:
|
|
|
|
examples:
|
|
|
|
application/json: {
|
|
|
|
application/json: {
|
|
|
|
"errcode": "M_UNKNOWN",
|
|
|
|
"errcode": "M_UNKNOWN",
|
|
|
|
"error": "Room alias #monkeys:matrix.org already exists."
|
|
|
|
"error": "Room alias #monkeys:matrix.org already exists."
|
|
|
|
}
|
|
|
|
}
|
|
|
|
schema:
|
|
|
|
schema:
|
|
|
|
"$ref": "definitions/errors/error.yaml"
|
|
|
|
"$ref": "definitions/errors/error.yaml"
|
|
|
|
tags:
|
|
|
|
tags:
|
|
|
|