mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-28 14:04:10 +01:00
Define a 400 response from {PUT,GET,DELETE} /directory/rooms/{roomAlias}
This commit is contained in:
parent
11cef5417a
commit
9dfcf9fc4b
|
|
@ -61,6 +61,15 @@ paths:
|
||||||
application/json: {}
|
application/json: {}
|
||||||
schema:
|
schema:
|
||||||
type: object
|
type: object
|
||||||
|
400:
|
||||||
|
description: The given `roomAlias` is not a valid room alias.
|
||||||
|
examples:
|
||||||
|
application/json: {
|
||||||
|
"errcode": "M_INVALID_PARAM",
|
||||||
|
"error": "Room alias invalid"
|
||||||
|
}
|
||||||
|
schema:
|
||||||
|
"$ref": "definitions/errors/error.yaml"
|
||||||
409:
|
409:
|
||||||
description: A room alias with that name already exists.
|
description: A room alias with that name already exists.
|
||||||
examples:
|
examples:
|
||||||
|
|
@ -113,6 +122,15 @@ paths:
|
||||||
"another.com"
|
"another.com"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
400:
|
||||||
|
description: The given `roomAlias` is not a valid room alias.
|
||||||
|
examples:
|
||||||
|
application/json: {
|
||||||
|
"errcode": "M_INVALID_PARAM",
|
||||||
|
"error": "Room alias invalid"
|
||||||
|
}
|
||||||
|
schema:
|
||||||
|
"$ref": "definitions/errors/error.yaml"
|
||||||
404:
|
404:
|
||||||
description: There is no mapped room ID for this room alias.
|
description: There is no mapped room ID for this room alias.
|
||||||
examples:
|
examples:
|
||||||
|
|
@ -220,6 +238,15 @@ paths:
|
||||||
items:
|
items:
|
||||||
type: string
|
type: string
|
||||||
required: ['aliases']
|
required: ['aliases']
|
||||||
|
400:
|
||||||
|
description: The given `roomAlias` is not a valid room alias.
|
||||||
|
examples:
|
||||||
|
application/json: {
|
||||||
|
"errcode": "M_INVALID_PARAM",
|
||||||
|
"error": "Room alias invalid"
|
||||||
|
}
|
||||||
|
schema:
|
||||||
|
"$ref": "definitions/errors/error.yaml"
|
||||||
403:
|
403:
|
||||||
description: The user is not permitted to retrieve the list of local aliases for the room.
|
description: The user is not permitted to retrieve the list of local aliases for the room.
|
||||||
examples:
|
examples:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue