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
This repository was archived by the owner on Nov 1, 2017. It is now read-only.

Commit7bb3511

Browse files
author
Chris Frederick
committed
Merge pull request#247 from github/move-suspend-user-api
Move the user administration API
2 parents9a03d72 +efcc03b commit7bb3511

File tree

6 files changed

+50
-48
lines changed

6 files changed

+50
-48
lines changed

‎content/v3/enterprise/admin_stats.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: Admin Stats | GitHub API
77
* TOC
88
{:toc}
99

10-
The Admin Stats API provides a variety of metrics about your installation.*It is only available to siteadmins.* Normal users will receive a`404` response if they try to access it.
10+
The Admin Stats API provides a variety of metrics about your installation.*It is only available to[authenticated](/v3/#authentication)siteadministrators.* Normal users will receive a`404` response if they try to access it.
1111

1212
##Get statistics
1313

‎content/v3/enterprise/license.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: License | GitHub API
77
* TOC
88
{:toc}
99

10-
The License API provides information on your Enterprise license.*It is only available to siteadmins.* Normal users will receive a`404` response if they try to access it.
10+
The License API provides information on your Enterprise license.*It is only available to[authenticated](/v3/#authentication)siteadministrators.* Normal users will receive a`404` response if they try to access it.
1111

1212
##Get license information
1313

‎content/v3/enterprise/search_indexing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: Search Indexing | GitHub API
77
* TOC
88
{:toc}
99

10-
The Search Indexing API allows you to queue up a variety of search indexing tasks.*It is only available to siteadmins.* Normal users will receive a`404` response if they try to access it.
10+
The Search Indexing API allows you to queue up a variety of search indexing tasks.*It is only available to[authenticated](/v3/#authentication)siteadministrators.* Normal users will receive a`404` response if they try to access it.
1111

1212
##Queue an indexing job
1313

‎content/v3/enterprise/user_administration.md

Lines changed: 0 additions & 44 deletions
This file was deleted.

‎content/v3/users/administration.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
title:User Administration | GitHub API
3+
---
4+
5+
#Administration (Enterprise)
6+
7+
* TOC
8+
{:toc}
9+
10+
The User Administration API allows you to promote, demote, suspend, and unsuspend users on a GitHub Enterprise appliance.*It is only available to[authenticated](/v3/#authentication) site administrators.* Normal users will receive a`403` response if they try to access it.
11+
12+
##Promote an ordinary user to a site administrator
13+
14+
PUT /user/:username/site_admin
15+
16+
###Response
17+
18+
<%= headers 204 %>
19+
20+
##Demote a site administrator to an ordinary user
21+
22+
DELETE /user/:username/site_admin
23+
24+
You can demote any user account except your own.
25+
26+
###Response
27+
28+
<%= headers 204 %>
29+
30+
##Suspend a user
31+
32+
PUT /user/:username/suspended
33+
34+
You can suspend any user account except your own.
35+
36+
###Response
37+
38+
<%= headers 204 %>
39+
40+
##Unsuspend a user
41+
42+
DELETE /user/:username/suspended
43+
44+
###Response
45+
46+
<%= headers 204 %>

‎layouts/sidebar.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ <h3><a href="#" class="js-expand-btn collapsed arrow-btn" data-proofer-ignore></
107107
<li><ahref="/v3/users/emails/">Emails</a></li>
108108
<li><ahref="/v3/users/followers/">Followers</a></li>
109109
<li><ahref="/v3/users/keys/">Public Keys</a></li>
110+
<li><ahref="/v3/users/administration/">Administration (Enterprise)</a></li>
110111
</ul>
111112
</li>
112113
<liclass="js-topic">
@@ -116,7 +117,6 @@ <h3><a href="#" class="js-expand-btn collapsed arrow-btn" data-proofer-ignore></
116117
<li><ahref="/v3/enterprise/license/">License</a></li>
117118
<li><ahref="/v3/enterprise/search_indexing/">Search Indexing</a></li>
118119
<li><ahref="/v3/enterprise/management_console/">Management Console</a></li>
119-
<li><ahref="/v3/enterprise/user_administration/">User Administration</a></li>
120120
</ul>
121121
</li>
122122
</ul>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp