Skip to content

Commit

Permalink
Add the codes to the right endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
dbkr committed Sep 30, 2024
1 parent 78e5d4d commit 0c3245a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
15 changes: 9 additions & 6 deletions data/api/client-server/administrative_contact.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -488,9 +488,11 @@ paths:
"400":
description: |-
The third-party identifier is already in use on the homeserver, or
the request was invalid. The error code `M_SERVER_NOT_TRUSTED`
can be returned if the server does not trust/support the identity server
provided in the request.
the request was invalid. Error codes that can be returned are:
* `M_SERVER_NOT_TRUSTED`: The server does not trust/support the identity server
provided in the request.
* `M_THREEPID_MEDIUM_NOT_SUPPORTED`: The homeserver does not support adding email addresses.
* `M_INVALID_PARAM`: The email address given was not valid.
content:
application/json:
schema:
Expand Down Expand Up @@ -547,9 +549,10 @@ paths:
"400":
description: |-
The third-party identifier is already in use on the homeserver, or
the request was invalid. The error code `M_SERVER_NOT_TRUSTED`
can be returned if the server does not trust/support the identity server
provided in the request.
the request was invalid. Error codes that can be returned are:
* `M_SERVER_NOT_TRUSTED`: The server does not trust/support the identity server
* `M_THREEPID_MEDIUM_NOT_SUPPORTED`: The homeserver does not support adding phone numbers.
* `M_INVALID_PARAM`: The phone number given was not valid.
content:
application/json:
schema:
Expand Down
8 changes: 0 additions & 8 deletions data/api/client-server/registration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -284,10 +284,6 @@ paths:
has an account on the homeserver in question.
* `M_SERVER_NOT_TRUSTED` : The `id_server` parameter refers to an identity server
that is not trusted by this homeserver.
* `M_THREEPID_MEDIUM_NOT_SUPPORTED`
The homeserver does not support adding email addresses.
* `M_INVALID_PARAM`
The email address given was not valid.
content:
application/json:
schema:
Expand Down Expand Up @@ -349,10 +345,6 @@ paths:
has an account on the homeserver in question.
* `M_SERVER_NOT_TRUSTED` : The `id_server` parameter refers to an identity server
that is not trusted by this homeserver.
* `M_THREEPID_MEDIUM_NOT_SUPPORTED`
The homeserver does not support adding phone numbers.
* `M_INVALID_PARAM`
The phone number given was not valid.
content:
application/json:
schema:
Expand Down

0 comments on commit 0c3245a

Please sign in to comment.