Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit b09d90c

Browse files
authored
Fix typos in the username_available admin API documentation. (#11286)
1 parent f1d5c2f commit b09d90c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog.d/11286.doc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix typo in the word `available` and fix HTTP method (should be `GET`) for the `username_available` admin API. Contributed by Stanislav Motylkov.

docs/admin_api/user_admin_api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ This endpoint will work even if registration is disabled on the server, unlike
11071107
The API is:
11081108

11091109
```
1110-
POST /_synapse/admin/v1/username_availabile?username=$localpart
1110+
GET /_synapse/admin/v1/username_available?username=$localpart
11111111
```
11121112

11131113
The request and response format is the same as the [/_matrix/client/r0/register/available](https://matrix.org/docs/spec/client_server/r0.6.0#get-matrix-client-r0-register-available) API.

0 commit comments

Comments
 (0)