You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 1, 2017. It is now read-only.
The latest release for GitHub Enterprise is <%= config[:versions][0] %>. The GitHub APIs available to this release are located at <https://developer.github.com/enterprise/<%= config[:versions][0] %>/>.
41
41
42
-
Documentation for the API that's bundled withyour GitHub Enterprise appliance is available forpast releases:
42
+
Documentation for the API that's bundled withthe GitHub Enterprise appliance is available forthe following releases:
43
43
44
44
<% config[:versions][1..-1].each do |version| %>
45
45
*[API documentation for <%= version %>](https://developer.github.com/enterprise/<%= version %>/)
Copy file name to clipboardExpand all lines: content/v3/oauth_authorizations.md
+10-1Lines changed: 10 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,7 @@ Make sure you understand how to [work with two-factor authentication](/v3/auth/#
28
28
<li><a href="#update-an-existing-authorization">Update an existing authorization</a></li>
29
29
</ul>
30
30
31
+
{% if page.version == 'dotcom' or page.version > 2.2 %}
31
32
<p>
32
33
To reduce the impact of removing the <code>token</code> value,
33
34
the OAuth Authorizations API now includes a new request attribute
@@ -36,7 +37,15 @@ Make sure you understand how to [work with two-factor authentication](/v3/auth/#
36
37
<code>fingerprint</code>), and
37
38
<a href="#get-or-create-an-authorization-for-a-specific-app-and-fingerprint">one new endpoint</a>.
38
39
</p>
39
-
40
+
{% else %}
41
+
<p>
42
+
To reduce the impact of removing the <code>token</code> value,
43
+
the OAuth Authorizations API now includes a new request attribute
44
+
(<code>fingerprint</code>) and three new response attributes
45
+
(<code>token_last_eight</code>, <code>hashed_token</code>, and
46
+
<code>fingerprint</code>).
47
+
</p>
48
+
{% endif %}
40
49
<p>
41
50
This functionality became the default for all requests on April 20, 2015. Please see <a href="/changes/2015-04-20-authorizations-api-response-changes-are-now-in-effect/">the blog post</a> for full details.
Copy file name to clipboardExpand all lines: content/v3/orgs/hooks.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,17 +7,21 @@ title: Organization Webhooks
7
7
{:toc}
8
8
9
9
{% if page.version != 'dotcom' and page.version <= 2.2 %}
10
+
10
11
{{#tip}}
12
+
11
13
The Organization Webhooks API is currently available for developers to preview.
12
14
During the preview period, the API may change without advance notice.
13
-
Please see the[blog post](/enterprise/{{ page.version }}/changes/2014-12-03-preview-the-new-organization-webhooks-api/) for full details.
15
+
Please see the[blog post](/changes/2014-12-03-preview-the-new-organization-webhooks-api/) for full details.
14
16
15
-
To access the API during the preview period, you must provide a custom[media type](/enterprise/2.2/v3/media) in the`Accept` header:
17
+
To access the API during the preview period, you must provide a custom[media type](/enterprise/{{ page.version }}/v3/media) in the`Accept` header:
16
18
17
19
```
18
20
application/vnd.github.sersi-preview+json
19
21
```
22
+
20
23
{{/tip}}
24
+
21
25
{% endif %}
22
26
23
27
Organization webhooks allow you to receive HTTP`POST` payloads whenever certain events happen within the organization. Subscribing to these events makes it possible to build integrations that react to actions on GitHub.com. For more information on actions you can subscribe to, check out our[Events documentation][webhook-events].
Copy file name to clipboardExpand all lines: content/v3/versions.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -143,7 +143,7 @@ The recommendations below will help you prepare your application for the next ma
143
143
144
144
1. Team attribute: permission
145
145
146
-
Recommendation: This attribute no longer dictates the permission a team has on its repositories; it only dictates the default permission that the[Add team repository](/v3/orgs/teams/#add-team-repository) API will use for requests where no`permission` attribute is specified. To change the permission level for every repository on a team, use the[List team repositories](/v3/orgs/teams/#list-team-repos) API to list all of the team's repositories, and then use the[Add team repository](/v3/orgs/teams/#add-team-repository) with a`permission` attribute to update each repository's permission separately.
146
+
Recommendation: This attribute no longer dictates the permission a team has on its repositories; it only dictates the default permission that the[Add team repository](/v3/orgs/teams/#add-team-repository) API will use for requests where no`permission` attribute is specified. To change the permission level for every repository on a team, use the[List team repositories](/v3/orgs/teams/#list-team-repos) API to list all of the team's repositories, and then use the[Addor updateteam repository](/v3/orgs/teams/#add-or-update-team-repository) with a`permission` attribute to update each repository's permission separately.