mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-26 04:54:10 +01:00
cite error schema
This commit is contained in:
parent
29b6ce30de
commit
f721128371
|
|
@ -74,14 +74,20 @@ paths:
|
||||||
400:
|
400:
|
||||||
description: |-
|
description: |-
|
||||||
The request body is not a JSON object.
|
The request body is not a JSON object.
|
||||||
|
schema:
|
||||||
|
$ref: "../client-server/definitions/errors/error.yaml"
|
||||||
403:
|
403:
|
||||||
description: |-
|
description: |-
|
||||||
The access token provided is not authorized to modify this user's account
|
The access token provided is not authorized to modify this user's account
|
||||||
data.
|
data.
|
||||||
|
schema:
|
||||||
|
$ref: "../client-server/definitions/errors/error.yaml"
|
||||||
405:
|
405:
|
||||||
description: |-
|
description: |-
|
||||||
This `type` of account data is controlled by the server; it cannot be
|
This `type` of account data is controlled by the server; it cannot be
|
||||||
modified by clients.
|
modified by clients.
|
||||||
|
schema:
|
||||||
|
$ref: "../client-server/definitions/errors/error.yaml"
|
||||||
tags:
|
tags:
|
||||||
- User data
|
- User data
|
||||||
get:
|
get:
|
||||||
|
|
@ -121,9 +127,13 @@ paths:
|
||||||
description: |-
|
description: |-
|
||||||
The access token provided is not authorized to retrieve this user's account
|
The access token provided is not authorized to retrieve this user's account
|
||||||
data.
|
data.
|
||||||
|
schema:
|
||||||
|
$ref: "../client-server/definitions/errors/error.yaml"
|
||||||
404:
|
404:
|
||||||
description: |-
|
description: |-
|
||||||
No account data has been provided for this user with the given `type`.
|
No account data has been provided for this user with the given `type`.
|
||||||
|
schema:
|
||||||
|
$ref: "../client-server/definitions/errors/error.yaml"
|
||||||
tags:
|
tags:
|
||||||
- User data
|
- User data
|
||||||
"/user/{userId}/rooms/{roomId}/account_data/{type}":
|
"/user/{userId}/rooms/{roomId}/account_data/{type}":
|
||||||
|
|
@ -180,14 +190,20 @@ paths:
|
||||||
400:
|
400:
|
||||||
description: |-
|
description: |-
|
||||||
The request body is not a JSON object.
|
The request body is not a JSON object.
|
||||||
|
schema:
|
||||||
|
$ref: "../client-server/definitions/errors/error.yaml"
|
||||||
403:
|
403:
|
||||||
description: |-
|
description: |-
|
||||||
The access token provided is not authorized to modify this user's account
|
The access token provided is not authorized to modify this user's account
|
||||||
data.
|
data.
|
||||||
|
schema:
|
||||||
|
$ref: "../client-server/definitions/errors/error.yaml"
|
||||||
405:
|
405:
|
||||||
description: |-
|
description: |-
|
||||||
This `type` of account data is controlled by the server; it cannot be
|
This `type` of account data is controlled by the server; it cannot be
|
||||||
modified by clients.
|
modified by clients.
|
||||||
|
schema:
|
||||||
|
$ref: "../client-server/definitions/errors/error.yaml"
|
||||||
tags:
|
tags:
|
||||||
- User data
|
- User data
|
||||||
get:
|
get:
|
||||||
|
|
@ -234,9 +250,13 @@ paths:
|
||||||
description: |-
|
description: |-
|
||||||
The access token provided is not authorized to retrieve this user's account
|
The access token provided is not authorized to retrieve this user's account
|
||||||
data.
|
data.
|
||||||
|
schema:
|
||||||
|
$ref: "../client-server/definitions/errors/error.yaml"
|
||||||
404:
|
404:
|
||||||
description: |-
|
description: |-
|
||||||
No account data has been provided for this user and this room with the
|
No account data has been provided for this user and this room with the
|
||||||
given `type`.
|
given `type`.
|
||||||
|
schema:
|
||||||
|
$ref: "../client-server/definitions/errors/error.yaml"
|
||||||
tags:
|
tags:
|
||||||
- User data
|
- User data
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue