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.
Copy file name to clipboardExpand all lines: content/v3/oauth_authorizations.md
+7-1Lines changed: 7 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,9 @@ Make sure you understand how to [work with two-factor authentication](/v3/auth/#
22
22
<li><a href="#list-your-authorizations">List your authorizations</a></li>
23
23
<li><a href="#get-a-single-authorization">Get a single authorization</a></li>
24
24
<li><a href="#get-or-create-an-authorization-for-a-specific-app">Get-or-create an authorization for a specific app</a> - <code>token</code> is still returned for "create" </li>
25
+
{% if page.version == 'dotcom' or page.version > 2.2 %}
25
26
<li><a href="#get-or-create-an-authorization-for-a-specific-app-and-fingerprint">Get-or-create an authorization for a specific app and fingerprint</a> - <code>token</code> is still returned for "create" </li>
27
+
{% endif %}
26
28
<li><a href="#update-an-existing-authorization">Update an existing authorization</a></li>
27
29
</ul>
28
30
@@ -107,7 +109,7 @@ Name | Type | Description
107
109
`scopes`|`array` | A list of scopes that this authorization is in.
108
110
`note`|`string` | A note to remind you what the OAuth token is for.
109
111
`note_url`|`string` | A URL to remind you what app the OAuth token is for.
110
-
`fingerprint`|`string` | A unique string to distinguish an authorization from others created for the same client and user. If provided, this API is functionally equivalent to[Get-or-create an authorization for a specific app and fingerprint](/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint).
112
+
{% if page.version == 'dotcom' or page.version > 2.2 %}`fingerprint`|`string` | A unique string to distinguish an authorization from others created for the same client and user. If provided, this API is functionally equivalent to[Get-or-create an authorization for a specific app and fingerprint](/v3/oauth_authorizations/#get-or-create-an-authorization-for-a-specific-app-and-fingerprint).{% endif %}
Copy file name to clipboardExpand all lines: content/v3/orgs/hooks.md
+14Lines changed: 14 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,20 @@ title: Organization Webhooks
6
6
7
7
{:toc}
8
8
9
+
{% if page.version != 'dotcom' and page.version <= 2.2 %}
10
+
{{#tip}}
11
+
The Organization Webhooks API is currently available for developers to preview.
12
+
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.
14
+
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:
16
+
17
+
```
18
+
application/vnd.github.sersi-preview+json
19
+
```
20
+
{{/tip}}
21
+
{% endif %}
22
+
9
23
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/users/emails.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,15 +22,15 @@ This endpoint is accessible with the user:email scope.
22
22
23
23
##Add email address(es)
24
24
25
-
{{#enterprise-only}}
25
+
{% if page.version != 'dotcom' && page.version >= 2.1 %}
26
26
27
27
{{#warning}}
28
28
29
29
If your GitHub Enterprise appliance has[LDAP Sync enabled](https://help.github.com/enterprise/2.1/admin/guides/user-management/using-ldap) and the option to synchronize emails enabled, this API is disabled and will return a`403` response. Users managed in LDAP won't be able to add an email address via the API with these options enabled.
30
30
31
31
{{/warning}}
32
32
33
-
{{/enterprise-only}}
33
+
{% endif %}
34
34
35
35
POST /user/emails
36
36
@@ -58,15 +58,15 @@ You can post a single email address or an array of addresses:
58
58
59
59
##Delete email address(es)
60
60
61
-
{{#enterprise-only}}
61
+
{% if page.version != 'dotcom' && page.version >= 2.1 %}
62
62
63
63
{{#warning}}
64
64
65
65
If your GitHub Enterprise appliance has[LDAP Sync enabled](https://help.github.com/enterprise/2.1/admin/guides/user-management/using-ldap) and the option to synchronize emails enabled, this API is disabled and will return a`403` response. Users managed in LDAP won't be able to remove an email address via the API with these options enabled.
Copy file name to clipboardExpand all lines: content/v3/users/keys.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,15 +49,15 @@ authenticated via Basic Auth or via OAuth with at least `read:public_key`
49
49
Creates a public key. Requires that you are authenticated via Basic Auth,
50
50
or OAuth with at least`write:public_key`[scope](/v3/oauth/#scopes).
51
51
52
-
{{#enterprise-only}}
52
+
{% if page.version != 'dotcom' && page.version >= 2.1 %}
53
53
54
54
{{#warning}}
55
55
56
56
If your GitHub Enterprise appliance has[LDAP Sync enabled](https://help.github.com/enterprise/2.1/admin/guides/user-management/using-ldap) and the option to synchronize SSH keys enabled, this API is disabled and will return a`403` response. Users managed in LDAP won't be able to add an SSH key address via the API with these options enabled.
57
57
58
58
{{/warning}}
59
59
60
-
{{/enterprise-only}}
60
+
{% endif %}
61
61
62
62
POST /user/keys
63
63
@@ -81,15 +81,15 @@ instead.
81
81
Removes a public key. Requires that you are authenticated via Basic Auth
82
82
or via OAuth with at least`admin:public_key`[scope](/v3/oauth/#scopes).
83
83
84
-
{{#enterprise-only}}
84
+
{% if page.version != 'dotcom' && page.version >= 2.1 %}
85
85
86
86
{{#warning}}
87
87
88
88
If your GitHub Enterprise appliance has[LDAP Sync enabled](https://help.github.com/enterprise/2.1/admin/guides/user-management/using-ldap) and the option to synchronize SSH keys enabled, this API is disabled and will return a`403` response. Users managed in LDAP won't be able to remove an SSH key address via the API with these options enabled.