Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit262500c

Browse files
committed
Merge pull requestgithub#617 from github/fix-ent-user-admin-path
The endpoint is `users` (plural) not `user`
2 parents90a4bd7 +f8d6912 commit262500c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎content/v3/users/administration.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ http(s)://<em>hostname</em>/api/v3
1717

1818
##Promote an ordinary user to a site administrator
1919

20-
PUT /user/:username/site_admin
20+
PUT /users/:username/site_admin
2121

2222
<%= fetch_content(:put_content_length) %>
2323

@@ -27,7 +27,7 @@ http(s)://<em>hostname</em>/api/v3
2727

2828
##Demote a site administrator to an ordinary user
2929

30-
DELETE /user/:username/site_admin
30+
DELETE /users/:username/site_admin
3131

3232
You can demote any user account except your own.
3333

@@ -37,7 +37,7 @@ You can demote any user account except your own.
3737

3838
##Suspend a user
3939

40-
PUT /user/:username/suspended
40+
PUT /users/:username/suspended
4141

4242
You can suspend any user account except your own.
4343

@@ -49,7 +49,7 @@ You can suspend any user account except your own.
4949

5050
##Unsuspend a user
5151

52-
DELETE /user/:username/suspended
52+
DELETE /users/:username/suspended
5353

5454
###Response
5555

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp